| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#ifndef _vorbis_backend_h_ |
| 23 |
#define _vorbis_backend_h_ |
| 24 |
|
| 25 |
#include "codec_internal.h" |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
typedef struct{ |
| 35 |
vorbis_info_floor *(*unpack)(vorbis_info *,oggpack_buffer *); |
| 36 |
vorbis_look_floor *(*look) (vorbis_dsp_state *,vorbis_info_mode *, |
| 37 |
vorbis_info_floor *); |
| 38 |
void (*free_info) (vorbis_info_floor *); |
| 39 |
void (*free_look) (vorbis_look_floor *); |
| 40 |
void *(*inverse1) (struct vorbis_block *,vorbis_look_floor *); |
| 41 |
int (*inverse2) (struct vorbis_block *,vorbis_look_floor *, |
| 42 |
void *buffer,ogg_int32_t *); |
| 43 |
} vorbis_func_floor; |
| 44 |
|
| 45 |
typedef struct{ |
| 46 |
int order; |
| 47 |
long rate; |
| 48 |
long barkmap; |
| 49 |
|
| 50 |
int ampbits; |
| 51 |
int ampdB; |
| 52 |
|
| 53 |
int numbooks; |
| 54 |
int books[16]; |
| 55 |
|
| 56 |
} vorbis_info_floor0; |
| 57 |
|
| 58 |
#define VIF_POSIT 63 |
| 59 |
#define VIF_CLASS 16 |
| 60 |
#define VIF_PARTS 31 |
| 61 |
typedef struct{ |
| 62 |
int partitions; |
| 63 |
int partitionclass[VIF_PARTS]; |
| 64 |
|
| 65 |
int class_dim[VIF_CLASS]; |
| 66 |
int class_subs[VIF_CLASS]; |
| 67 |
int class_book[VIF_CLASS]; |
| 68 |
int class_subbook[VIF_CLASS][8]; |
| 69 |
|
| 70 |
|
| 71 |
int mult; |
| 72 |
int postlist[VIF_POSIT+2]; |
| 73 |
|
| 74 |
} vorbis_info_floor1; |
| 75 |
|
| 76 |
|
| 77 |
typedef struct{ |
| 78 |
vorbis_info_residue *(*unpack)(vorbis_info *,oggpack_buffer *); |
| 79 |
vorbis_look_residue *(*look) (vorbis_dsp_state *,vorbis_info_mode *, |
| 80 |
vorbis_info_residue *); |
| 81 |
void (*free_info) (vorbis_info_residue *); |
| 82 |
void (*free_look) (vorbis_look_residue *); |
| 83 |
int (*inverse) (struct vorbis_block *,vorbis_look_residue *, |
| 84 |
ogg_int32_t **,int *,int); |
| 85 |
} vorbis_func_residue; |
| 86 |
|
| 87 |
typedef struct vorbis_info_residue0{ |
| 88 |
|
| 89 |
long begin; |
| 90 |
long end; |
| 91 |
|
| 92 |
|
| 93 |
int grouping; |
| 94 |
int partitions; |
| 95 |
int groupbook; |
| 96 |
int secondstages[64]; |
| 97 |
int booklist[256]; |
| 98 |
} vorbis_info_residue0; |
| 99 |
|
| 100 |
|
| 101 |
typedef struct{ |
| 102 |
vorbis_info_mapping *(*unpack)(vorbis_info *,oggpack_buffer *); |
| 103 |
vorbis_look_mapping *(*look) (vorbis_dsp_state *,vorbis_info_mode *, |
| 104 |
vorbis_info_mapping *); |
| 105 |
void (*free_info) (vorbis_info_mapping *); |
| 106 |
void (*free_look) (vorbis_look_mapping *); |
| 107 |
int (*inverse) (struct vorbis_block *vb,vorbis_look_mapping *); |
| 108 |
} vorbis_func_mapping; |
| 109 |
|
| 110 |
typedef struct vorbis_info_mapping0{ |
| 111 |
int submaps; |
| 112 |
int chmuxlist[256]; |
| 113 |
|
| 114 |
int floorsubmap[16]; |
| 115 |
int residuesubmap[16]; |
| 116 |
|
| 117 |
int psy[2]; |
| 118 |
|
| 119 |
|
| 120 |
int coupling_steps; |
| 121 |
int coupling_mag[256]; |
| 122 |
int coupling_ang[256]; |
| 123 |
} vorbis_info_mapping0; |
| 124 |
|
| 125 |
#endif |
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|