Mercurial > pt1.oyama
comparison src/decoder.h @ 124:9c7bc6c0327e
Add DLNA server function test. (from uShare project)
author | naoyan@johnstown.minaminoshima.org |
---|---|
date | Wed, 29 Sep 2010 23:18:55 +0900 |
parents | recpt1/decoder.h@aeba1988234f |
children |
comparison
equal
deleted
inserted
replaced
123:215a51fa3df3 | 124:9c7bc6c0327e |
---|---|
1 /* -*- tab-width: 4; indent-tabs-mode: nil -*- */ | |
2 #ifndef _DECODER_H_ | |
3 #define _DECODER_H_ | |
4 | |
5 #include "config.h" | |
6 | |
7 #ifdef HAVE_LIBARIB25 | |
8 | |
9 #include <arib25/arib_std_b25.h> | |
10 #include <arib25/b_cas_card.h> | |
11 | |
12 typedef struct decoder { | |
13 ARIB_STD_B25 *b25; | |
14 B_CAS_CARD *bcas; | |
15 } decoder; | |
16 | |
17 typedef struct decoder_options { | |
18 int round; | |
19 int strip; | |
20 int emm; | |
21 } decoder_options; | |
22 | |
23 #else | |
24 | |
25 typedef struct { | |
26 int size; | |
27 void *data; | |
28 } ARIB_STD_B25_BUFFER; | |
29 | |
30 typedef struct decoder { | |
31 void *dummy; | |
32 } decoder; | |
33 | |
34 typedef struct decoder_options { | |
35 int round; | |
36 int strip; | |
37 int emm; | |
38 } decoder_options; | |
39 | |
40 #endif | |
41 | |
42 /* prototypes */ | |
43 decoder *b25_startup(decoder_options *opt); | |
44 int b25_shutdown(decoder *dec); | |
45 int b25_decode(decoder *dec, | |
46 ARIB_STD_B25_BUFFER *sbuf, | |
47 ARIB_STD_B25_BUFFER *dbuf); | |
48 int b25_finish(decoder *dec, | |
49 ARIB_STD_B25_BUFFER *sbuf, | |
50 ARIB_STD_B25_BUFFER *dbuf); | |
51 | |
52 | |
53 #endif |