avutil/color_utils: Add basic transfer functions for each AVColorTransferCharacteristic
authorKevin Wheatley <kevin.j.wheatley@gmail.com>
Tue, 1 Sep 2015 10:41:38 +0000 (11:41 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Sep 2015 21:53:05 +0000 (23:53 +0200)
commitbac90482654219cfdde65680726b85516dcbdc66
treeb963954a424c05a621d2478a45f226838096eb7f
parentf6e598afa8229d25bc8b84c954282d74147d6265
avutil/color_utils: Add basic transfer functions for each AVColorTransferCharacteristic

Most functions are valid over a domain and range of [0.0-1.0] but
some are defined over greater. This patch does not deal with
AVColorRange and assumes AVCOL_RANGE_JPEG for the returned values.

Signed-off-by: Kevin Wheatley <kevin.j.wheatley@gmail.com>
libavutil/color_utils.c
libavutil/color_utils.h