diff options
author | Zhao Halley <halley.zhao@intel.com> | 2012-08-02 12:15:01 +0300 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2012-08-31 04:12:46 -0400 |
commit | 9f56a31de6180e9679e2d1535684eb3287a989ba (patch) | |
tree | 6fc6c4c6bcaddeefd6ddc053ffe543455631a947 /src/i965_post_processing.c | |
parent | f74c5b9f0b1f4f948747b69cc9d4b5f3a968265c (diff) | |
download | vaapi-intel-driver-9f56a31de6180e9679e2d1535684eb3287a989ba.tar.gz vaapi-intel-driver-9f56a31de6180e9679e2d1535684eb3287a989ba.tar.bz2 vaapi-intel-driver-9f56a31de6180e9679e2d1535684eb3287a989ba.zip |
use load/save procedure instead of scaling only when
src and dst rect have exactly same geometry
Diffstat (limited to 'src/i965_post_processing.c')
-rwxr-xr-x | src/i965_post_processing.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index 68d4659..7de3678 100755 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -4777,8 +4777,12 @@ i965_proc_picture(VADriverContextP ctx, dst_surface.type = I965_SURFACE_TYPE_SURFACE; i965_vpp_clear_surface(ctx, &proc_context->pp_context, proc_state->current_render_target, pipeline_param->output_background_color); + + // 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, |