Mercurial > pt1
comparison recpt1/decoder.h @ 74:b6607f6e2851
good citizens never use gray code. wise people never watch TV.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 28 Nov 2009 00:12:05 +0900 |
parents | b63f5c100e5a |
children | aeba1988234f |
comparison
equal
deleted
inserted
replaced
73:c44e16dbb0e2 | 74:b6607f6e2851 |
---|---|
1 #ifndef _DECODER_H_ | 1 #ifndef _DECODER_H_ |
2 #define _DECODER_H_ | 2 #define _DECODER_H_ |
3 | |
4 #include "config.h" | |
5 | |
6 #ifdef HAVE_LIBARIB25 | |
3 | 7 |
4 #include <arib25/arib_std_b25.h> | 8 #include <arib25/arib_std_b25.h> |
5 #include <arib25/b_cas_card.h> | 9 #include <arib25/b_cas_card.h> |
6 | 10 |
7 typedef struct decoder { | 11 typedef struct decoder { |
13 int round; | 17 int round; |
14 int strip; | 18 int strip; |
15 int emm; | 19 int emm; |
16 } decoder_options; | 20 } decoder_options; |
17 | 21 |
22 #else | |
23 | |
24 typedef struct { | |
25 int size; | |
26 void *data; | |
27 } ARIB_STD_B25_BUFFER; | |
28 | |
29 typedef struct decoder { | |
30 void *dummy; | |
31 } decoder; | |
32 | |
33 typedef struct decoder_options { | |
34 int round; | |
35 int strip; | |
36 int emm; | |
37 } decoder_options; | |
38 | |
39 #endif | |
40 | |
18 /* prototypes */ | 41 /* prototypes */ |
19 decoder *b25_startup(decoder_options *opt); | 42 decoder *b25_startup(decoder_options *opt); |
20 int b25_shutdown(decoder *dec); | 43 int b25_shutdown(decoder *dec); |
21 int b25_decode(decoder *dec, | 44 int b25_decode(decoder *dec, |
22 ARIB_STD_B25_BUFFER *sbuf, | 45 ARIB_STD_B25_BUFFER *sbuf, |
23 ARIB_STD_B25_BUFFER *dbuf); | 46 ARIB_STD_B25_BUFFER *dbuf); |
24 int b25_finish(decoder *dec, | 47 int b25_finish(decoder *dec, |
25 ARIB_STD_B25_BUFFER *sbuf, | 48 ARIB_STD_B25_BUFFER *sbuf, |
26 ARIB_STD_B25_BUFFER *dbuf); | 49 ARIB_STD_B25_BUFFER *dbuf); |
27 | 50 |
51 | |
28 #endif | 52 #endif |