From 54768e415cf0f17c1d0f8906cc2a7c8d48417a15 Mon Sep 17 00:00:00 2001 From: Jiyong Min Date: Thu, 14 Jul 2016 08:26:45 +0900 Subject: [PATCH] Modify stride color to make new stride buffer. The color will take color or last row/column pixcel on image. Change-Id: Ib9970f44b60f8e01aa64691a2ce98a14a38127c7 Signed-off-by: Jiyong Min --- gstcs/mm_util_gstcs.c | 6 +++--- packaging/libmm-imgp-gstcs.spec | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gstcs/mm_util_gstcs.c b/gstcs/mm_util_gstcs.c index d6113fe..a56ee53 100755 --- a/gstcs/mm_util_gstcs.c +++ b/gstcs/mm_util_gstcs.c @@ -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); diff --git a/packaging/libmm-imgp-gstcs.spec b/packaging/libmm-imgp-gstcs.spec index a64359a..3925591 100755 --- a/packaging/libmm-imgp-gstcs.spec +++ b/packaging/libmm-imgp-gstcs.spec @@ -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 -- 2.7.4