[FFmpeg-cvslog] r17038 - in trunk/libavformat: Makefile audiointerleave.c audiointerleave.h mxfenc.c
Baptiste Coudurier
baptiste.coudurier
Sun Feb 8 22:13:15 CET 2009
On 2/8/2009 9:06 AM, Michael Niedermayer wrote:
> 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
>
Documented.
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-cvslog
mailing list