[FFmpeg-devel] [PATCH] Implement av_get_pix_fmt_chroma_shift()

Stefano Sabatini stefano.sabatini-lala
Sat Jan 30 16:06:50 CET 2010

Hi, this is currently implemented both in lavc
(avcodec_get_chroma_subsample) and lsws (getSubSampleFatcors), also
it allows to simplify the code:

w = av_pix_fmt_descriptors[pix_fmt].log2_chroma_w;
h = av_pix_fmt_descriptors[pix_fmt].log2_chroma_h;
av_get_pix_fmt_chroma_shift(w, h, pix_fmt);

FFmpeg = Furious and Friendly Mystic Plastic Ecumenical Guru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement-get-pix-fmt-chroma-shift.patch
Type: text/x-diff
Size: 2722 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100130/10a8feab/attachment.patch>

More information about the ffmpeg-devel mailing list