[Mplayer-cvslog] CVS: main/libvo vo_directfb.c,1.17,1.18
Alex Beregszaszi
alex at mplayerhq.hu
Mon May 27 19:36:31 CEST 2002
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv9213
Modified Files:
vo_directfb.c
Log Message:
revised query_format
Index: vo_directfb.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directfb.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- vo_directfb.c 28 Apr 2002 20:20:06 -0000 1.17
+++ vo_directfb.c 27 May 2002 17:36:28 -0000 1.18
@@ -799,7 +799,7 @@
static uint32_t query_format(uint32_t format)
{
- int ret = 0x4; /* osd/sub is supported on every bpp */
+ int ret = VFCAP_CSP_SUPPORTED|VFCAP_OSD; /* osd/sub is supported on every bpp */
// preinit(NULL);
@@ -811,27 +811,28 @@
// Just support those detected by preinit
case IMGFMT_RGB32:
- case IMGFMT_BGR32: if (modes[3].valid) return ret|0x2;
+ case IMGFMT_BGR32: if (modes[3].valid) return ret;
break;
case IMGFMT_RGB24:
- case IMGFMT_BGR24: if (modes[2].valid) return ret|0x2;
+ case IMGFMT_BGR24: if (modes[2].valid) return ret;
break;
case IMGFMT_RGB16:
case IMGFMT_BGR16:
case IMGFMT_RGB15:
- case IMGFMT_BGR15: if (modes[1].valid) return ret|0x2;
+ case IMGFMT_BGR15: if (modes[1].valid) return ret;
break;
case IMGFMT_YUY2: if (videolayerpresent) {
if (videolayercaps.yuy2) {
- return ret|0x2|0x1;
+ return ret|VFCAP_CSP_SUPPORTED_BY_HW;
} else {
- return ret|0x1;
+ return ret;
};
};
break;
case IMGFMT_YV12: if ((videolayerpresent) &&
(videolayercaps.i420 || videolayercaps.iv12))
- return ret|0x2|0x1; else return ret|0x1;
+ return ret|VFCAP_CSP_SUPPORTED_BY_HW;
+ else return ret;
break;
// YV12 should work in all cases
}
More information about the MPlayer-cvslog
mailing list