[FFmpeg-cvslog] r17038 - in trunk/libavformat: Makefile audiointerleave.c audiointerleave.h mxfenc.c

Michael Niedermayer michaelni
Sun Feb 8 18:06:45 CET 2009


On Sun, Feb 08, 2009 at 05:31:44AM +0100, bcoudurier wrote:
> Author: bcoudurier
> Date: Sun Feb  8 05:31:44 2009
> New Revision: 17038
> 
> Log:
> extract audio interleaving code from mxf muxer, will be used by gxf and dv
> 
> Added:
>    trunk/libavformat/audiointerleave.c
>    trunk/libavformat/audiointerleave.h
> Modified:
>    trunk/libavformat/Makefile
>    trunk/libavformat/mxfenc.c
[...]
> +typedef struct {
> +    AVFifoBuffer fifo;
> +    unsigned fifo_size;           ///< current fifo size allocated
> +    uint64_t dts;                 ///< current dts
> +    int sample_size;              ///< size of one sample all channels included
> +    const int *samples_per_frame; ///< must be 0 terminated
> +    const int *samples;           ///< current samples per frame, pointer to samples_per_frame
> +    AVRational time_base;         ///< time base of output audio packets
> +} AudioInterleaveContext;
> +
> +int ff_audio_interleave_init(AVFormatContext *s, const int *samples_per_frame, AVRational time_base);
> +void ff_audio_interleave_close(AVFormatContext *s);
> +
> +int ff_interleave_compare_dts(AVFormatContext *s, AVPacket *next, AVPacket *pkt);
> +int ff_interleave_new_audio_packet(AVFormatContext *s, AVPacket *pkt,
> +                                   int stream_index, int flush);
> +int ff_audio_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush,
> +                        int (*get_packet)(AVFormatContext *, AVPacket *, AVPacket *, int),
> +                        int (*compare_ts)(AVFormatContext *, AVPacket *, AVPacket *));
> +

please document this a litte more.
Even 1 or 2 sentances that awseer
what does audiointerleave do? would help i think

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

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- 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-cvslog/attachments/20090208/98d4e11e/attachment.pgp>



More information about the ffmpeg-cvslog mailing list