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