changeset 12260:9d7e95b0a7e5

prefer yuv formats over rgb in case both are supported by hw
author faust3
date Fri, 23 Apr 2004 15:24:24 +0000
parents 28834fb1e26c
children d43f1c599701
files libmpcodecs/vf_scale.c
diffstat 1 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c	Fri Apr 23 12:29:19 2004 +0000
+++ b/libmpcodecs/vf_scale.c	Fri Apr 23 15:24:24 2004 +0000
@@ -46,6 +46,19 @@
 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 @@
     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
 };