Browse code

document ff_audio_interleave

Originally committed as revision 17066 to svn://svn.ffmpeg.org/ffmpeg/trunk

Baptiste Coudurier authored on 2009/02/09 06:08:34
Showing 1 changed files
... ...
@@ -42,6 +42,15 @@ void ff_audio_interleave_close(AVFormatContext *s);
42 42
 int ff_interleave_compare_dts(AVFormatContext *s, AVPacket *next, AVPacket *pkt);
43 43
 int ff_interleave_new_audio_packet(AVFormatContext *s, AVPacket *pkt,
44 44
                                    int stream_index, int flush);
45
+/**
46
+ * Rechunk audio pcm packets per AudioInterleaveContext->samples_per_frame
47
+ * and interleave them correctly.
48
+ * AVStream->priv_data first element must be AudioInterleaveContext
49
+ * when using this function.
50
+ *
51
+ * @param get_packet function will output a packet when streams are correctly interleaved.
52
+ * @param compare_ts function will compare AVPackets and decide interleaving order.
53
+ */
45 54
 int ff_audio_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush,
46 55
                         int (*get_packet)(AVFormatContext *, AVPacket *, AVPacket *, int),
47 56
                         int (*compare_ts)(AVFormatContext *, AVPacket *, AVPacket *));