X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fguicast%2Fbcbitmap.C;h=8289c5994a155433bfc9ef5e3c52a8ed31f05c4a;hb=425f9eab2f37d52e16e7ebdcd4b78f6de7ed68e7;hp=6515d1853b9ba69557744cd9e8f8c3eaae0b2ab1;hpb=73e5d54a5068f6a355158691a9c8849103f89564;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/guicast/bcbitmap.C b/cinelerra-5.0/guicast/bcbitmap.C index 6515d185..8289c599 100644 --- a/cinelerra-5.0/guicast/bcbitmap.C +++ b/cinelerra-5.0/guicast/bcbitmap.C @@ -150,7 +150,7 @@ BC_XvShmImage::BC_XvShmImage(BC_Bitmap *bitmap, int index, h = xv_image->height; if(!XShmAttach(top_level->display, &shm_info)) perror("BC_XvShmImage::BC_XvShmImage XShmAttach"); - if( color_model == BC_YUV422 ) { + if( color_model == BC_YUV422 || color_model == BC_UVY422 ) { bytesPerLine = w*2; bitsPerPixel = 12; row_data = new unsigned char*[h]; @@ -223,7 +223,7 @@ BC_XvImage::BC_XvImage(BC_Bitmap *bitmap, int index, xv_image->data = (char *) data; w = xv_image->width; h = xv_image->height; - if( color_model == BC_YUV422 ) { + if( color_model == BC_YUV422 || color_model == BC_UVY422 ) { int bytesPerLine = w*2; row_data = new unsigned char*[h]; for( int i=0; iget_data(), w * h + w * h); break; }