libavformat/audiointerleave.c File Reference

#include "libavutil/fifo.h"
#include "libavutil/mathematics.h"
#include "avformat.h"
#include "audiointerleave.h"
#include "internal.h"

Go to the source code of this file.

Functions

void ff_audio_interleave_close (AVFormatContext *s)
int ff_audio_interleave_init (AVFormatContext *s, const int *samples_per_frame, AVRational time_base)
static int ff_interleave_new_audio_packet (AVFormatContext *s, AVPacket *pkt, int stream_index, int flush)
int ff_audio_rechunk_interleave (AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush, int(*get_packet)(AVFormatContext *, AVPacket *, AVPacket *, int), int(*compare_ts)(AVFormatContext *, AVPacket *, AVPacket *))
 Rechunk audio PCM packets per AudioInterleaveContext->samples_per_frame and interleave them correctly.


Function Documentation

void ff_audio_interleave_close ( AVFormatContext s  ) 

Definition at line 29 of file audiointerleave.c.

Referenced by gxf_write_trailer(), and mxf_write_footer().

int ff_audio_interleave_init ( AVFormatContext s,
const int samples_per_frame,
AVRational  time_base 
)

Definition at line 41 of file audiointerleave.c.

Referenced by gxf_write_header(), and mxf_write_header().

int ff_audio_rechunk_interleave ( AVFormatContext s,
AVPacket out,
AVPacket pkt,
int  flush,
int(*)(AVFormatContext *, AVPacket *, AVPacket *, int get_packet,
int(*)(AVFormatContext *, AVPacket *, AVPacket *)  compare_ts 
)

Rechunk audio PCM packets per AudioInterleaveContext->samples_per_frame and interleave them correctly.

The first element of AVStream->priv_data must be AudioInterleaveContext when using this function.

Parameters:
get_packet function will output a packet when streams are correctly interleaved.
compare_ts function will compare AVPackets and decide interleaving order.

Definition at line 102 of file audiointerleave.c.

Referenced by gxf_interleave_packet(), and mxf_interleave().

static int ff_interleave_new_audio_packet ( AVFormatContext s,
AVPacket pkt,
int  stream_index,
int  flush 
) [static]

Definition at line 77 of file audiointerleave.c.

Referenced by ff_audio_rechunk_interleave().


Generated on Fri Oct 26 02:50:10 2012 for FFmpeg by  doxygen 1.5.8