GNOME Bugzilla – Bug 740228
video: implement x offset parameter in GstVideoFormatUnpack functions for all formats
Last modified: 2018-11-03 11:32:50 UTC
+++ This bug was initially created as a clone of Bug #739281 +++ Two issues: a) our GstVideoFormatUnpack functions for the various video formats seem to completely ignore the x parameter. b) GstVideoFormatPack does not seem to have an x parameter; this is unfortunate, since it means we need to unpack/pack a lot of pixels we don't actually need at all (e.g. when blending pixels of a logo somewhere we'd need to unpack/pack from x=0 to x=logo_xpos+logo_width instead of from x=logo_xpos to x=logo_xpos+logo_width (unless we manually adjust row pointers we pass I guess, which won't work well for complex formats)
Vineeth, Will you have time to work on this bug?
i will try to start working on this from next week, if no one else has started with this...
We can't add an x parameter to the Pack function, so have to compensate for that by adjusting the destination pointers using pstride and subsampling. Please add unit tests for each format.
commit 52d4dd1cb0d3719b7487d5cb0765ecded9028bf4 Author: Wim Taymans <wtaymans@redhat.com> Date: Thu Nov 27 13:01:03 2014 +0100 video-format: handle x offset in unpack Add support for x offset in almost all unpack methods. Fix naming of source and dest pixels. Add const to source pixels.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/144.