Ticket #6702: 6702-pixfmt_win32.patch
File 6702-pixfmt_win32.patch, 1.9 KB (added by , 15 years ago) |
---|
-
libs/libmythtv/videoout_dx.cpp
298 298 } else { 299 299 300 300 AVPicture image_in, image_out; 301 int av_format;301 PixelFormat av_format; 302 302 303 303 switch (chroma) 304 304 { 305 305 case FOURCC_YUY2: 306 306 case FOURCC_YUYV: 307 case FOURCC_YUNV: av_format = PIX_FMT_YU V422; break;307 case FOURCC_YUNV: av_format = PIX_FMT_YUYV422; break; 308 308 case FOURCC_RV15: av_format = PIX_FMT_RGB555; break; 309 309 case FOURCC_RV16: av_format = PIX_FMT_RGB565; break; 310 310 case FOURCC_RV24: av_format = PIX_FMT_RGB24; break; 311 case FOURCC_RV32: av_format = PIX_FMT_RGB A32;break;311 case FOURCC_RV32: av_format = PIX_FMT_RGB32; break; 312 312 default: 313 313 VERBOSE(VB_IMPORTANT, "VODX: Non Xv mode only supports 16, 24, and 32 bpp displays"); 314 314 errorState = kError_Unknown; -
libs/libmythtv/videoout_d3d.cpp
538 538 } 539 539 540 540 avpicture_fill(&image_out, (uint8_t*) d3drect.pBits, 541 PIX_FMT_RGB A32, m_InputCX, m_InputCY);541 PIX_FMT_RGB32, m_InputCX, m_InputCY); 542 542 image_out.linesize[0] = d3drect.Pitch; 543 543 avpicture_fill(&image_in, buffer->buf, 544 544 PIX_FMT_YUV420P, m_InputCX, m_InputCY); 545 545 546 546 myth_sws_img_convert( 547 &image_out, PIX_FMT_RGB A32, &image_in,547 &image_out, PIX_FMT_RGB32, &image_in, 548 548 PIX_FMT_YUV420P, m_InputCX, m_InputCY); 549 549 550 550 hr = m_pSurface->UnlockRect();