changeset 10293:f9db7d9680ba

YUV 444 411 410 support
author michael
date Sat, 14 Jun 2003 01:26:06 +0000
parents 41a8c6fff888
children 3ebbe60abeab
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Fri Jun 13 22:02:14 2003 +0000
+++ b/libmpcodecs/ve_lavc.c	Sat Jun 14 01:26:06 2003 +0000
@@ -420,6 +420,12 @@
         lavc_venc_context->pix_fmt= PIX_FMT_YUV420P;
     else if(!strcasecmp(lavc_param_format, "422P"))
         lavc_venc_context->pix_fmt= PIX_FMT_YUV422P;
+    else if(!strcasecmp(lavc_param_format, "444P"))
+        lavc_venc_context->pix_fmt= PIX_FMT_YUV444P;
+    else if(!strcasecmp(lavc_param_format, "411P"))
+        lavc_venc_context->pix_fmt= PIX_FMT_YUV411P;
+    else if(!strcasecmp(lavc_param_format, "YVU9"))
+        lavc_venc_context->pix_fmt= PIX_FMT_YUV410P;
     else{
         mp_msg(MSGT_MENCODER,MSGL_ERR,"%s is not a supported format\n", lavc_param_format);
         return 0;
@@ -504,10 +510,22 @@
         if(!strcasecmp(lavc_param_format, "YV12"))
             return VFCAP_CSP_SUPPORTED | VFCAP_ACCEPT_STRIDE;
         break;
+    case IMGFMT_411P:
+        if(!strcasecmp(lavc_param_format, "411P"))
+            return VFCAP_CSP_SUPPORTED | VFCAP_ACCEPT_STRIDE;
+        break;
     case IMGFMT_422P:
         if(!strcasecmp(lavc_param_format, "422P"))
             return VFCAP_CSP_SUPPORTED | VFCAP_ACCEPT_STRIDE;
         break;
+    case IMGFMT_444P:
+        if(!strcasecmp(lavc_param_format, "444P"))
+            return VFCAP_CSP_SUPPORTED | VFCAP_ACCEPT_STRIDE;
+        break;
+    case IMGFMT_YVU9:
+        if(!strcasecmp(lavc_param_format, "YVU9"))
+            return VFCAP_CSP_SUPPORTED | VFCAP_ACCEPT_STRIDE;
+        break;
     }
     return 0;
 }