opencv: fix caps issues and extend supported caps for some elements
authorJosh Doe <josh@joshdoe.com>
Fri, 19 Nov 2010 20:23:41 +0000 (15:23 -0500)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 23 Nov 2010 01:25:18 +0000 (22:25 -0300)
commit6e43f75df3340fca4b9d084c51933a191f7737e2
treeab435bda115e6673b0675d76ee1b1246c2c3a9a2
parent7622328aab0aea21841a50e1fa4ab98b8d6389fa
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
12 files changed:
ext/opencv/gstcvdilateerode.c
ext/opencv/gstcvequalizehist.c
ext/opencv/gstcvlaplace.c
ext/opencv/gstcvsmooth.c
ext/opencv/gstcvsobel.c
ext/opencv/gstedgedetect.c
ext/opencv/gstfaceblur.c
ext/opencv/gstopencvutils.c
ext/opencv/gstopencvutils.h
ext/opencv/gstpyramidsegment.c
ext/opencv/gsttemplatematch.c
ext/opencv/gsttextwrite.c