[gst-cvs] gst-plugins-bad: opencv: fix caps issues and extend supported caps for some elements

Thiago Sousa Santos thiagoss at kemper.freedesktop.org
Mon Nov 22 17:37:38 PST 2010


Module: gst-plugins-bad
Branch: master
Commit: 6e43f75df3340fca4b9d084c51933a191f7737e2
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=6e43f75df3340fca4b9d084c51933a191f7737e2

Author: Josh Doe <josh at joshdoe.com>
Date:   Fri Nov 19 15:23:41 2010 -0500

opencv: fix caps issues and extend supported caps for some elements

Some elements had vague caps, such as "video/x-raw-rgb", which caused problems
at least with textwrite. For other elements, the underlying OpenCV functions
support more than just one image type, so I increased the number of supported
caps.

I created a utility function "gst_opencv_caps_from_cv_image_type", so each
element creates caps directly from OpenCV image types, such as CV_8UC1 for
8-bit grayscale. This function uses gstvideo to create uniform caps.

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

---

 ext/opencv/gstcvdilateerode.c  |   34 ++++++++++++++++------------------
 ext/opencv/gstcvequalizehist.c |    5 +++--
 ext/opencv/gstcvlaplace.c      |   20 +++++++++++++++-----
 ext/opencv/gstcvsmooth.c       |   33 ++++++++++++++-------------------
 ext/opencv/gstcvsobel.c        |   20 +++++++++++++++-----
 ext/opencv/gstedgedetect.c     |    5 +++--
 ext/opencv/gstfaceblur.c       |    5 +++--
 ext/opencv/gstopencvutils.c    |   30 ++++++++++++++++++++++++++++++
 ext/opencv/gstopencvutils.h    |    4 ++++
 ext/opencv/gstpyramidsegment.c |    5 +++--
 ext/opencv/gsttemplatematch.c  |    5 +++--
 ext/opencv/gsttextwrite.c      |    5 +++--
 12 files changed, 112 insertions(+), 59 deletions(-)

Diff:   http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/diff/?id=6e43f75df3340fca4b9d084c51933a191f7737e2




More information about the Gstreamer-commits mailing list