YUV422显示视频格式解释

H.264编码器输入要YUV420,而解码器解码之后显示一般又要YUV422,并且视频采集芯片输出往往也是YUV422,下面以我一个实际使用为例说一下YUV422格式:

/* YUV4:2:2格式(这是初始化背景为纯色,所以用了同一个Y) */
/* Black color in UYVY format */
#define UYVY_BLACK/*Y Cr Y Cb*/ 0x10801080/*black*/ /*blue:0x286e28ef red:0x51ef515b green:0x90239036/*/
/* DM6446中的测试代码,整个宏像素赋值 */
    for (bufIdx=0; bufIdx < NUM_DISPLAY_BUFS; bufIdx++) {
        /* Clear the video buffer */
        buf = (unsigned int *) virtDisplays[bufIdx];

        for (i=0; i < displaySize / 

你可能感兴趣的:(DaVinci开发,YUV422,RGB转YCbCr)