Modify stride color to make new stride buffer. 76/79976/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170104.125153 accepted/tizen/3.0.m2/tv/20170104.125515 accepted/tizen/3.0.m2/wearable/20170104.125750 accepted/tizen/3.0/common/20161114.105803 accepted/tizen/3.0/ivi/20161011.044407 accepted/tizen/3.0/mobile/20161015.033532 accepted/tizen/3.0/tv/20161016.004832 accepted/tizen/3.0/wearable/20161015.083253 accepted/tizen/common/20160805.130124 accepted/tizen/ivi/20160808.081136 accepted/tizen/mobile/20160808.080734 accepted/tizen/tv/20160808.080943 accepted/tizen/unified/20170309.033047 accepted/tizen/wearable/20160808.081049 submit/tizen/20160805.054353 submit/tizen_3.0.m2/20170104.093750 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000003 submit/tizen_3.0_mobile/20161015.000003 submit/tizen_3.0_tv/20161015.000003 submit/tizen_3.0_wearable/20161015.000003 submit/tizen_unified/20170308.100408
authorJiyong Min <jiyong.min@samsung.com>
Wed, 13 Jul 2016 23:26:45 +0000 (08:26 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Thu, 14 Jul 2016 03:32:14 +0000 (12:32 +0900)
The color will take color or last row/column pixcel on image.

Change-Id: Ib9970f44b60f8e01aa64691a2ce98a14a38127c7
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
gstcs/mm_util_gstcs.c
packaging/libmm-imgp-gstcs.spec

index d6113fe..a56ee53 100755 (executable)
@@ -594,13 +594,13 @@ _mm_push_buffer_into_pipeline_new(image_format_s *input_format, image_format_s *
                guint8 *pLine = (guint8 *) &(src[src_row * y]);
                for (i = 0; i < src_row; i++)
                        data[y * stride_row + i] = pLine[i];
-
+               guint8 stride_row_color = pLine[i - 1];
                for (i = src_row; i < stride_row; i++)
-                       data[y * stride_row + i] = 0x00;
+                       data[y * stride_row + i] = stride_row_color;
        }
        for (y = (unsigned int)(input_format->height); y < (unsigned int)(input_format->elevation); y++) {
                for (i = 0; i < stride_row; i++)
-                       data[y * stride_row + i] = 0x00;
+                       data[y * stride_row + i] = data[(y - 1) * stride_row + i];
        }
        gst_buf = gst_buffer_new_wrapped_full(GST_MEMORY_FLAG_READONLY, data, src_size, 0, src_size, data, _mm_destroy_notify);
 
index a64359a..3925591 100755 (executable)
@@ -1,7 +1,7 @@
 #sbs-git:slp/pkgs/l/libmm-imgp-gstcs libmm-imgp-gstcs 0.1 62b62e6d483557fc5750d1b4986e9a98323f1194
 Name:       libmm-imgp-gstcs
 Summary:    Multimedia Framework Utility Library
-Version:    0.11
+Version:    0.12
 Release:    16
 Group:      System/Libraries
 License:    Apache-2.0