prefer yuv formats over rgb in case both are supported by hw

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12261 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2004-04-23 15:24:24 +00:00
parent 7ce103c037
commit 571b28ad1a
1 changed files with 13 additions and 13 deletions

View File

@ -46,6 +46,19 @@ extern int opt_screen_size_y;
void sws_getFlagsAndFilterFromCmdLine(int *flags, SwsFilter **srcFilterParam, SwsFilter **dstFilterParam);
static unsigned int outfmt_list[]={
// YUV:
IMGFMT_444P,
IMGFMT_422P,
IMGFMT_YV12,
IMGFMT_I420,
IMGFMT_IYUV,
IMGFMT_YVU9,
IMGFMT_IF09,
IMGFMT_411P,
IMGFMT_Y800,
IMGFMT_Y8,
IMGFMT_YUY2,
IMGFMT_UYVY,
// RGB:
IMGFMT_BGR32,
IMGFMT_RGB32,
@ -63,19 +76,6 @@ static unsigned int outfmt_list[]={
IMGFMT_RG4B,
IMGFMT_BGR1,
IMGFMT_RGB1,
// YUV:
IMGFMT_444P,
IMGFMT_422P,
IMGFMT_YV12,
IMGFMT_I420,
IMGFMT_IYUV,
IMGFMT_YVU9,
IMGFMT_IF09,
IMGFMT_411P,
IMGFMT_Y800,
IMGFMT_Y8,
IMGFMT_YUY2,
IMGFMT_UYVY,
0
};