FFmpeg
Data Structures | Functions
audiointerleave.h File Reference
#include "libavutil/fifo.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  AudioInterleaveContext
 

Functions

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

Function Documentation

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().

void ff_audio_interleave_close ( AVFormatContext s)

Definition at line 29 of file audiointerleave.c.

Referenced by gxf_deinit(), and mxf_deinit().

int ff_audio_rechunk_interleave ( AVFormatContext s,
AVPacket out,
AVPacket pkt,
int  flush,
int(*)(AVFormatContext *, AVPacket *, AVPacket *, int get_packet,
int(*)(AVFormatContext *, const AVPacket *, const 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_packetfunction will output a packet when streams are correctly interleaved.
compare_tsfunction will compare AVPackets and decide interleaving order.

Definition at line 107 of file audiointerleave.c.

Referenced by gxf_interleave_packet(), and mxf_interleave().