From bf3f28f0a8c8c532715050a89a952ae476a341d1 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 7 Nov 2011 18:49:10 +0000 Subject: 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 --- libmpcodecs/vf_scale.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmpcodecs/vf_scale.c') diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c index dd349655ac..bfae494c05 100644 --- a/libmpcodecs/vf_scale.c +++ b/libmpcodecs/vf_scale.c @@ -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} }; -- cgit v1.2.3