Project Name: YCbCrtoRGB.dpj Project Type: ADSP-BF533 [X] ADSP-BF537 [ ] ADSP-BF561 [ ] Hardware Used: ADSP-BF533 EZ-Kit VisualDSP++ Emulator System Services Components Used: None OVERVIEW ======== The YCbCrtoRGB function takes input (Y, Cb and Cr ) in the range of is 0 to 255, and outputs (R, G and B) also in the range 0 to 255. The formula implementation is demonstrated below: R = Y + 1.402 (Cr - 128) = Y +(Cr-128) + 0.402(Cr-128) G = Y - 0.34414 (Cb - 128) - 0.71414 (Cr - 128) B = Y + 1.772 (Cb - 128) = Y + (Cb-128) + 0.772(Cb-128) Prototype: void YCbCrtoRGB(unsigned char input[], unsigned char out[], int N); Arguments: input[] - Input YCbCr array out[] - Out put array to store in RGB format N - Number of inputs Registers used : A0, A1, R0-R7, I1, B1, L1, P0-P2, LC0. RUNNING THE APPLICATION (on the ADSP-BF533 EZ-KIT Lite) =========================================================== 1) Load project "YCbCrtoRGB.dpj". 2) Select "Project->Rebuild Project" 3) Select "Debug->Run". 4) Observe output on VisualDSP++ console window. Files in This Application ========================== This example consists of the following files: "./YCbCrtoRGB.ldf" - linker description file "./YCbCrtoRGB.dpj" - project file "../../src/t_YCbCrtoRGB.c" - source file "../../../../BFinUtils/ADSP-BF533/SDK-cycle_count.asm" - source file "../../src/YCbCrtoRGB.asm" - source file "../../include/color_cnvr.h" - include file "../../../../include/SDK-cycle_count.h" - include file