e_comp_wl_rsm: fix wrong dump images for transformed buffer accepted/tizen_3.0_common accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/common/20171026.152921 accepted/tizen/3.0/mobile/20171026.010156 accepted/tizen/3.0/tv/20171026.010222 accepted/tizen/3.0/wearable/20171026.010258 submit/tizen_3.0/20171019.130042
authorBoram Park <boram1288.park@samsung.com>
Tue, 10 Oct 2017 09:05:56 +0000 (18:05 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 12 Oct 2017 00:04:14 +0000 (09:04 +0900)
Change-Id: I3795f0456f3c879d04683f410c17538847320012

src/bin/e_comp_wl_rsm.c

index 03f00ff560a31d6174384d0ac502aafca163f298..7c58b1d444713d3a76d1fa8de200b0fe59f2d294 100644 (file)
@@ -1049,7 +1049,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)
@@ -1059,7 +1059,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;
      }
 
@@ -1079,7 +1079,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:
 
@@ -1379,13 +1379,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)