[Bug 764987] video: add explicit setter and getter for GstVideoCropMeta

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Aug 23 07:50:30 UTC 2016


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

--- Comment #2 from Arjen Veenhuizen <arjen.veenhuizen at tno.nl> ---
I am no expert on gi at all, I just deduced that this solution got things
running :). 

Example code in python:

info = GstVideo.VideoCropMeta.get_info()
if(not(isinstance(info, Gst.MetaInfo))):
    print "This is bad"
    return 
meta = gstBuf.add_meta(info, 0)
GstVideo.buffer_set_video_crop_meta(meta, x, y, w, h)

You can retrieve the video_crop_meta using:
print GstVideo.buffer_get_video_crop_meta(gstBuf)

Not sure if I answered your question at all, so feel free to shoot if
necessary.

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


More information about the gstreamer-bugs mailing list