[FFmpeg-devel] [PATCH] lavf/tiff: add support for YUV deflate

James Almer jamrial at gmail.com
Tue Aug 19 18:39:33 CEST 2014


On 19/08/14 7:07 AM, Michael Niedermayer wrote:
> is photometric guranteed to match the pix_fmt ?
>
> iam asking as i dont see that being ensured by the code but i might
> be missing something
> if they could mismatch, id assume it might crash

TIFF_PHOTOMETRIC_YCBCR seems to simply be a flag to signal yuv data. If it's set, 
init_image() chooses the pix_fmt by looking at some other values in the file.
I copied the exact same check used in other compression algorithms (lzw, packbits, 
even raw) to know if it's yuv or rgb, and process it if the former. So if there 
hasn't been any kind of mismatch in those, it shouldn't in this one either.


More information about the ffmpeg-devel mailing list