vf_scale: prefer converting GBR24P to other 8 bit per component RGB formats

Compared to converting to Y444 this should be faster and lossless.

Based on patch by Hans-Kristian Arntzen [maister archlinux us]

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34317 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2011-11-07 18:49:10 +00:00 committed by wm4
parent b223805547
commit bf3f28f0a8
1 changed files with 4 additions and 0 deletions

View File

@ -142,6 +142,10 @@ static int preferred_conversions[][2] = {
{IMGFMT_UYVY, IMGFMT_422P},
{IMGFMT_422P, IMGFMT_YUY2},
{IMGFMT_422P, IMGFMT_UYVY},
{IMGFMT_GBR24P, IMGFMT_BGR24},
{IMGFMT_GBR24P, IMGFMT_RGB24},
{IMGFMT_GBR24P, IMGFMT_BGR32},
{IMGFMT_GBR24P, IMGFMT_RGB32},
{0, 0}
};