#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. |
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.
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 98 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] |