Mercurial > mplayer.hg
diff libvo/vo_xv.c @ 5566:e01c664def74
VFCAP added
author | arpi |
---|---|
date | Thu, 11 Apr 2002 21:07:00 +0000 |
parents | 1e90dd889c34 |
children | 1972c3475d93 |
line wrap: on
line diff
--- a/libvo/vo_xv.c Thu Apr 11 20:56:17 2002 +0000 +++ b/libvo/vo_xv.c Thu Apr 11 21:07:00 2002 +0000 @@ -707,13 +707,11 @@ return VO_FALSE; } - static uint32_t query_format(uint32_t format) { - int flag=1; + int flag=3|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN|VFCAP_OSD; // FIXME! check for DOWN /* check image formats */ - fo = XvListImageFormats(mDisplay, xv_port, (int*)&formats); - if(format==IMGFMT_BGR24){ format=IMGFMT_YV12;flag|=2;} // conversion! + if(format==IMGFMT_BGR24){ format=IMGFMT_YV12;flag&=~2;flag|=VFCAP_FLIP;} // conversion! for(i = 0; i < formats; i++){ // printf("Xvideo image format: 0x%x (%4.4s) %s\n", fo[i].id,(char*)&fo[i].id, (fo[i].format == XvPacked) ? "packed" : "planar"); if (fo[i].id == format) return flag; //xv_format = fo[i].id; @@ -792,6 +790,8 @@ return -1; } + fo = XvListImageFormats(mDisplay, xv_port, (int*)&formats); + return 0; }