diff arib25v023/arib25/src/ts_section_parser.h @ 3:6801fe7e04ff

updated to ariv25v023
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 17 Feb 2009 01:40:56 +0900
parents arib25v021/arib25/src/ts_section_parser.h@67e8eca28a80
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/arib25v023/arib25/src/ts_section_parser.h	Tue Feb 17 01:40:56 2009 +0900
@@ -0,0 +1,40 @@
+#ifndef TS_SECTION_PARSER_H
+#define TS_SECTION_PARSER_H
+
+#include "ts_common_types.h"
+
+typedef struct {
+	int64_t total;      /* total received section count      */
+	int64_t unique;     /* unique section count              */
+	int64_t error;      /* crc and other error section count */
+} TS_SECTION_PARSER_STAT;
+
+typedef struct {
+
+	void *private_data;
+
+	void (* release)(void *parser);
+
+	int (* reset)(void *parser);
+
+	int (* put)(void *parser, TS_HEADER *hdr, uint8_t *data, int size);
+	int (* get)(void *parser, TS_SECTION *sect);
+	int (* ret)(void *parser, TS_SECTION *sect);
+
+	int (* get_count)(void *parser);
+	
+	int (* get_stat)(void *parser, TS_SECTION_PARSER_STAT *stat);
+	
+} TS_SECTION_PARSER;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern TS_SECTION_PARSER *create_ts_section_parser();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* TS_SECTION_PARSER_H */