[FFmpeg-cvslog] r17548 - in trunk/libavcodec: pixdesc.c pixdesc.h
Andreas Öman
andreas
Tue Feb 24 08:29:14 CET 2009
michael wrote:
> Author: michael
> Date: Tue Feb 24 02:08:29 2009
> New Revision: 17548
>
> Log:
> Pixel Format descriptor, try #1.
> (yes its intentionally unused, this is intended as a basis for further
> work, and to prevent repeation of the whole discussion dying and the
> results being forgotten)
>
> Added:
> trunk/libavcodec/pixdesc.c
> trunk/libavcodec/pixdesc.h
>
> Added: trunk/libavcodec/pixdesc.c
> ==============================================================================
> --- /dev/null 00:00:00 1970 (empty, because file is newly added)
> +++ trunk/libavcodec/pixdesc.c Tue Feb 24 02:08:29 2009 (r17548)
> + /**
> + * Amount to shift the luma width right to find the chroma width, this is for
> + * example 1 for YV12
> + * chroma_width = -((-luma_width )>>log2_chroma_w)
> + * note above is needed to ensure rounding up
> + */
> + uint8_t log2_chroma_w; ///< chroma_width = -((-luma_width )>>log2_chroma_w)
Would it make sense to have this conversion available as a macro?
More information about the ffmpeg-cvslog
mailing list