Remove unused parameters 46/169746/1
authorhj kim <backto.kim@samsung.com>
Fri, 9 Feb 2018 01:42:54 +0000 (10:42 +0900)
committerhj kim <backto.kim@samsung.com>
Fri, 9 Feb 2018 01:43:08 +0000 (10:43 +0900)
Change-Id: Ib548b14ca57821a0db3bd32157428b7ea77f5ede

gstcs/include/mm_util_gstcs_internal.h
gstcs/mm_util_gstcs.c

index 641f51c..699e05a 100755 (executable)
@@ -81,7 +81,6 @@ typedef struct _image_format_s {
        int height;
        int stride;
        int elevation;
-       int blocksize;
        GstCaps* caps;
 } image_format_s;
 
index fe3c7b3..df2b293 100755 (executable)
@@ -169,7 +169,7 @@ _mm_check_caps_format(GstCaps* caps)
 }
 
 static void
-_mm_link_pipeline(gstreamer_s* pGstreamer_s, image_format_s* input_format, image_format_s* output_format, int value)
+_mm_link_pipeline(gstreamer_s* pGstreamer_s, int value)
 {
        /* set property */
        gst_bin_add_many(GST_BIN(pGstreamer_s->pipeline), pGstreamer_s->appsrc, pGstreamer_s->colorspace, pGstreamer_s->videoscale, pGstreamer_s->videoflip, pGstreamer_s->appsink, NULL);
@@ -478,8 +478,6 @@ _mm_set_input_image_format_s_struct(imgp_info_s* pImgp_info) /* char* __format_l
        __format->height = pImgp_info->src_height;
        _mm_round_up_input_image_widh_height(__format);
 
-       __format->blocksize = mm_setup_image_size(pImgp_info->input_format_label, pImgp_info->src_width, pImgp_info->src_height);
-       gstcs_debug("blocksize: %d\n", __format->blocksize);
        _mm_set_image_input_format_s_capabilities(__format);
 
        return __format;
@@ -535,7 +533,6 @@ _mm_set_output_image_format_s_struct(imgp_info_s* pImgp_info, const image_format
        pImgp_info->output_stride = __format->stride;
        pImgp_info->output_elevation = __format->elevation;
 
-       __format->blocksize = mm_setup_image_size(pImgp_info->output_format_label, pImgp_info->dst_width, pImgp_info->dst_height);
        gstcs_debug("output_format_label: %s", pImgp_info->output_format_label);
        _mm_set_image_output_format_s_capabilities(__format);
        return __format;
@@ -564,7 +561,7 @@ _mm_push_buffer_into_pipeline(imgp_info_s* pImgp_info, unsigned char *src, gstre
 }
 
 static int
-_mm_push_buffer_into_pipeline_new(image_format_s *input_format, image_format_s *output_format, unsigned char *src, gstreamer_s * pGstreamer_s)
+_mm_push_buffer_into_pipeline_new(image_format_s *input_format, unsigned char *src, gstreamer_s * pGstreamer_s)
 {
        int ret = GSTCS_ERROR_NONE;
        GstBuffer *gst_buf = NULL;
@@ -641,7 +638,7 @@ _mm_imgp_gstcs_processing(gstreamer_s* pGstreamer_s, unsigned char *src, unsigne
        if (((input_format->width != input_format->stride) || (input_format->height != input_format->elevation)) &&
                ((strcmp(input_format->colorspace, "RGB") == 0) || (strcmp(input_format->colorspace, "RGBA") == 0))) {
                gstcs_debug("Start _mm_push_buffer_into_pipeline_new");
-               ret = _mm_push_buffer_into_pipeline_new(input_format, output_format, src, pGstreamer_s);
+               ret = _mm_push_buffer_into_pipeline_new(input_format, src, pGstreamer_s);
        } else {
                gstcs_debug("Start mm_push_buffer_into_pipeline");
                ret = _mm_push_buffer_into_pipeline(pImgp_info, src, pGstreamer_s);
@@ -655,7 +652,7 @@ _mm_imgp_gstcs_processing(gstreamer_s* pGstreamer_s, unsigned char *src, unsigne
 
        /*link pipeline*/
        gstcs_debug("Start mm_link_pipeline");
-       _mm_link_pipeline(pGstreamer_s, input_format, output_format, pImgp_info->angle);
+       _mm_link_pipeline(pGstreamer_s, pImgp_info->angle);
        gstcs_debug("End mm_link_pipeline");
 
        /* Conecting to the new-sample signal emited by the appsink*/