This header file contains identifiers and register-level driver functions (or macros), range macros, structure typedefs that can be used to access the Xilinx Rgb2YCrCb core instance.<p>
The RGB to YCrCb Color-Space Convertor core is a simplified 3x3 matrix multiplier converts three input color samples to three output samples in a single clock cycle. The core supports four common format conversions as well as a custom mode that allows for a user-defined transform. The core is capable of a maximum resolution of 7680 columns by 7680 rows with 8, 10, 12, or 16 bits per pixel.<p>
<b>Initialization & Configuration</b><p>
The device driver enables higher layer software (e.g., an application) to communicate to the RGB2YCRCB core.<p>
<aclass="el"href="xrgb2ycrcb_8c.html#584a818bca95b80de513294519c54ee2">XRgb2YCrCb_CfgInitialize()</a> API is used to initialize the RGB2YCRCB core. The user needs to first call the <aclass="el"href="xrgb2ycrcb_8h.html#2759e34bb0b2134ec1f694334ba92b77">XRgb2YCrCb_LookupConfig()</a> API which returns the Configuration structure pointer which is passed as a parameter to the <aclass="el"href="xrgb2ycrcb_8c.html#584a818bca95b80de513294519c54ee2">XRgb2YCrCb_CfgInitialize()</a> API.<p>
<b> Interrupts </b><p>
The driver provides an interrupt handler XRgb2YCrCb_IntrHandler for handling the interrupt from the RGB2YCRCB core. The users of this driver have to register this handler with the interrupt system and provide the callback functions by using XRgb2YCrCb_SetCallBack API.<p>
<b> Virtual Memory </b><p>
This driver supports Virtual Memory. The RTOS is responsible for calculating the correct device base address in Virtual Memory space.<p>
<b> Threads </b><p>
This driver is not thread safe. Any needs for threads or thread mutual exclusion must be satisfied by the layer above this driver.<p>
<b> Asserts </b><p>
Asserts are used within all Xilinx drivers to enforce constraints on argument values. Asserts can be turned off on a system-wide basis by defining, at compile time, the NDEBUG identifier. By default, asserts are turned on and it is recommended that users leave asserts on during development.<p>
<b> Building the driver </b><p>
The <aclass="el"href="struct_x_rgb2_y_cr_cb.html">XRgb2YCrCb</a> driver is composed of several source files. This allows the user to build and link only those parts of the driver that are necessary.<p>