summaryrefslogtreecommitdiff
path: root/libavcodec/imgconvert.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-02-27 08:12:41 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2009-02-27 08:12:41 +0000
commitf06ce1ce89dd3bb16a0e66d7bc86ab68e311b4c5 (patch)
tree1d7479afcb5bb8d6e2079deeeec0c9bc275ad8bb /libavcodec/imgconvert.c
parent044f0296a4a6b57d6bc3e9e8da5f27c10e7ebb34 (diff)
downloadffmpeg-f06ce1ce89dd3bb16a0e66d7bc86ab68e311b4c5.tar.gz
Add VA API pixel formats.
Patch by Gwenole Beauchesne. Originally committed as revision 17634 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r--libavcodec/imgconvert.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 84e1bee8ac..9f5db68191 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -419,6 +419,20 @@ static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = {
.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)