[FFmpeg-devel] Brainfart cropping

Jason Garrett-Glaser darkshikari
Wed Sep 10 21:58:35 CEST 2008


> the crop values are AFAIK in chroma samples, so 8 should be correct for 4:2:0
> But it should be easy to check with the reference sw how much is cropped.

Apparently this isn't correct.  From 7.4.2:

The variables CropUnitX and CropUnitY are derived as follows:
If chroma_format_idc is equal to 0, CropUnitX and CropUnitY are derived as
CropUnitX = 1
CropUnitY = 2 - frame_mbs_only_flag
Otherwise (chroma_format_idc is equal to 1, 2, or 3), CropUnitX and
CropUnitY are derived as
CropUnitX = SubWidthC
CropUnitY = SubHeightC * ( 2 - frame_mbs_only_flag )

Dark Shikari




More information about the ffmpeg-devel mailing list