video: add option to unpack and truncate the range
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 13 Jul 2012 13:42:26 +0000 (15:42 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 13 Jul 2012 13:42:26 +0000 (15:42 +0200)
commita18c098f82e87ba99fd58458928506edc2b230e4
tree2618102b9e6adbbc31a0a2f418154183c1735001
parent866bf89dfe30aefc6e82d1cc7b0cdc0bb89b4408
video: add option to unpack and truncate the range

Add an unpack option to specify what to do with the least significant bits of
the destination when the source format has less bits than the destination. By
default we will now copy the most significant bits of the source into the least
significant bits of the destination so that the full color range is represented.
Add an option to leave the extra destination bits 0, which may be faster and
could be compensated for in the element algorithm.
gst-libs/gst/video/video-format.c
gst-libs/gst/video/video-format.h