mirror of https://github.com/mpv-player/mpv
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:
parent
7ce103c037
commit
571b28ad1a
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue