[FFmpeg-devel] [PATCH v2] avcodec/tiff: add limited support for ReferenceBlackWhite and YCbCrCoefficients tags

Skakov Pavel pavelsx at gmail.com
Fri Oct 4 21:29:02 EEST 2019


>> Add support for properly handling PC/TV ranges and Rec601/Rec709 color spaces.
> Can't this be implemented without using floats?

AVRationals are not a good idea as those values are unsigned and often use full unsigned range.
Here is slightly different approach: range check for fractional rationals and exact check for integer expected values.
Warning text is probably better left with floats as they provide the most meaningful values for end user.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avcodec-tiff-add-limited-support-for-ReferenceBlackW.patch
Type: text/x-patch
Size: 6252 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20191004/f4c23ac0/attachment.bin>


More information about the ffmpeg-devel mailing list