blob: 48b41d2f2cbbd0cbaa80f2cd9364572908bb847d
1 | #ifndef _dvi_adpcm_h |
2 | #define _dvi_adpcm_h |
3 | |
4 | #include <stdint.h> |
5 | |
6 | struct __attribute__ ((__packed__)) dvi_adpcm_state { |
7 | int16_t valpred; /* Previous predicted value */ |
8 | uint8_t index; /* Index into stepsize table */ |
9 | }; |
10 | |
11 | typedef struct dvi_adpcm_state dvi_adpcm_state_t; |
12 | |
13 | void *dvi_adpcm_init(void *, double); |
14 | int dvi_adpcm_decode(void *in_buf, int in_size, void *out_buf, int *out_size, void *state); |
15 | |
16 | #endif |
17 | |
18 |