swscale/utils: Fix color range of gray16
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 18 Mar 2014 02:19:18 +0000 (03:19 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Mar 2014 21:15:15 +0000 (22:15 +0100)
commit37c07d45290cf9cdad061cd5c2af94a2783ba847
tree7dba5b6c96debb30175f248a77c8e5bfc02cca7d
parent05d7059ac6b640796001bf347d309a40a4fd4a12
swscale/utils: Fix color range of gray16

Improves rgb -> gray16 conversion

Fixes Ticket3422

The pam and png output files look visually similar, in both cases the
dynamics increase to 0x0 -> 0xfffb.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 files changed:
libswscale/utils.c
tests/ref/fate/filter-pixdesc
tests/ref/fate/filter-pixfmts-copy
tests/ref/fate/filter-pixfmts-crop
tests/ref/fate/filter-pixfmts-field
tests/ref/fate/filter-pixfmts-fieldorder
tests/ref/fate/filter-pixfmts-hflip
tests/ref/fate/filter-pixfmts-il
tests/ref/fate/filter-pixfmts-null
tests/ref/fate/filter-pixfmts-scale
tests/ref/fate/filter-pixfmts-vflip
tests/ref/lavf/pam
tests/ref/lavf/png