libdvbv5: MPEG TS parser documentation and cleanups
PATCH 1/1 libdvbv5: MPEG TS parser documentation and cleanups
Documents the table parser for MPEG-PES. Cleanup doxygen of other parsers.
Signed-off-by André Roth <[email protected]>
--- doxygen_libdvbv5.cfg | 3 +- lib/include/libdvbv5/mpeg_es.h | 11 ++- lib/include/libdvbv5/mpeg_pes.h | 146 ++++++++++++++++++++++++++++++++++++++-- lib/include/libdvbv5/mpeg_ts.h | 18 +++-- 4 files changed, 164 insertions(+), 14 deletions(-)
doxygen_libdvbv5.cfg +2 -1
@@ -764,8 +764,9 @@ INPUT = $(SRCDIR)/doc/libdvbv5-index.doc \ $(SRCDIR)/lib/include/libdvbv5/sdt.h \ $(SRCDIR)/lib/include/libdvbv5/vct.h \ $(SRCDIR)/lib/include/libdvbv5/crc32.h \ - $(SRCDIR)/lib/include/libdvbv5/mpeg_es.h \ $(SRCDIR)/lib/include/libdvbv5/mpeg_ts.h \ + $(SRCDIR)/lib/include/libdvbv5/mpeg_pes.h \ + $(SRCDIR)/lib/include/libdvbv5/mpeg_es.h \ # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
lib/include/libdvbv5/mpeg_es.h +9 -2
@@ -70,7 +70,8 @@/** * @struct dvb_mpeg_es_seq_start -* @brief Sequence header +* @brief MPEG ES Sequence header +* @ingroup dvb_table * * @param type DVB_MPEG_ES_SEQ_START * @param sync Sync bytes
@@ -117,7 +118,8 @@ struct dvb_mpeg_es_seq_start {/** * @struct dvb_mpeg_es_pic_start -* @brief Picture start header +* @brief MPEG ES Picture start header +* @ingroup dvb_table * * @param type DVB_MPEG_ES_PIC_START * @param sync Sync bytes
@@ -172,6 +174,7 @@ enum dvb_mpeg_es_frame_t/** * @brief Vector that translates from enum dvb_mpeg_es_frame_t to string. +* @ingroup dvb_table */ extern const char *dvb_mpeg_es_frame_names[5 ];
@@ -183,6 +186,7 @@ extern "C" {/** * @brief Initialize a struct dvb_mpeg_es_seq_start from buffer +* @ingroup dvb_table * * @param buf Buffer * @param buflen Length of buffer
@@ -199,6 +203,7 @@ int dvb_mpeg_es_seq_start_init (const uint8_t *buf, ssize_t buflen,/** * @brief Print details of struct dvb_mpeg_es_seq_start +* @ingroup dvb_table * * @param parms struct dvb_v5_fe_parms for log functions * @param seq_start Pointer to struct dvb_mpeg_es_seq_start to print
@@ -210,6 +215,7 @@ void dvb_mpeg_es_seq_start_print(struct dvb_v5_fe_parms *parms,/** * @brief Initialize a struct dvb_mpeg_es_pic_start from buffer +* @ingroup dvb_table * * @param buf Buffer * @param buflen Length of buffer
@@ -226,6 +232,7 @@ int dvb_mpeg_es_pic_start_init (const uint8_t *buf, ssize_t buflen,/** * @brief Print details of struct dvb_mpeg_es_pic_start +* @ingroup dvb_table * * @param parms struct dvb_v5_fe_parms for log functions * @param pic_start Pointer to struct dvb_mpeg_es_pic_start to print
lib/include/libdvbv5/mpeg_pes.h +142 -4
184 lines not on this page · raw message
lib/include/libdvbv5/mpeg_ts.h +11 -7
@@ -54,6 +54,7 @@/** * @struct dvb_mpeg_ts_adaption * @brief MPEG TS header adaption field +* @ingroup dvb_table * * @param type DVB_MPEG_ES_SEQ_START * @param length 1 bit Adaptation Field Length
@@ -85,6 +86,7 @@ struct dvb_mpeg_ts_adaption {/** * @struct dvb_mpeg_ts * @brief MPEG TS header +* @ingroup dvb_table * * @param sync_byte DVB_MPEG_TS * @param tei 1 bit Transport Error Indicator
@@ -125,6 +127,7 @@ extern "C" {/** * @brief Initialize a struct dvb_mpeg_ts from buffer +* @ingroup dvb_table * * @param parms struct dvb_v5_fe_parms for log functions * @param buf Buffer
@@ -135,32 +138,33 @@ extern "C" {* @return Length of data in table * * This function copies the length of struct dvb_mpeg_ts -* to table and fixes endianness. table has to be allocated -* with malloc. +* to table and fixes endianness. The pointer table has to be allocated +* on stack or dynamically. */ ssize_t dvb_mpeg_ts_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,ssize_t buflen,uint8_t *table,ssize_t *table_length);/** * @brief Deallocate memory associated with a struct dvb_mpeg_ts -* @ingroup file +* @ingroup dvb_table * * @param ts struct dvb_mpeg_ts to be deallocated * -* This function assumes frees dynamically allocated memory by the -* dvb_mpeg_ts_init function. +* If ts was allocated dynamically, this function +* can be used to free the memory. */ -void dvb_mpeg_ts_free (struct dvb_mpeg_ts *ts); +void dvb_mpeg_ts_free (struct dvb_mpeg_ts *ts);/** * @brief Print details of struct dvb_mpeg_ts +* @ingroup dvb_table * * @param parms struct dvb_v5_fe_parms for log functions * @param ts Pointer to struct dvb_mpeg_ts to print * * This function prints the fields of struct dvb_mpeg_ts */ -void dvb_mpeg_ts_print (struct dvb_v5_fe_parms *parms,struct dvb_mpeg_ts *ts); +void dvb_mpeg_ts_print (struct dvb_v5_fe_parms *parms,struct dvb_mpeg_ts *ts); #ifdef __cplusplus }
Signature · 1 line
1.9.1