[0.11] gst-plugins-base: video: fix some video formats

Wim Taymans wtay at kemper.freedesktop.org
Mon Jan 2 04:40:50 PST 2012

Module: gst-plugins-base
Branch: 0.11
Commit: 21bf4f04f3fdfa04aa565f144ec73a340a641cee
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=21bf4f04f3fdfa04aa565f144ec73a340a641cee

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Mon Jan  2 13:30:53 2012 +0100

video: fix some video formats

Rename the offset field in GstVideoFormatInfo to poffset to avoid confusion with
the offset of the plane in the buffer. The poffset is the offset in the plane
where the first byte of the component data can be found.
Properly implement the COMP_OFFSET calculations.
Fix YV12 and YVU9, simply use the same offsets as the regular I420 and YUV9
variants, we use the plane info to reorder components already.
Improve the unit test.


 gst-libs/gst/video/video.c |   24 +-----------
 gst-libs/gst/video/video.h |   16 +++++---
 tests/check/libs/video.c   |   89 ++++++++++++++++++++++----------------------
 3 files changed, 56 insertions(+), 73 deletions(-)

Diff:   http://cgit.freedesktop.org/gstreamer/gst-plugins-base/diff/?id=21bf4f04f3fdfa04aa565f144ec73a340a641cee

More information about the gstreamer-commits mailing list