}
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);
__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;
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;
}
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;
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);
/*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*/