changeset 32490:059cc86b02dc

Support NV12/NV21/HM12 in ve_raw.
author reimar
date Wed, 03 Nov 2010 16:44:13 +0000
parents d5dfda231e76
children 90206ba16fec
files libmpcodecs/ve_raw.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_raw.c	Wed Nov 03 16:42:24 2010 +0000
+++ b/libmpcodecs/ve_raw.c	Wed Nov 03 16:44:13 2010 +0000
@@ -64,6 +64,12 @@
 	return 1;
     }
     switch (fmt) {
+    case IMGFMT_NV12:
+    case IMGFMT_NV21:
+    case IMGFMT_HM12:
+	mux_v->bih->biPlanes = 2;
+	mux_v->bih->biBitCount = 12;
+	break;
     case IMGFMT_I420:
     case IMGFMT_IYUV:
     case IMGFMT_YV12: