File: codec_state.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 (31 lines) | stat: -rw-r--r-- 800 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
31
/*
 * FILE:    codec_state.h
 * PROGRAM: RAT
 * AUTHOR:  Orion Hodson
 *
 * Copyright (c) 1995-2001 University College London
 * All rights reserved.
 *
 * $Id: codec_state.h,v 1.6 2001/01/08 20:29:57 ucaccsp Exp $
 */

#ifndef __CODEC_STATE_H__
#define __CODEC_STATE_H__

typedef enum {
        ENCODER,
        DECODER
} codec_mode;

struct s_codec_state_store;

int    codec_state_store_create  (struct s_codec_state_store **css, codec_mode m);
void   codec_state_store_destroy (struct s_codec_state_store **css);
codec_state *    
       codec_state_store_get     (struct s_codec_state_store *, 
                                  codec_id_t id);

void   codec_state_store_remove  (struct s_codec_state_store *cs, 
                                  codec_id_t id);

#endif /* __CODEC_STATE_H__ */