[Libva] [PATCH 6/8] use load/save procedure instead of scaling only when

Zhao Halley halley.zhao at intel.com
Sun Aug 12 23:50:13 PDT 2012


src and dst rect have exactly same geometry
---
 src/i965_post_processing.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index e583317..840dec5 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -4742,8 +4742,11 @@ i965_proc_picture(VADriverContextP ctx,
     dst_surface.id = proc_state->current_render_target;
     dst_surface.type = I965_SURFACE_TYPE_SURFACE;
 
+    // load/save doesn't support different origin offset for src and dst surface
     if (src_rect.width == dst_rect.width &&
-        src_rect.height == dst_rect.height) {
+        src_rect.height == dst_rect.height && 
+        src_rect.x == dst_rect.x && 
+        src_rect.y == dst_rect.y) {
         i965_post_processing_internal(ctx, &proc_context->pp_context,
                                       &src_surface,
                                       &src_rect,
-- 
1.7.9.5



More information about the Libva mailing list