]> git.sesse.net Git - vlc/commitdiff
mux/mpeg/pes: Add documentation stub
authorDavid Flynn <davidf@rd.bbc.co.uk>
Fri, 14 Nov 2008 21:46:36 +0000 (21:46 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 15 Nov 2008 11:42:56 +0000 (12:42 +0100)
Signed-off-by: David Flynn <davidf@rd.bbc.co.uk>
Signed-off-by: Laurent Aimar <fenrir@videolan.org>
modules/mux/mpeg/pes.c

index c4b6ca5ce8c4eb1c29a61debf4f4abb8e9b8d937..899d1d0139ed52f3db3dc34750c50e9ff0ca6759 100644 (file)
 #include "pes.h"
 #include "bits.h"
 
+/** PESHeader, write a pes header
+ * \param i_header_size length of padding data to insert into PES packet
+ *                      header in bytes.
+ */
 static inline int PESHeader( uint8_t *p_hdr, mtime_t i_pts, mtime_t i_dts,
                              int i_es_size, es_format_t *p_fmt,
                              int i_stream_id, int i_private_id,
@@ -231,6 +235,14 @@ static inline int PESHeader( uint8_t *p_hdr, mtime_t i_pts, mtime_t i_dts,
     }
 }
 
+/** EStoPES, encapsulate an elementary stream block into PES packet(s)
+ * each with a maximal payload size of @i_max_pes_size@.
+ *
+ * \param i_header_size length of padding data to insert into PES packet
+ *                      header in bytes.
+ * \param i_max_pes_size maximum length of the pes packet payload
+ *                       if zero, uses default maximum
+ */
 int  EStoPES ( sout_instance_t *p_sout, block_t **pp_pes, block_t *p_es,
                    es_format_t *p_fmt, int i_stream_id,
                    int b_mpeg2, int b_data_alignment, int i_header_size,