FPGA应用文档:将RGB转为YCrCbApplication Note: Virtex-4, Virtex-II, Virtex-II Pro, Spartan-3
R
Color-Space Converter: RGB to YCrCb
Author: Gabor Szedo
XAPP930 (v1.0) May 9, 2006
Summary
This application note describes the implementation of an RGB color space to a YCbCr color space conversion circuit necessary in many video designs. The reference design files include RTL VHDL code defining an optimized structure using only four multipliers to implement the RGB to YCrCb transformation. Source files in compilation order are: 1. GenXlib_util.vhd, 2. GenXlib_arch.vhd, 3. color_space_pkg.vhd, 4. Xil_RGB2YCrCb.vhd A System Generator token encapsulating the HDL code is also available for System Generator users. A System Generator testbench is also provided to visually inspect output results. The code is parameterizable fo……