rgb2ycrcb: xrgb2ycrcb.c File Reference

| rgb2ycrcb Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions
xrgb2ycrcb.c File Reference

## Functions
int | XRgb2YCrCb_CfgInitialize (XRgb2YCrCb *InstancePtr, XRgb2YCrCb_Config *CfgPtr, u32 EffectiveAddr)
| This function initializes the Rgb2YCrCb core. More...
void | XRgb2YCrCb_EnableDbgByPass (XRgb2YCrCb *InstancePtr)
| This function sets the bypass bit of control register to switch the core to bypass mode if debug is enabled in the IP. More...
int | XRgb2YCrCb_IsDbgByPassEnabled (XRgb2YCrCb *InstancePtr)
| This function returns the current bypass mode of a core. More...
void | XRgb2YCrCb_DisableDbgBypass (XRgb2YCrCb *InstancePtr)
| This function disables Bypass mode. More...
void | XRgb2YCrCb_EnableDbgTestPattern (XRgb2YCrCb *InstancePtr)
| This function switches the core to test-pattern generator mode if debug feature is enabled. More...
int | XRgb2YCrCb_IsDbgTestPatternEnabled (XRgb2YCrCb *InstancePtr)
| This function returns the test-pattern generator mode (enabled or not), if debug feature is enabled. More...
void | XRgb2YCrCb_DisableDbgTestPattern (XRgb2YCrCb *InstancePtr)
| This function disables debug test pattern mode. More...
u32 | XRgb2YCrCb_GetVersion (XRgb2YCrCb *InstancePtr)
| This function facilitates software identification of exact version of the RGB2YCrCb hardware (h/w). More...
u32 | XRgb2YCrCb_GetDbgFrameCount (XRgb2YCrCb *InstancePtr)
| This function returns the frame count, the number of frames processed since power-up. More...
u32 | XRgb2YCrCb_GetDbgLineCount (XRgb2YCrCb *InstancePtr)
| This function returns Line count, the number of lines processed since power-up. More...
u32 | XRgb2YCrCb_GetDbgPixelCount (XRgb2YCrCb *InstancePtr)
| This function returns the pixel count, the number of pixels processed since power up. More...
void | XRgb2YCrCb_Setup (XRgb2YCrCb *InstancePtr)
| This function sets up double buffered ACTIVE_SIZE register and enables the register update. More...
void | XRgb2YCrCb_SetActiveSize (XRgb2YCrCb *InstancePtr, u16 HSize, u16 VSize)
| This function sets active H/V sizes in the active size register. More...
void | XRgb2YCrCb_GetActiveSize (XRgb2YCrCb *InstancePtr, u16 *HSize, u16 *VSize)
| This function gets the active H/V sizes of the Rgb2YCrCb core from active size register. More...
void | XRgb2YCrCb_SetYMax (XRgb2YCrCb *InstancePtr, u32 YMax)
| This function sets the maximum value allowed on the Luma (Y) channel of the output. More...
u32 | XRgb2YCrCb_GetYMax (XRgb2YCrCb *InstancePtr)
| This function returns the maximum value of the Luma (Y) channel of the output. More...
void | XRgb2YCrCb_SetYMin (XRgb2YCrCb *InstancePtr, u32 YMin)
| This function sets the minimum value allowed on the Luma (Y) channel of the output. More...
u32 | XRgb2YCrCb_GetYMin (XRgb2YCrCb *InstancePtr)
| This function returns the minimum value of the Luma (Y) channel of the output. More...
void | XRgb2YCrCb_SetCbMax (XRgb2YCrCb *InstancePtr, u32 CbMax)
| This function sets the maximum value allowed on the Cb Chroma channel of the output. More...
u32 | XRgb2YCrCb_GetCbMax (XRgb2YCrCb *InstancePtr)
| This function returns the maximum value on the Cb Chroma channel of the output. More...
void | XRgb2YCrCb_SetCbMin (XRgb2YCrCb *InstancePtr, u32 CbMin)
| This function sets the minimum value allowed on the Cb Chroma channel of the output. More...
u32 | XRgb2YCrCb_GetCbMin (XRgb2YCrCb *InstancePtr)
| This function returns the minimum value on the Cb Chroma channel of the output. More...
void | XRgb2YCrCb_SetCrMax (XRgb2YCrCb *InstancePtr, u32 CrMax)
| This function sets the maximum value allowed on the Cr Chroma channel of the output. More...
u32 | XRgb2YCrCb_GetCrMax (XRgb2YCrCb *InstancePtr)
| This function returns the maximum value on the Cr Chroma channel of the output. More...
void | XRgb2YCrCb_SetCrMin (XRgb2YCrCb *InstancePtr, u32 CrMin)
| This function sets the minimum value allowed on the Cr Chroma channel of the output. More...
u32 | XRgb2YCrCb_GetCrMin (XRgb2YCrCb *InstancePtr)
| This function returns the minimum value on the Cr Chroma channel of the output. More...
void | XRgb2YCrCb_SetYOffset (XRgb2YCrCb *InstancePtr, u32 YOffset)
| This function sets the offset compensation value for the Luma (Y) channel. More...
u32 | XRgb2YCrCb_GetYOffset (XRgb2YCrCb *InstancePtr)
| This function returns the offset compensation value for the Luma (Y) channel. More...
void | XRgb2YCrCb_SetCbOffset (XRgb2YCrCb *InstancePtr, u32 CbOffset)
| This function sets the offset compensation value for the Cb Chroma channel. More...
u32 | XRgb2YCrCb_GetCbOffset (XRgb2YCrCb *InstancePtr)
| This function returns the offset compensation value for the Cb Chroma channel. More...
void | XRgb2YCrCb_SetCrOffset (XRgb2YCrCb *InstancePtr, u32 CrOffset)
| This function sets the offset compensation value for the Cr Chroma channel. More...
u32 | XRgb2YCrCb_GetCrOffset (XRgb2YCrCb *InstancePtr)
| This function returns the offset compensation value of the Cr Chroma channel. More...
void | XRgb2YCrCb_SetCoefs (XRgb2YCrCb *InstancePtr, double ACoef, double BCoef, double CCoef, double DCoef)
| This function sets A, B, C and D coefficients. More...
void | XRgb2YCrCb_GetCoefs (XRgb2YCrCb *InstancePtr, double *ACoef, double *BCoef, double *CCoef, double *DCoef)
| This function returns A, B, C and D coefficients. More...
void | XRgb2YCrCb_Select_Standard (XRgb2YCrCb *InstancePtr, enum XRgb_Standards StandardSel, enum XRgb_OutputRanges InputRange, u32 DataWidth, struct XRgb2YCrCb_Coef_Inputs *CoefIn)
| This function populates an XRgb2YCrCb_Coef_Inputs structure with the values from the selected video standard. More...
u32 | XRgb2YCrCb_Coefficient_Translation (XRgb2YCrCb *InstancePtr, struct XRgb2YCrCb_Coef_Inputs *CoefIn, struct XRgb2YCrCb_Coef_Outputs *CoefOut, u32 DataWidth)
| This function translates the XRgb2YCrCb_Coef_Inputs structure into the XRgb2YCrCb_Coef_Outputs structure that can be used to program the core's registers. More...
void | XRgb2YCrCb_Select_OutputRange (XRgb2YCrCb *InstancePtr, enum XRgb_OutputRanges Range)
| This function governs the range of outputs Y, Cr and Cb by affecting the conversion coefficients as well as the clipping and clamping values. More...