Ignore:
Timestamp:
Jun 6, 2012 9:56:14 AM (12 years ago)
Author:
nanang
Message:

Fix #1528:

  • fixed video format YV12 (was YUV planar 16bpp, should be YVU planar 12bpp)
  • added I422 (YUV planar 16bpp, was defined as YV12)
  • updated colorbar video device to support YV12.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/colorbar_dev.c

    r3901 r4158  
    7777    { PJMEDIA_FORMAT_YV12 }, 
    7878    { PJMEDIA_FORMAT_I420 }, 
     79    { PJMEDIA_FORMAT_I422 }, 
    7980    { PJMEDIA_FORMAT_I420JPEG }, 
    8081    { PJMEDIA_FORMAT_I422JPEG }, 
     
    355356                if (vfi->color_model == PJMEDIA_COLOR_MODEL_RGB) 
    356357                    c = rgb_colors[i][j]; 
    357                 else 
    358                     c = yuv_colors[i][j]; 
     358                else { 
     359                    if (vfi->id == PJMEDIA_FORMAT_YV12 && j > 0) 
     360                        c = yuv_colors[i][3-j]; 
     361                    else 
     362                        c = yuv_colors[i][j]; 
     363                } 
    359364 
    360365                bar_width = vafp->strides[j]/8; 
Note: See TracChangeset for help on using the changeset viewer.