comparison recpt1/tssplitter_lite.h @ 127:8e0f7191b92e

Imported PID re-acquisition code by Toshiyuki Kawashima <tos@fa2.so-net.ne.jp>. The original patch can be obtained from http://www.castanet.homeip.net/~tos/wiki/index.php
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 12 Mar 2012 22:22:27 +0900
parents aeba1988234f
children 61ff9cabf962
comparison
equal deleted inserted replaced
126:bb93a7c0ff5d 127:8e0f7191b92e
33 #define TSS_SUCCESS (0) 33 #define TSS_SUCCESS (0)
34 #define TSS_ERROR (-1) 34 #define TSS_ERROR (-1)
35 #define TSS_NULL (-2) 35 #define TSS_NULL (-2)
36 #define LENGTH_PAT_HEADER (12) 36 #define LENGTH_PAT_HEADER (12)
37 #define C_CHAR_COMMA ',' 37 #define C_CHAR_COMMA ','
38 #define SECTION_CONTINUE (1)
39
40 typedef struct pmt_version {
41 int pid;
42 int version;
43 int packet;
44 } pmt_version;
38 45
39 /** 46 /**
40 * splitter構造体 47 * splitter構造体
41 */ 48 */
42 typedef struct splitter { 49 typedef struct splitter {
46 char** sid_list; 53 char** sid_list;
47 unsigned char pat_count; 54 unsigned char pat_count;
48 int pmt_retain; 55 int pmt_retain;
49 int pmt_counter; 56 int pmt_counter;
50 int avail_pmts[MAX_SERVICES]; 57 int avail_pmts[MAX_SERVICES];
58 pmt_version pmt_version[MAX_SERVICES];
51 int num_pmts; 59 int num_pmts;
60 uint16_t section_remain[MAX_PID]; // セクション残りバイト数
61 uint8_t packet_seq[MAX_PID]; // 巡回カウンタ
52 } splitter; 62 } splitter;
53 63
54 /* b25 decoder would hoard up large chank */ 64 /* b25 decoder would hoard up large chank */
55 typedef struct _splitbuf_t 65 typedef struct _splitbuf_t
56 { 66 {