[Bug 775288] opencv: base opencv video filter class does not fully implement the video filter contract

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Nov 29 15:18:35 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=775288

--- Comment #7 from Philippe Renon <philippe_renon at yahoo.fr> ---
Minor nitpicks:

+  vfilter_class->transform_frame = gst_opencv_video_filter_transform_frame;
+  vfilter_class->transform_frame_ip =
gst_opencv_video_filter_transform_frame_ip;
+  vfilter_class->set_info = gst_opencv_video_filter_set_info;
^ set_info should come first ? (same applies where the protorypes are declared
and other places...).


+  transform->out_cvImage->imageData = (char *) outframe->data[0];
+  transform->out_cvImage->imageSize = outframe->info.size;
+  transform->out_cvImage->widthStep = outframe->info.stride[0];
^ there are macros to extract those items from a GstVideoFrames.


+  ret = fclass->cv_trans_ip_func (transform, frame->buffer,
transform->cvImage);
^ my patch will take care of renaming the vfuncs to proper names (i.e.
cv_transform_frame_ip) and passing GstVideoFrame in place of GstBuffer, which
will impact all elements deriving from gstopencvvideofilter.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the gstreamer-bugs mailing list