mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
also set VFCAP_ACCEPT_STRIDE when draw_image() is implemented
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7695 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f5dd264b51
commit
6a2c0db5e5
@ -189,7 +189,7 @@ query_format(uint32_t format)
|
||||
case IMGFMT_IYUV:
|
||||
case IMGFMT_YUY2:
|
||||
case IMGFMT_UYVY:
|
||||
return 3 | VFCAP_OSD|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN;
|
||||
return 3 | VFCAP_OSD|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN|VFCAP_ACCEPT_STRIDE;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -284,10 +284,10 @@ query_format(uint32_t format)
|
||||
case IMGFMT_IYUV:
|
||||
case IMGFMT_I420:
|
||||
case IMGFMT_YV12:
|
||||
return VFCAP_CSP_SUPPORTED|VFCAP_OSD;
|
||||
return VFCAP_CSP_SUPPORTED|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
|
||||
case IMGFMT_RGB|24:
|
||||
case IMGFMT_BGR|24:
|
||||
return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW;
|
||||
return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_ACCEPT_STRIDE;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -698,7 +698,7 @@ static uint32_t get_image(mp_image_t *mpi){
|
||||
|
||||
static uint32_t query_format(uint32_t format)
|
||||
{
|
||||
int flag=3|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN|VFCAP_OSD; // FIXME! check for DOWN
|
||||
int flag=3|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN|VFCAP_OSD|VFCAP_ACCEPT_STRIDE; // FIXME! check for DOWN
|
||||
/* check image formats */
|
||||
if(format==IMGFMT_BGR24){ format=IMGFMT_YV12;flag&=~2;flag|=VFCAP_FLIP;} // conversion!
|
||||
for(i = 0; i < formats; i++){
|
||||
|
@ -353,7 +353,7 @@ uint32_t vidix_query_fourcc(uint32_t format)
|
||||
vdlQueryFourcc(vidix_handler,&vidix_fourcc);
|
||||
if (vidix_fourcc.depth == VID_DEPTH_NONE)
|
||||
return 0;
|
||||
return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN|VFCAP_OSD;
|
||||
return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
|
||||
}
|
||||
|
||||
int vidix_grkey_support(void)
|
||||
|
Loading…
Reference in New Issue
Block a user