File: codec_lpc.h

package info (click to toggle)
rat 4.2.22-2.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,896 kB
  • ctags: 3,717
  • sloc: ansic: 36,542; tcl: 2,740; sh: 2,675; makefile: 295
file content (30 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * FILE:    codec_lpc.h
 * AUTHORS: Orion Hodson
 *
 * Copyright (c) 1998-2001 University College London
 * All rights reserved.
 *
 * $Id: codec_lpc.h,v 1.11 2001/01/08 20:29:57 ucaccsp Exp $
 */

#ifndef _CODEC_LPC_H_
#define _CODEC_LPC_H_

uint16_t                      lpc_get_formats_count (void);
const struct s_codec_format* lpc_get_format(uint16_t idx);

void lpc_setup(void);

int  lpc_encoder_state_create  (uint16_t idx, u_char **state);
void lpc_encoder_state_destroy (uint16_t idx, u_char **state);
int  lpc_encoder (uint16_t idx, u_char *state, sample *in, coded_unit *out);

int  lpc_decoder_state_create  (uint16_t idx, u_char **state);
void lpc_decoder_state_destroy (uint16_t idx, u_char **state);
int  lpc_decoder               (uint16_t idx, u_char *state, coded_unit *in, sample *out);

int  lpc_repair  (uint16_t idx, u_char *state, uint16_t consec_lost,
                  coded_unit *prev, coded_unit *missing, coded_unit *next);

#endif /* _CODEC_LPC_H_ */