[FFmpeg-cvslog] r17066 - trunk/libavformat/audiointerleave.h
bcoudurier
subversion
Sun Feb 8 22:08:35 CET 2009
Author: bcoudurier
Date: Sun Feb 8 22:08:34 2009
New Revision: 17066
Log:
document ff_audio_interleave
Modified:
trunk/libavformat/audiointerleave.h
Modified: trunk/libavformat/audiointerleave.h
==============================================================================
--- trunk/libavformat/audiointerleave.h Sun Feb 8 22:00:39 2009 (r17065)
+++ trunk/libavformat/audiointerleave.h Sun Feb 8 22:08:34 2009 (r17066)
@@ -42,6 +42,15 @@ void ff_audio_interleave_close(AVFormatC
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);
+/**
+ * Rechunk audio pcm packets per AudioInterleaveContext->samples_per_frame
+ * and interleave them correctly.
+ * AVStream->priv_data first element must be AudioInterleaveContext
+ * when using this function.
+ *
+ * @param get_packet function will output a packet when streams are correctly interleaved.
+ * @param compare_ts function will compare AVPackets and decide interleaving order.
+ */
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 *));
More information about the ffmpeg-cvslog
mailing list