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

Stefano Sabatini stefano.sabatini-lala
Sat Jan 30 16:33:51 CET 2010

On date Saturday 2010-01-30 16:06:50 +0100, Stefano Sabatini encoded:
> 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;
> |
> v
> av_get_pix_fmt_chroma_shift(&w, &h, pix_fmt);

Updated (makes avcodec_get_chroma_subsample() use the new implementation, and
drop its declaration at the next major bump).

FFmpeg = Fantastic and Fucking Merciful Pure Ermetic Guide
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement-get-pix-fmt-chroma-shift.patch
Type: text/x-diff
Size: 2826 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100130/71b7599f/attachment.patch>

More information about the ffmpeg-devel mailing list