v_csc: xv_csc_l2.h File Reference

| v_csc Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List

Data Structures | Macros | Enumerations | Functions
xv_csc_l2.h File Reference

## Data Structures
struct | XV_Csc_l2
| Csc driver Layer 2 data. More...

## Macros
#define | XV_CscSetColorDepth(InstancePtr, val) ((InstancePtr)->ColorDepth = val)
| This macro sets color depth for CSC core. More...
#define | XV_CscGetBrightness(InstancePtr) (((InstancePtr)->Brightness-20)/2)
| This macro returns current brightness setting by reading layer 2 fw register map. More...
#define | XV_CscGetContrast(InstancePtr) (((InstancePtr)->Contrast+200)/4)
| This macro returns current contrast setting by reading layer 2 fw register map. More...
#define | XV_CscGetSaturation(InstancePtr) (((InstancePtr)->Saturation/2))
| This macro returns current saturation setting by reading layer 2 fw register map. More...
#define | XV_CscGetRedGain(InstancePtr) (((InstancePtr)->RedGain-20)/2)
| This macro returns current red gain setting by reading layer 2 fw register map. More...
#define | XV_CscGetGreenGain(InstancePtr) (((InstancePtr)->GreenGain-20)/2)
| This macro returns current green gain setting by reading layer 2 fw register map. More...
#define | XV_CscGetBlueGain(InstancePtr) (((InstancePtr)->BlueGain-20)/2)
| This macro returns current blue gain setting by reading layer 2 fw register map. More...
#define | XV_CscGetColorFormatIn(InstancePtr) ((InstancePtr)->ColorFormatIn)
| This macro returns current set input color format by reading layer 2 fw register map. More...
#define | XV_CscGetColorFormatOut(InstancePtr) ((InstancePtr)->ColorFormatOut)
| This macro returns current set output color format by reading layer 2 fw register map. More...
#define | XV_CscGetColorStdIn(InstancePtr) ((InstancePtr)->StandardIn)
| This macro returns current set input color standard by reading layer 2 fw register map. More...
#define | XV_CscGetColorStdOut(InstancePtr) ((InstancePtr)->StandardOut)
| This macro returns current set output color standard by reading layer 2 fw register map. More...
#define | XV_CscGetOutputRange(InstancePtr) ((InstancePtr)->OutputRange)
| This macro returns current set output range by reading layer 2 fw register map. More...
#define | XV_CscIs422Enabled(InstancePtr) ((InstancePtr)->Csc.Config.Is422Enabled)
| This macro checks if Csc instance is enabled for 4:2:2 processing. More...
#define | XV_CscIs420Enabled(InstancePtr) ((InstancePtr)->Csc.Config.Is420Enabled)
| This macro checks if Csc instance is enabled for 4:2:0 processing. More...
#define | XV_CscIsDemoWindowEnabled(InstancePtr) ((InstancePtr)->Csc.Config.IsDemoWindowEnabled)
| This macro checks if Csc instance is enabled for the Demo Window. More...

## Enumerations
enum | XV_CSC_FW_REG_MMAP
| CSC Layer 2 Register Map. More...

## Functions
int | XV_CscInitialize (XV_Csc_l2 *InstancePtr, u16 DeviceId)
| This function initializes the core instance. More...
void | XV_CscSetPowerOnDefaultState (XV_Csc_l2 *CscPtr)
| This function sets the CSC IP layer 2 fw registers to power on default state. More...
void | XV_CscStart (XV_Csc_l2 *InstancePtr)
| This function starts the Color space converter core. More...
void | XV_CscStop (XV_Csc_l2 *InstancePtr)
| This function stops the Color space converter. More...
void | XV_CscSetActiveSize (XV_Csc_l2 *InstancePtr, u32 width, u32 height)
| This function set the frame resolution for the Color space converter This also will reset the demo window to full frame. More...
int | XV_CscSetDemoWindow (XV_Csc_l2 *InstancePtr, XVidC_VideoWindow *DemoWindow)
| This function sets the demo window for the Color space converter. More...
int | XV_CscSetColorspace (XV_Csc_l2 *InstancePtr, XVidC_ColorFormat cfmtIn, XVidC_ColorFormat cfmtOut, XVidC_ColorStd cstdIn, XVidC_ColorStd cstdOut, XVidC_ColorRange cRangeOut)
| This function configures the Color space converter to user specified settings. More...
void | XV_CscSetBrightness (XV_Csc_l2 *InstancePtr, s32 val)
| This function set brightness to specified value. More...
void | XV_CscSetContrast (XV_Csc_l2 *InstancePtr, s32 val)
| This function set contrast to specified value. More...
void | XV_CscSetSaturation (XV_Csc_l2 *InstancePtr, s32 val)
| This function set saturation to specified value. More...
void | XV_CscSetRedGain (XV_Csc_l2 *InstancePtr, s32 val)
| This function set red gain to specified value. More...
void | XV_CscSetGreenGain (XV_Csc_l2 *InstancePtr, s32 val)
| This function set green gain to specified value. More...
void | XV_CscSetBlueGain (XV_Csc_l2 *InstancePtr, s32 val)
| This function set blue gain to specified value. More...
void | XV_CscDbgReportStatus (XV_Csc_l2 *InstancePtr)
| This function prints CSC IP status on console. More...