Debian Codegraph @

mednafen/tremor/backends.h

raw symbols SCIP
1 /********************************************************************
2 * *
3 * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
4 * *
5 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
6 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
7 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
8 * *
9 * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
10 * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ *
11 * *
12 ********************************************************************
13
14 function: backend and mapping structures
15
16 ********************************************************************/
17
18 /* this is exposed up here because we need it for static modes.
19 Lookups for each backend aren't exposed because there's no reason
20 to do so */
21
22 #ifndef _vorbis_backend_h_
23 #define _vorbis_backend_h_cxx . . $ `mednafen/tremor/backends.h:23:9`!
24
25 #include "codec_internal.h"cxx . . $ `<file>/mednafen/tremor/codec_internal.h`/
26
27 /* this would all be simpler/shorter with templates, but.... */
28 /* Transform backend generic *************************************/
29
30 /* only mdct right now. Flesh it out more if we ever transcend mdct
31 in the transform domain */
32
33 /* Floor backend generic *****************************************/
34 typedef structcxx . . $ $anonymous_type_c7374eb872c22577_0#{
35 vorbis_info_floorcxx . . $ vorbis_info_floor# *(*unpackcxx . . $ $anonymous_type_c7374eb872c22577_0#unpack.)(vorbis_infocxx . . $ vorbis_info# *,oggpack_buffercxx . . $ oggpack_buffer# *);
36 vorbis_look_floorcxx . . $ vorbis_look_floor# *(*lookcxx . . $ $anonymous_type_c7374eb872c22577_0#look.) (vorbis_dsp_statecxx . . $ vorbis_dsp_state# *,vorbis_info_modecxx . . $ vorbis_info_mode# *,
37 vorbis_info_floorcxx . . $ vorbis_info_floor# *);
38 void (*free_infocxx . . $ $anonymous_type_c7374eb872c22577_0#free_info.) (vorbis_info_floorcxx . . $ vorbis_info_floor# *);
39 void (*free_lookcxx . . $ $anonymous_type_c7374eb872c22577_0#free_look.) (vorbis_look_floorcxx . . $ vorbis_look_floor# *);
40 void *(*inverse1cxx . . $ $anonymous_type_c7374eb872c22577_0#inverse1.) (struct vorbis_blockcxx . . $ vorbis_block# *,vorbis_look_floorcxx . . $ vorbis_look_floor# *);
41 int (*inverse2cxx . . $ $anonymous_type_c7374eb872c22577_0#inverse2.) (struct vorbis_blockcxx . . $ vorbis_block# *,vorbis_look_floorcxx . . $ vorbis_look_floor# *,
42 void *buffer,ogg_int32_tcxx . . $ ogg_int32_t# *);
43 } vorbis_func_floorcxx . . $ vorbis_func_floor#;
44
45 typedef structcxx . . $ $anonymous_type_c7374eb872c22577_1#{
46 int ordercxx . . $ $anonymous_type_c7374eb872c22577_1#order.;
47 long ratecxx . . $ $anonymous_type_c7374eb872c22577_1#rate.;
48 long barkmapcxx . . $ $anonymous_type_c7374eb872c22577_1#barkmap.;
49
50 int ampbitscxx . . $ $anonymous_type_c7374eb872c22577_1#ampbits.;
51 int ampdBcxx . . $ $anonymous_type_c7374eb872c22577_1#ampdB.;
52
53 int numbookscxx . . $ $anonymous_type_c7374eb872c22577_1#numbooks.; /* <= 16 */
54 int bookscxx . . $ $anonymous_type_c7374eb872c22577_1#books.[16];
55
56 } vorbis_info_floor0cxx . . $ vorbis_info_floor0#;
57
58 #define VIF_POSITcxx . . $ `mednafen/tremor/backends.h:58:9`! 63
59 #define VIF_CLASScxx . . $ `mednafen/tremor/backends.h:59:9`! 16
60 #define VIF_PARTScxx . . $ `mednafen/tremor/backends.h:60:9`! 31
61 typedef structcxx . . $ $anonymous_type_c7374eb872c22577_2#{
62 int partitionscxx . . $ $anonymous_type_c7374eb872c22577_2#partitions.; /* 0 to 31 */
63 int partitionclasscxx . . $ $anonymous_type_c7374eb872c22577_2#partitionclass.[VIF_PARTScxx . . $ `mednafen/tremor/backends.h:60:9`!]; /* 0 to 15 */
64
65 int class_dimcxx . . $ $anonymous_type_c7374eb872c22577_2#class_dim.[VIF_CLASScxx . . $ `mednafen/tremor/backends.h:59:9`!]; /* 1 to 8 */
66 int class_subscxx . . $ $anonymous_type_c7374eb872c22577_2#class_subs.[VIF_CLASScxx . . $ `mednafen/tremor/backends.h:59:9`!]; /* 0,1,2,3 (bits: 1<<n poss) */
67 int class_bookcxx . . $ $anonymous_type_c7374eb872c22577_2#class_book.[VIF_CLASScxx . . $ `mednafen/tremor/backends.h:59:9`!]; /* subs ^ dim entries */
68 int class_subbookcxx . . $ $anonymous_type_c7374eb872c22577_2#class_subbook.[VIF_CLASScxx . . $ `mednafen/tremor/backends.h:59:9`!][8]; /* [VIF_CLASS][subs] */
69
70
71 int multcxx . . $ $anonymous_type_c7374eb872c22577_2#mult.; /* 1 2 3 or 4 */
72 int postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.[VIF_POSITcxx . . $ `mednafen/tremor/backends.h:58:9`!+2]; /* first two implicit */
73
74 } vorbis_info_floor1cxx . . $ vorbis_info_floor1#;
75
76 /* Residue backend generic *****************************************/
77 typedef structcxx . . $ $anonymous_type_c7374eb872c22577_3#{
78 vorbis_info_residuecxx . . $ vorbis_info_residue# *(*unpackcxx . . $ $anonymous_type_c7374eb872c22577_3#unpack.)(vorbis_infocxx . . $ vorbis_info# *,oggpack_buffercxx . . $ oggpack_buffer# *);
79 vorbis_look_residuecxx . . $ vorbis_look_residue# *(*lookcxx . . $ $anonymous_type_c7374eb872c22577_3#look.) (vorbis_dsp_statecxx . . $ vorbis_dsp_state# *,vorbis_info_modecxx . . $ vorbis_info_mode# *,
80 vorbis_info_residuecxx . . $ vorbis_info_residue# *);
81 void (*free_infocxx . . $ $anonymous_type_c7374eb872c22577_3#free_info.) (vorbis_info_residuecxx . . $ vorbis_info_residue# *);
82 void (*free_lookcxx . . $ $anonymous_type_c7374eb872c22577_3#free_look.) (vorbis_look_residuecxx . . $ vorbis_look_residue# *);
83 int (*inversecxx . . $ $anonymous_type_c7374eb872c22577_3#inverse.) (struct vorbis_blockcxx . . $ vorbis_block# *,vorbis_look_residuecxx . . $ vorbis_look_residue# *,
84 ogg_int32_tcxx . . $ ogg_int32_t# **,int *,int);
85 } vorbis_func_residuecxx . . $ vorbis_func_residue#;
86
87 typedef struct vorbis_info_residue0cxx . . $ vorbis_info_residue0#{
88 /* block-partitioned VQ coded straight residue */
89 long begincxx . . $ vorbis_info_residue0#begin.;
90 long endcxx . . $ vorbis_info_residue0#end.;
91
92 /* first stage (lossless partitioning) */
93 int groupingcxx . . $ vorbis_info_residue0#grouping.; /* group n vectors per partition */
94 int partitionscxx . . $ vorbis_info_residue0#partitions.; /* possible codebooks for a partition */
95 int partvalscxx . . $ vorbis_info_residue0#partvals.; /* partitions ^ groupbook dim */
96 int groupbookcxx . . $ vorbis_info_residue0#groupbook.; /* huffbook for partitioning */
97 int secondstagescxx . . $ vorbis_info_residue0#secondstages.[64]; /* expanded out to pointers in lookup */
98 int booklistcxx . . $ vorbis_info_residue0#booklist.[512]; /* list of second stage books */
99 } vorbis_info_residue0cxx . . $ vorbis_info_residue0#;
100
101 /* Mapping backend generic *****************************************/
102 typedef structcxx . . $ $anonymous_type_c7374eb872c22577_4#{
103 vorbis_info_mappingcxx . . $ vorbis_info_mapping# *(*unpackcxx . . $ $anonymous_type_c7374eb872c22577_4#unpack.)(vorbis_infocxx . . $ vorbis_info# *,oggpack_buffercxx . . $ oggpack_buffer# *);
104 vorbis_look_mappingcxx . . $ vorbis_look_mapping# *(*lookcxx . . $ $anonymous_type_c7374eb872c22577_4#look.) (vorbis_dsp_statecxx . . $ vorbis_dsp_state# *,vorbis_info_modecxx . . $ vorbis_info_mode# *,
105 vorbis_info_mappingcxx . . $ vorbis_info_mapping# *);
106 void (*free_infocxx . . $ $anonymous_type_c7374eb872c22577_4#free_info.) (vorbis_info_mappingcxx . . $ vorbis_info_mapping# *);
107 void (*free_lookcxx . . $ $anonymous_type_c7374eb872c22577_4#free_look.) (vorbis_look_mappingcxx . . $ vorbis_look_mapping# *);
108 int (*inversecxx . . $ $anonymous_type_c7374eb872c22577_4#inverse.) (struct vorbis_blockcxx . . $ vorbis_block# *vb,vorbis_look_mappingcxx . . $ vorbis_look_mapping# *);
109 } vorbis_func_mappingcxx . . $ vorbis_func_mapping#;
110
111 typedef struct vorbis_info_mapping0cxx . . $ vorbis_info_mapping0#{
112 int submapscxx . . $ vorbis_info_mapping0#submaps.; /* <= 16 */
113 int chmuxlistcxx . . $ vorbis_info_mapping0#chmuxlist.[256]; /* up to 256 channels in a Vorbis stream */
114
115 int floorsubmapcxx . . $ vorbis_info_mapping0#floorsubmap.[16]; /* [mux] submap to floors */
116 int residuesubmapcxx . . $ vorbis_info_mapping0#residuesubmap.[16]; /* [mux] submap to residue */
117
118 int psycxx . . $ vorbis_info_mapping0#psy.[2]; /* by blocktype; impulse/padding for short,
119 transition/normal for long */
120
121 int coupling_stepscxx . . $ vorbis_info_mapping0#coupling_steps.;
122 int coupling_magcxx . . $ vorbis_info_mapping0#coupling_mag.[256];
123 int coupling_angcxx . . $ vorbis_info_mapping0#coupling_ang.[256];
124 } vorbis_info_mapping0cxx . . $ vorbis_info_mapping0#;
125
126 #endif
127
128
129
130
131