changeset 22958:1ea1e076cd4c

support format=y8 with -ovc raw
author lorenm
date Wed, 11 Apr 2007 20:28:44 +0000
parents fbcf1dd0e5df
children c71d5ae7c5a0
files libmpcodecs/ve_raw.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_raw.c	Wed Apr 11 20:25:12 2007 +0000
+++ b/libmpcodecs/ve_raw.c	Wed Apr 11 20:28:44 2007 +0000
@@ -69,6 +69,9 @@
     case IMGFMT_YUY2:
 	mux_v->bih->biBitCount = 16;
 	break;
+    case IMGFMT_Y8:
+        mux_v->bih->biBitCount = 8;
+        break;
     default:
 	mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_MPCODECS_OutputWithFourccNotSupported, fmt);
 	mux_v->bih->biCompression = 0;
@@ -111,6 +114,7 @@
     case IMGFMT_YUY2:
     case IMGFMT_YVU9:
     case IMGFMT_IF09:
+    case IMGFMT_Y8:
 	return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW;
     }