since draw_slice() can handle packed RGB too, set the VFCAP_ACCEPT_STRIDE flag

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7689 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-10-09 22:37:27 +00:00
parent b94ac62f15
commit 28d1f0e0f5
1 changed files with 6 additions and 6 deletions

View File

@ -347,8 +347,8 @@ static uint32_t draw_frame(uint8_t * src[])
// gets done in draw_slice
break;
case IMGFMT_BGR|24:
case IMGFMT_RGB|24:
case IMGFMT_BGR24:
case IMGFMT_RGB24:
memcpy(rgb_buffer, src[0], image_width * image_height * 3);
break;
}
@ -367,10 +367,10 @@ static uint32_t query_format(uint32_t format)
switch(format)
{
case IMGFMT_YV12:
return VFCAP_CSP_SUPPORTED|VFCAP_OSD;
return VFCAP_CSP_SUPPORTED|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
case IMGFMT_BGR|24:
case IMGFMT_RGB|24:
return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD;
return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
}
}
else
@ -379,10 +379,10 @@ static uint32_t query_format(uint32_t format)
switch(format)
{
case IMGFMT_YV12:
return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD;
return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
case IMGFMT_BGR|24:
case IMGFMT_RGB|24:
return VFCAP_CSP_SUPPORTED|VFCAP_OSD;
return VFCAP_CSP_SUPPORTED|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
}
}
return 0;