rgb2ycrcb
Xilinx SDK Drivers API Documentation
rgb2ycrcb_example.c File Reference

Overview

This file demonstrates how to use Xilinx RGB to YCrCb Color Space Converter (RGB2YCRCB) driver on Xilinx RGB to YCrCb Color Space Converter (RGB2YCRCB) core.

MODIFICATION HISTORY:
Ver   Who  Date     Changes

7.00 adk 07/07/14 First release.

Macros

#define XRGB_DEVICE_ID   XPAR_RGB2YCRCB_0_DEVICE_ID
 The following constants map to the XPAR parameters created in the xparameters.h file. More...
 

Functions

int Rgb2YCrCb_Update_Example (u16 DeviceId)
 RGB to YCrCb Color Space Converter Register Update Example. More...
 
int main (void)
 Main function to call the Rgb2YCrCb example. More...
 

Variables

XRgb2YCrCb XRgbInstance
 Instance of the RGB2YCRCB core. More...
 

Macro Definition Documentation

◆ XRGB_DEVICE_ID

#define XRGB_DEVICE_ID   XPAR_RGB2YCRCB_0_DEVICE_ID

The following constants map to the XPAR parameters created in the xparameters.h file.

They are defined here such that a user can easily change all the needed parameters in one place.

Referenced by main().

Function Documentation

◆ main()

int main ( void  )

Main function to call the Rgb2YCrCb example.

Parameters
None.
Returns
  • XST_SUCCESS if successful,
  • XST_FAILURE if it is unsuccessful
Note
None.

References Rgb2YCrCb_Update_Example(), and XRGB_DEVICE_ID.

◆ Rgb2YCrCb_Update_Example()

int Rgb2YCrCb_Update_Example ( u16  DeviceId)

Variable Documentation

◆ XRgbInstance

XRgb2YCrCb XRgbInstance

Instance of the RGB2YCRCB core.