comparison recpt1/tssplitter_lite.h @ 100:aeba1988234f

support macros to specify sid: - macros: hd, sd1, sd2, sd3, 1seg and all are supported. - if sid has been specified but no suitable sid found, fall back to "all". technical summary: - use splitter structure as the argument where it is applicable. - add tab configuration to some source files.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 13 Feb 2010 19:43:25 +0900
parents 3a3f15b063e1
children 8e0f7191b92e
comparison
equal deleted inserted replaced
99:3a3f15b063e1 100:aeba1988234f
1 /* -*- tab-width: 4; indent-tabs-mode: t -*- */
1 /* tssplitter_lite.h -- split TS stream program's header. 2 /* tssplitter_lite.h -- split TS stream program's header.
2 3
3 Copyright 2009 querulous 4 Copyright 2009 querulous
4 Copyright 2010 Naoya OYAMA <naoya.oyama@gmail.com> 5 Copyright 2010 Naoya OYAMA <naoya.oyama@gmail.com>
5 6
42 unsigned char pids[MAX_PID]; 43 unsigned char pids[MAX_PID];
43 unsigned char pmt_pids[MAX_PID]; 44 unsigned char pmt_pids[MAX_PID];
44 unsigned char* pat; 45 unsigned char* pat;
45 char** sid_list; 46 char** sid_list;
46 unsigned char pat_count; 47 unsigned char pat_count;
47 int pmt_remain; 48 int pmt_retain;
48 int pmt_counter; 49 int pmt_counter;
50 int avail_pmts[MAX_SERVICES];
51 int num_pmts;
49 } splitter; 52 } splitter;
50 53
51 /* b25 decoder would hoard up large chank */ 54 /* b25 decoder would hoard up large chank */
52 typedef struct _splitbuf_t 55 typedef struct _splitbuf_t
53 { 56 {