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.
Showing with 142 additions and 41 deletions