[Libva] [PATCH 6/6 v2] update image width of packed format
Zhao halley
halley.zhao at intel.com
Thu May 31 02:00:29 PDT 2012
---
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 a720a99..bfb762e 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];
--
1.7.5.4
More information about the Libva
mailing list