[FFmpeg-devel] [PATCH] Block switching option

Michael Niedermayer michaelni
Fri Jul 17 21:33:12 CEST 2009


On Fri, Jul 17, 2009 at 12:36:13PM -0400, Alex Converse wrote:
> The attached patch adds a block switching option to FFmpeg and AVCodecContext.

[...]
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index 8eb7c3c..1cf3423 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -2518,6 +2518,13 @@ typedef struct AVCodecContext {
>       * - decoding: Set by libavcodec
>       */
>       enum AVChromaLocation chroma_sample_location;
> +
> +    /**
> +     * Enable block switching as used by lapped transform audio coders.
> +     * - encoding: Set by user.
> +     * - decoding: unused
> +     */
> +     int block_switching;
>  } AVCodecContext;
>  

the existing AVCodecContext.partitions seem to match this semantically.
At least if the text is reformulated a little

Also the partitions code is more flexible as it allows more than yes/no

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- 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/20090717/721e3893/attachment.pgp>



More information about the ffmpeg-devel mailing list