Mercurial > mplayer.hg
comparison libvo/vo_x11.c @ 6080:2cac91e697f1
disable bgr8
author | alex |
---|---|
date | Mon, 13 May 2002 20:56:08 +0000 |
parents | 8460a0c0b44f |
children | 891cff8aba60 |
comparison
equal
deleted
inserted
replaced
6079:5929fcf6c672 | 6080:2cac91e697f1 |
---|---|
561 static uint32_t query_format( uint32_t format ) | 561 static uint32_t query_format( uint32_t format ) |
562 { | 562 { |
563 mp_msg(MSGT_VO,MSGL_DBG2,"vo_x11: query_format was called: %x (%s)\n",format,vo_format_name(format)); | 563 mp_msg(MSGT_VO,MSGL_DBG2,"vo_x11: query_format was called: %x (%s)\n",format,vo_format_name(format)); |
564 if (IMGFMT_IS_BGR(format)) | 564 if (IMGFMT_IS_BGR(format)) |
565 { | 565 { |
566 if (IMGFMT_BGR_DEPTH(format) == 8) | |
567 return 0; | |
566 if (IMGFMT_BGR_DEPTH(format) == vo_depthonscreen) | 568 if (IMGFMT_BGR_DEPTH(format) == vo_depthonscreen) |
567 return 3|VFCAP_OSD|VFCAP_SWSCALE|VFCAP_FLIP; | 569 return 3|VFCAP_OSD|VFCAP_SWSCALE|VFCAP_FLIP; |
568 else | 570 else |
569 return 1|VFCAP_OSD|VFCAP_SWSCALE|VFCAP_FLIP; | 571 return 1|VFCAP_OSD|VFCAP_SWSCALE|VFCAP_FLIP; |
570 } | 572 } |