video-format: fix interlaced 4:2:0 and 4:1:0 pack/unpack
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 4 Feb 2013 14:01:10 +0000 (15:01 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 4 Feb 2013 14:06:10 +0000 (15:06 +0100)
commitc1a25d2ce76bff3e7828c984c103b6411c6d4add
treeb24afa5f2dcde360260f662c4f0a2e37e13432f7
parented2ce494995445f6f02cbea902252919b413f201
video-format: fix interlaced 4:2:0 and 4:1:0 pack/unpack

For interlaced vertically subsampled images we need to combine alternating
chroma lines with alternating luma lines. That is line 0 and 2 are combined
with the first line of chroma samples and line 1 and 3 with the second line
of chroma samples.

See also: https://bugzilla.gnome.org/show_bug.cgi?id=588535
gst-libs/gst/video/video-format.c