Line | |
---|
1 | //codecfilter_celt.h: |
---|
2 | |
---|
3 | #ifndef _CODECFILTER_CELT_H_ |
---|
4 | #define _CODECFILTER_CELT_H_ |
---|
5 | |
---|
6 | #include <roaraudio.h> |
---|
7 | |
---|
8 | #ifdef ROAR_HAVE_LIBCELT |
---|
9 | |
---|
10 | #include <celt/celt.h> |
---|
11 | #include <celt/celt_header.h> |
---|
12 | |
---|
13 | struct codecfilter_celt_inst { |
---|
14 | struct roar_stream_server * stream; |
---|
15 | CELTMode * mode; |
---|
16 | CELTEncoder * encoder; |
---|
17 | CELTDecoder * decoder; |
---|
18 | int frame_size; |
---|
19 | int lookahead; |
---|
20 | int out_size; |
---|
21 | char * ibuf; |
---|
22 | char * obuf; |
---|
23 | char * i_rest; |
---|
24 | char * o_rest; |
---|
25 | int s_buf; |
---|
26 | int fi_rest; /* how much is in rest? */ |
---|
27 | int fo_rest; /* how much is in rest? */ |
---|
28 | }; |
---|
29 | |
---|
30 | int cf_celt_open(CODECFILTER_USERDATA_T * inst, int codec, |
---|
31 | struct roar_stream_server * info, |
---|
32 | struct roar_codecfilter * filter); |
---|
33 | |
---|
34 | int cf_celt_close(CODECFILTER_USERDATA_T inst); |
---|
35 | |
---|
36 | int cf_celt_read(CODECFILTER_USERDATA_T inst, char * buf, int len); |
---|
37 | int cf_celt_write(CODECFILTER_USERDATA_T inst, char * buf, int len); |
---|
38 | |
---|
39 | #endif |
---|
40 | |
---|
41 | #endif |
---|
42 | |
---|
43 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.