source: roaraudio/roard/include/codecfilter_celt.h @ 324:c6f16a36d0ba

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

fergot to add the files to cvs....

File size: 864 bytes
Line 
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
10struct 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;
20 char * rest;
21 int s_buf;
22 int f_rest; /* how much is in rest? */
23};
24
25int cf_celt_open(CODECFILTER_USERDATA_T * inst, int codec,
26                                            struct roar_stream_server * info,
27                                            struct roar_codecfilter   * filter);
28
29int cf_celt_close(CODECFILTER_USERDATA_T   inst);
30
31int cf_celt_read(CODECFILTER_USERDATA_T   inst, char * buf, int len);
32int cf_celt_write(CODECFILTER_USERDATA_T   inst, char * buf, int len);
33
34#endif
35
36//ll
Note: See TracBrowser for help on using the repository browser.