comparison recpt1/decoder.h @ 5:97fd2315114e

- now it can handle options. - applied channel patch. - some cleanups.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 17 Feb 2009 05:58:36 +0900
parents 43d177fa65c9
children b63f5c100e5a
comparison
equal deleted inserted replaced
4:43d177fa65c9 5:97fd2315114e
2 #define _DECODER_H_ 2 #define _DECODER_H_
3 3
4 #include "../arib25v023/arib25/src/arib_std_b25.h" 4 #include "../arib25v023/arib25/src/arib_std_b25.h"
5 #include "../arib25v023/arib25/src/b_cas_card.h" 5 #include "../arib25v023/arib25/src/b_cas_card.h"
6 6
7 typedef struct decoder 7 typedef struct decoder {
8 {
9 ARIB_STD_B25 *b25; 8 ARIB_STD_B25 *b25;
10 B_CAS_CARD *bcas; 9 B_CAS_CARD *bcas;
11 } decoder; 10 } decoder;
12 11
12 typedef struct decoder_options {
13 int round;
14 int strip;
15 int emm;
16 } decoder_options;
17
13 /* prototypes */ 18 /* prototypes */
14 decoder *b25_startup(void); 19 decoder *b25_startup(decoder_options *opt);
15 int b25_shutdown(decoder *dec); 20 int b25_shutdown(decoder *dec);
16 int b25_decode(decoder *dec, 21 int b25_decode(decoder *dec,
17 ARIB_STD_B25_BUFFER *sbuf, 22 ARIB_STD_B25_BUFFER *sbuf,
18 ARIB_STD_B25_BUFFER *dbuf); 23 ARIB_STD_B25_BUFFER *dbuf);
19 int b25_finish(decoder *dec, 24 int b25_finish(decoder *dec,