Convert CvMat to GstBuffer

Sebastian Dröge sebastian at centricular.com
Mon Jun 12 09:19:31 UTC 2017


On Thu, 2017-06-08 at 15:34 -0700, raomayurs wrote:
> Hi,
> I am a newbie to gstreamer plugin development. I am trying to create a
> plugin using the tool provided by gstreamer. I am following the plugin
> writer's guide. I am trying to process data in the _chain function. I was
> able to successfully extract the video frame from GstBuffer and do my
> processing using openCV. But now I am unable to reconvert CvMat into
> GstBuffer.

Check the opencv plugin's code in gst-plugins-bad. It also uses CvMat
in a few places and should give some ideas how it can be done.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170612/9f7f9429/attachment.sig>


More information about the gstreamer-devel mailing list