This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

video data format in ddr buf on dm365

Hi

I'm using dm365 and dvsdk4.00.I want to edit output video data in davinci_display_isr() (in davinci_display.c) when i run the decode demo(video file

 is colorfu_toys_cif_5frms_p420.264 I found indvsdk4.00 and large it by copy copy...).first i neet to convert the video data to RGB format.now I have

2 problems:

1,the data size of a horizontal line seems only 736 bytes,it should be 720x2 bytes (2 bytes/pixel).

2,the data in ddr buf is Cb Y Cr Y ...,is that right? I tried to convert it to RGB ,but the data i got seems wrong,the color is not correct.

what  formula i should use? I tried both of below,no one is correct.

R = Y + 1.14V
G = Y - 0.39U - 0.58V
B = Y + 2.03U
R=Y+1.402*(V-128)
G=Y-0.3441*(U-128) - 0.7144*(V-128)
B=Y+1.722*(U-128)