diff options
author | Zhao halley <halley.zhao@intel.com> | 2012-05-31 17:00:29 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2012-06-25 09:00:00 +0800 |
commit | 778474c93f08703315fd8611631c53d49c1c73a0 (patch) | |
tree | 582ff95bed242811ad1ee5f8805797681ab666a9 | |
parent | f1952f99b665037e4d5a9fb98eda95a797e0b9eb (diff) | |
download | vaapi-intel-driver-778474c93f08703315fd8611631c53d49c1c73a0.tar.gz vaapi-intel-driver-778474c93f08703315fd8611631c53d49c1c73a0.tar.bz2 vaapi-intel-driver-778474c93f08703315fd8611631c53d49c1c73a0.zip |
update image width of packed format
-rwxr-xr-x | src/i965_post_processing.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index 0eea6db..3e3a513 100755 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -1257,7 +1257,10 @@ pp_set_media_rw_message_surface(VADriverContextP ctx, struct i965_post_processin pitch[0] = obj_image->image.pitches[0]; offset[0] = obj_image->image.offsets[0]; - if (interleaved_uv) { + if (packed_yuv ) { + width[0] = obj_image->image.width * 2; + } + else if (interleaved_uv) { width[1] = obj_image->image.width; height[1] = obj_image->image.height / 2; pitch[1] = obj_image->image.pitches[1]; |