diff imgconvert.c @ 9061:d041d818f35c libavcodec

Add VA API pixel formats. Patch by Gwenole Beauchesne.
author benoit
date Fri, 27 Feb 2009 08:12:41 +0000
parents 90c99bda19f5
children 87f496299f09
line wrap: on
line diff
--- a/imgconvert.c	Fri Feb 27 08:09:23 2009 +0000
+++ b/imgconvert.c	Fri Feb 27 08:12:41 2009 +0000
@@ -419,6 +419,20 @@
         .depth = 8,
         .x_chroma_shift = 0, .y_chroma_shift = 0,
     },
+
+    /* VA API formats */
+    [PIX_FMT_VAAPI_MOCO] = {
+        .name = "vaapi_moco",
+        .is_hwaccel = 1,
+    },
+    [PIX_FMT_VAAPI_IDCT] = {
+        .name = "vaapi_idct",
+        .is_hwaccel = 1,
+    },
+    [PIX_FMT_VAAPI_VLD] = {
+        .name = "vaapi_vld",
+        .is_hwaccel = 1,
+    },
 };
 
 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift)