This file contains the implementation of the interface functions for RGB2YCRCB driver. Refer to the header file <aclass="el"href="xrgb2ycrcb_8h.html">xrgb2ycrcb.h</a> for more detailed information.<p>
This function initializes the Rgb2YCrCb core. This function must be called prior to using the Rgb2YCrCb core. Initialization of the Rgb2YCrCb includes setting up the instance data and ensuring the hardware is in a quiescent state.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CfgPtr</em> </td><td>is a reference to a structure containing information about a specific <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> driver. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>EffectiveAddr</em> </td><td>is the core base address in the virtual memory address space. The caller is responsible for keeping the address mapping from EffectiveAddr to the core physical base address unchanged once this function is invoked. Unexpected errors may occur if the address mapping changes after this function is called. If address translation is not used, pass in the physical address instead.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>- XST_SUCCESS if initialization was successful.</dd></dl>
This function translates the <aclass="el"href="struct_x_rgb2_y_cr_cb___coef___inputs.html">XRgb2YCrCb_Coef_Inputs</a> structure into the <aclass="el"href="struct_x_rgb2_y_cr_cb___coef___outputs.html">XRgb2YCrCb_Coef_Outputs</a> structure that can be used to program the core's registers. The <aclass="el"href="struct_x_rgb2_y_cr_cb___coef___inputs.html">XRgb2YCrCb_Coef_Inputs</a> structure uses the same values as the core's GUIs. The <aclass="el"href="struct_x_rgb2_y_cr_cb___coef___outputs.html">XRgb2YCrCb_Coef_Outputs</a> structure uses the values that can be programmed into the core's registers.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CoefIn</em> </td><td>specifies a pointer to a <aclass="el"href="struct_x_rgb2_y_cr_cb___coef___inputs.html">XRgb2YCrCb_Coef_Inputs</a> structure to be translated. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CoefOut</em> </td><td>specifies a pointer to a <aclass="el"href="struct_x_rgb2_y_cr_cb___coef___outputs.html">XRgb2YCrCb_Coef_Outputs</a> structure with translated values. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>DataWidth</em> </td><td>specifies a valid range of [8,10,12,16] that needs to be set.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>RetVal, returns the 32-bit value with following bit information:<ul>
<li>bit(0)= ACoef + BCoef > 1.0.</li><li>bit(1)= Y Offset outside data width range as [-2^Data_Width, (2^Data_Width)-1].</li><li>bit(2)= Cb Offset outside data width range as [-2^Data_Width, (2^Data_Width)-1].</li><li>bit(3)= Cr Offset outside data width range as [-2^Data_Width, (2^Data_Width)-1].</li><li>bit(4)= Y Max outside data width range as [0, (2^Data_Width)-1].</li><li>bit(5)= Y Min outside data width range as [0, (2^Data_Width)-1].</li><li>bit(6)= Cb Max outside data width range as [0, (2^Data_Width)-1].</li><li>bit(7)= Cb Min outside data width range as [0, (2^Data_Width)-1].</li><li>bit(8)= Cr Max outside data width range as [0, (2^Data_Width)-1].</li><li>bit(9)= Cr Min outside data width range as [0, (2^Data_Width)-1].</li></ul>
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> core instance to be worked on.</td></tr>
This function disables debug test pattern mode.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> core instance to be worked on.</td></tr>
This function sets the bypass bit of control register to switch the core to bypass mode if debug is enabled in the IP.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
This function switches the core to test-pattern generator mode if debug feature is enabled.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
This function gets the active H/V sizes of the Rgb2YCrCb core from active size register.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>HSize</em> </td><td>is a pointer to 16-bit variable in which the number of Active Pixels per scanline is returned within the range [32, 7680]. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>VSize</em> </td><td>is a pointer to 16-bit variable in which the number of Active Lines per frame is returned within the range [32, 7680].</td></tr>
This function returns the maximum value on the Cb Chroma channel of the output.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>CbMax, maximum value within range [0, 255] of the Cb Chroma Channel.</dd></dl>
This function returns the minimum value on the Cb Chroma channel of the output.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>CbMin, minimum value within range [0, 255] on the Cb Chroma Channel.</dd></dl>
This function returns the offset compensation value for the Cb Chroma channel.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>CbOffset is the compensation value within range [0, 255] for the Cb Chroma channel.</dd></dl>
This function returns A, B, C and D coefficients.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>ACoef</em> </td><td>is a pointer to double variable in which A coefficient is returned within the range [0.0 to 1.0]. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>BCoef</em> </td><td>is a pointer to double variable in which B coefficient is returned within the range [0.0 to 1.0]. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CCoef</em> </td><td>is a pointer to double variable in which C coefficient is returned within the range [0.0 to 1.0]. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>DCoef</em> </td><td>is a pointer to double variable in which D coefficient is returned within the range [0.0 to 1.0].</td></tr>
This function returns the maximum value on the Cr Chroma channel of the output<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>CrMax, maximum value within range [0, 255] on the Cr Chroma Channel.</dd></dl>
This function returns the minimum value on the Cr Chroma channel of the output.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>CrMin, minimum value within range [0, 255] on the Cr Chroma Channel.</dd></dl>
This function returns the offset compensation value of the Cr Chroma channel.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>CrOffset is the compensation value within range [0, 255] of the Cr Chroma channel.</dd></dl>
This function returns the frame count, the number of frames processed since power-up. This is available only if the debugging feature is enabled.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>DbgFrameCount, number of frames processed since power-up.</dd></dl>
<dlcompact><dt><b>Note:</b></dt><dd>The SYSDEBUG0, or Frame Throughput Monitor register indicates the number of frames processed since power-up or the last time the core was reset. The SYSDEBUG registers can be useful to identify external memory / frame buffer/ throughput bottlenecks in a video system. Debug functionality should be enabled. </dd></dl>
This function returns Line count, the number of lines processed since power-up. This is available only if the debugging feature is enabled.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>DbgLineCount, number of lines processed since power-up.</dd></dl>
<dlcompact><dt><b>Note:</b></dt><dd>The SYSDEBUG1 or Line Throughput Monitor register indicates the number of lines processed since power-up or the last time the core was reset. The SYSDEBUG registers can be useful to identify external memory / Frame buffer / throughput bottlenecks in a video system. Debug functionality should be enabled. </dd></dl>
This function returns the pixel count, the number of pixels processed since power up. This is available only if the debugging feature is enabled.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>DbgPixelCount, number of pixels processed since power-up.</dd></dl>
<dlcompact><dt><b>Note:</b></dt><dd>The SYSDEBUG2, or Pixel Throughput Monitor register indicates the number of pixel processed since power-up or the last time the core was reset. The SYSDEBUG registers can be useful to identify external memory / Frame buffer / throughput bottlenecks in a video system. Debug functionality should be enabled. </dd></dl>
This function facilitates software identification of exact version of the RGB2YCrCb hardware (h/w).<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>Version, contents of a Version register.</dd></dl>
This function returns the maximum value of the Luma (Y) channel of the output.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>YMax, Maximum value within range [0, 255] of the Luma channel.</dd></dl>
This function returns the minimum value of the Luma (Y) channel of the output.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>YMin, minimum value within range [0, 255] of the Luma channel.</dd></dl>
This function returns the offset compensation value for the Luma (Y) channel.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>YOffset is compensation value within range [0, 255] for the Luma (Y) channel.</dd></dl>
This function returns the current bypass mode of a core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd><ul>
<li>TRUE if ByPass mode is enabled.</li><li>FALSE if ByPpass mode is not enabled.</li></ul>
</dd></dl>
<dlcompact><dt><b>Note:</b></dt><dd>Debug functionality should be enabled. </dd></dl>
This function returns the test-pattern generator mode (enabled or not), if debug feature is enabled.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd><ul>
<li>TRUE if Test-pattern mode is enabled.</li><li>FALSE if Test-pattern mode is not enabled.</li></ul>
</dd></dl>
<dlcompact><dt><b>Note:</b></dt><dd>Debug functionality should be enabled. </dd></dl>
This function governs the range of outputs Y, Cr and Cb by affecting the conversion coefficients as well as the clipping and clamping values.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>Range</em> </td><td>needs to be set from the enum XRgb_OutputRanges values as: 0 = XRGB_TV_16_TO_240, 1 = XRGB_STUDIO_16_TO_235, 2 = XRGB_GRAPHICS_0_TO_255.</td></tr>
This function populates an <aclass="el"href="struct_x_rgb2_y_cr_cb___coef___inputs.html">XRgb2YCrCb_Coef_Inputs</a> structure with the values from the selected video standard.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>StandardSel</em> </td><td>needs to be set from enum XRgb_Standards value as : 0 = XRGB_STANDARD_ITU_601_SD 1 = XRGB_STANDARD_ITU_709_NTSC 2 = XRGB_STANDARD_ITU_709_PAL 3 = XRGB_STANDARD_YUV. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>InputRange</em> </td><td>needs to be set from enum XRgb_OutputRanges value as: 0 = XRGB_TV_16_TO_240, 1 = XRGB_STUDIO_16_TO_235, 2 = XRGB_GRAPHICS_0_TO_255. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>DataWidth</em> </td><td>specifies the valid range of [8,10,12,16] that needs to be set. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CoefIn</em> </td><td>specifies a pointer to a <aclass="el"href="struct_x_rgb2_y_cr_cb___coef___inputs.html">XRgb2YCrCb_Coef_Inputs</a> structure which is populated with the values from selected video standard.</td></tr>
This function sets active H/V sizes in the active size register.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>HSize</em> </td><td>specifies the number of Active Pixels per scanline that needs to be set within the range [32, 7680]. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>VSize</em> </td><td>specifies the number of Active Lines per frame that needs to be set within the range [32, 7680].</td></tr>
This function sets the maximum value allowed on the Cb Chroma channel of the output.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CbMax</em> </td><td>specifies the maximum value within range [0, 255] of Cb Chroma channel that needs to be set.</td></tr>
This function sets the minimum value allowed on the Cb Chroma channel of the output.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CbMin</em> </td><td>specifies the maximum value within range [0, 255] of Cb Chroma channel needs to set.</td></tr>
This function sets the offset compensation value for the Cb Chroma channel.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CbOffset</em> </td><td>specifies the compensation value within range [0, 255] of Cb Chroma channel that needs to be set.</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>ACoef</em> </td><td>specifies the A coefficient value within the range [0.0 to 1.0] that needs to be set. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>BCoef</em> </td><td>specifies the B coefficient value within the range [0.0 to 1.0] that needs to be set. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CCoef</em> </td><td>specifies the C coefficient value within the range [0.0 to 1.0] that needs to be set. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>DCoef</em> </td><td>specifies the D coefficient value within the range [0.0 to 1.0] that needs to be set.</td></tr>
This function sets the maximum value allowed on the Cr Chroma channel of the output.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CrMax</em> </td><td>specifies the maximum value within range [0, 255] of Cr Chroma channel that needs to be set.</td></tr>
This function sets the minimum value allowed on the Cr Chroma channel of the output.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CrMin</em> </td><td>specifies the minimum value within range [0, 255] of Cr Chroma channel that needs to be set.</td></tr>
This function sets the offset compensation value for the Cr Chroma channel.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CrOffset</em> </td><td>specifies the compensation value within range [0, 255] of Cr Chroma channel that needs to be set.</td></tr>
This function sets up double buffered ACTIVE_SIZE register and enables the register update.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance.</td></tr>
This function sets the maximum value allowed on the Luma (Y) channel of the output.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>YMax</em> </td><td>specifies the maximum value within range [0, 255] of Luma channel that needs to be set.</td></tr>
This function sets the minimum value allowed on the Luma (Y) channel of the output.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>YMin</em> </td><td>specifies the minimum value within range [0, 255] of Luma channel that needs to be set.</td></tr>
This function sets the offset compensation value for the Luma (Y) channel.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to the <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> instance. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>YOffset</em> </td><td>specifies the compensation value within range [0, 255] of Luma channel that needs to be set.</td></tr>