summaryrefslogtreecommitdiff
path: root/libavcodec/imgconvert.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-03-03 13:43:24 +0000
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-03-03 13:43:24 +0000
commit0d8ee24c7b7a1ed0f28b0000bda77b07d4137135 (patch)
treeca7f5feefdc3dd576c20cde4a24728d750390b9f /libavcodec/imgconvert.c
parent95f03cf31f8d611e86d1dbb2d1ac84ff3f40bb41 (diff)
Set PixFmtInfo::{x, y}_chroma_shift for VDPAU and VAAPI formats.
Originally committed as revision 17766 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r--libavcodec/imgconvert.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 1e0c66de84..f76e1f06e0 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -289,22 +289,27 @@ static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = {
[PIX_FMT_VDPAU_MPEG1] = {
.name = "vdpau_mpeg1",
.is_hwaccel = 1,
+ .x_chroma_shift = 1, .y_chroma_shift = 1,
},
[PIX_FMT_VDPAU_MPEG2] = {
.name = "vdpau_mpeg2",
.is_hwaccel = 1,
+ .x_chroma_shift = 1, .y_chroma_shift = 1,
},
[PIX_FMT_VDPAU_H264] = {
.name = "vdpau_h264",
.is_hwaccel = 1,
+ .x_chroma_shift = 1, .y_chroma_shift = 1,
},
[PIX_FMT_VDPAU_WMV3] = {
.name = "vdpau_wmv3",
.is_hwaccel = 1,
+ .x_chroma_shift = 1, .y_chroma_shift = 1,
},
[PIX_FMT_VDPAU_VC1] = {
.name = "vdpau_vc1",
.is_hwaccel = 1,
+ .x_chroma_shift = 1, .y_chroma_shift = 1,
},
[PIX_FMT_UYYVYY411] = {
.name = "uyyvyy411",
@@ -424,14 +429,17 @@ static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = {
[PIX_FMT_VAAPI_MOCO] = {
.name = "vaapi_moco",
.is_hwaccel = 1,
+ .x_chroma_shift = 1, .y_chroma_shift = 1,
},
[PIX_FMT_VAAPI_IDCT] = {
.name = "vaapi_idct",
.is_hwaccel = 1,
+ .x_chroma_shift = 1, .y_chroma_shift = 1,
},
[PIX_FMT_VAAPI_VLD] = {
.name = "vaapi_vld",
.is_hwaccel = 1,
+ .x_chroma_shift = 1, .y_chroma_shift = 1,
},
};