- Timestamp:
- Jun 6, 2012 9:56:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-videodev/colorbar_dev.c
r3901 r4158 77 77 { PJMEDIA_FORMAT_YV12 }, 78 78 { PJMEDIA_FORMAT_I420 }, 79 { PJMEDIA_FORMAT_I422 }, 79 80 { PJMEDIA_FORMAT_I420JPEG }, 80 81 { PJMEDIA_FORMAT_I422JPEG }, … … 355 356 if (vfi->color_model == PJMEDIA_COLOR_MODEL_RGB) 356 357 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 } 359 364 360 365 bar_width = vafp->strides[j]/8;
Note: See TracChangeset
for help on using the changeset viewer.