summaryrefslogtreecommitdiff
path: root/src/gen8_post_processing.c
diff options
context:
space:
mode:
authorAlex wu <zhiwen.wu@intel.com>2014-03-23 20:45:27 -0600
committerXiang, Haihao <haihao.xiang@intel.com>2014-04-23 14:20:45 +0800
commit5bf0709f52fc3308a6345585f9acae182e60df00 (patch)
treef20ac433e94ee68c430ebd0e9fe819c905181198 /src/gen8_post_processing.c
parent7b6523cb9d63e3cfcc238dfd0d5f4fc323ca59e2 (diff)
downloadlibva-intel-driver-5bf0709f52fc3308a6345585f9acae182e60df00.tar.gz
libva-intel-driver-5bf0709f52fc3308a6345585f9acae182e60df00.tar.bz2
libva-intel-driver-5bf0709f52fc3308a6345585f9acae182e60df00.zip
V3: Add 422H support.
Changes between V3 to V2: 1. Add 422H support into gen8_post_processing.c, according to yakui's comments. changes between V2 and V1: 1. Rebase on staging branch. 2. Add 422H support for pp. 3. Reword the commit title. Signed-off-by: Alex wu <zhiwen.wu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> (cherry picked from commit 347dd731d31dd37b242bbace744125554f2c09e7)
Diffstat (limited to 'src/gen8_post_processing.c')
-rw-r--r--src/gen8_post_processing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen8_post_processing.c b/src/gen8_post_processing.c
index a4fbcbb..4fbc01e 100644
--- a/src/gen8_post_processing.c
+++ b/src/gen8_post_processing.c
@@ -540,7 +540,7 @@ gen8_pp_set_media_rw_message_surface(VADriverContextP ctx, struct i965_post_proc
height[2] = obj_image->image.height / 2;
pitch[2] = obj_image->image.pitches[V];
offset[2] = obj_image->image.offsets[V];
- if (fourcc == VA_FOURCC_YV16) {
+ if (fourcc == VA_FOURCC_YV16 || fourcc == VA_FOURCC_422H) {
width[1] = obj_image->image.width / 2;
height[1] = obj_image->image.height;
width[2] = obj_image->image.width / 2;