[FFmpeg-devel] [PATCH] Implement av_get_pix_fmt_chroma_shift()
Michael Niedermayer
michaelni
Sun Jan 31 02:12:17 CET 2010
On Sat, Jan 30, 2010 at 04:06:50PM +0100, Stefano Sabatini wrote:
[...]
> Index: ffmpeg/libavutil/pixdesc.c
> ===================================================================
> --- ffmpeg.orig/libavutil/pixdesc.c 2010-01-30 15:32:48.000000000 +0100
> +++ ffmpeg/libavutil/pixdesc.c 2010-01-30 15:57:39.000000000 +0100
> @@ -703,3 +703,11 @@
>
> return bits >> log2_pixels;
> }
> +
> +void av_get_pix_fmt_chroma_shift(int *w_shift, int *h_shift, enum PixelFormat pix_fmt)
> +{
> + if (w_shift)
> + *w_shift = av_pix_fmt_descriptors[pix_fmt].log2_chroma_w;
> + if (h_shift)
> + *h_shift = av_pix_fmt_descriptors[pix_fmt].log2_chroma_h;
> +}
what about a
int get_true(){
return 1;
}
?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100131/62260ef6/attachment.pgp>
More information about the ffmpeg-devel
mailing list