From ddbebe3bd4c4f9fb069a1219f2ed935aa045f9ac Mon Sep 17 00:00:00 2001 From: Boram Park Date: Tue, 10 Oct 2017 18:05:56 +0900 Subject: [PATCH] e_comp_wl_rsm: fix wrong dump images for transformed buffer Change-Id: I3795f0456f3c879d04683f410c17538847320012 --- src/bin/e_comp_wl_rsm.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/bin/e_comp_wl_rsm.c b/src/bin/e_comp_wl_rsm.c index 4491d61..7872900 100644 --- a/src/bin/e_comp_wl_rsm.c +++ b/src/bin/e_comp_wl_rsm.c @@ -1047,7 +1047,7 @@ _remote_source_image_data_transform(Thread_Data *td, int w, int h) if (td->transform == WL_OUTPUT_TRANSFORM_90) { - c = 0, s = -1, tx = -w; + c = 0, s = -1, tx = -h; tw = h, th = w; } else if (td->transform == WL_OUTPUT_TRANSFORM_180) @@ -1057,7 +1057,7 @@ _remote_source_image_data_transform(Thread_Data *td, int w, int h) } else if (td->transform == WL_OUTPUT_TRANSFORM_270) { - c = 0, s = 1, ty = -h; + c = 0, s = 1, ty = -w; tw = h, th = w; } @@ -1077,7 +1077,7 @@ _remote_source_image_data_transform(Thread_Data *td, int w, int h) pixman_transform_from_pixman_f_transform(&t, &ft); pixman_image_set_transform(src_img, &t); - pixman_image_composite(PIXMAN_OP_SRC, src_img, NULL, dst_img, 0, 0, 0, 0, 0, 0, w, h); + pixman_image_composite(PIXMAN_OP_SRC, src_img, NULL, dst_img, 0, 0, 0, 0, 0, 0, tw, th); error_case: @@ -1394,13 +1394,7 @@ _remote_source_save_start(E_Comp_Wl_Remote_Source *source) ecore_thread_cancel(source->th); } - if (ec->comp_data) - { - E_Comp_Wl_Buffer_Viewport *vp = &ec->comp_data->scaler.buffer_viewport; - td->transform = vp->buffer.transform; - } - else - td->transform = 0; + td->transform = e_comp_wl_output_buffer_transform_get(ec); e_comp_wl_buffer_reference(&source->buffer_ref, buffer); switch (buffer->type) -- 2.7.4