source: roaraudio/roard/include/codecfilter_celt.h @ 635:fb9b242e8cc6

Last change on this file since 635:fb9b242e8cc6 was 635:fb9b242e8cc6, checked in by phi, 16 years ago

added RoarCELT magic

File size: 972 bytes
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
13struct 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 int opened;
29};
30
31int cf_celt_open(CODECFILTER_USERDATA_T * inst, int codec,
32                                            struct roar_stream_server * info,
33                                            struct roar_codecfilter   * filter);
34
35int cf_celt_close(CODECFILTER_USERDATA_T   inst);
36
37int cf_celt_read(CODECFILTER_USERDATA_T   inst, char * buf, int len);
38int cf_celt_write(CODECFILTER_USERDATA_T   inst, char * buf, int len);
39
40#endif
41
42#endif
43
44//ll
Note: See TracBrowser for help on using the repository browser.