Debian Codegraph @

external/vorbis/vorbis_psy.h

raw symbols SCIP
1 /********************************************************************
2 * *
3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7 * *
8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *
9 * by the Xiph.Org Foundation https://xiph.org/ *
10 * *
11 ********************************************************************
12
13 function: random psychoacoustics (not including preecho)
14
15 ********************************************************************/
16
17 #ifndef _vorbis_psy_h_
18 #define _vorbis_psy_h_cxx . . $ `external/vorbis/vorbis_psy.h:18:9`!
19 #include "vorbis_smallft.h"cxx . . $ `<file>/external/vorbis/vorbis_smallft.h`/
20
21 #include "vorbis_backends.h"cxx . . $ `<file>/external/vorbis/vorbis_backends.h`/
22 #include "vorbis_envelope.h"cxx . . $ `<file>/external/vorbis/vorbis_envelope.h`/
23
24 #ifndef EHMER_MAX
25 #define EHMER_MAXcxx . . $ `external/vorbis/vorbis_psy.h:25:9`! 56
26 #endif
27
28 /* psychoacoustic setup ********************************************/
29 #define P_BANDScxx . . $ `external/vorbis/vorbis_psy.h:29:9`! 17 /* 62Hz to 16kHz */
30 #define P_LEVELScxx . . $ `external/vorbis/vorbis_psy.h:30:9`! 8 /* 30dB to 100dB */
31 #define P_LEVEL_0cxx . . $ `external/vorbis/vorbis_psy.h:31:9`! 30. /* 30 dB */
32 #define P_NOISECURVEScxx . . $ `external/vorbis/vorbis_psy.h:32:9`! 3
33
34 #define NOISE_COMPAND_LEVELScxx . . $ `external/vorbis/vorbis_psy.h:34:9`! 40
35 typedef struct vorbis_info_psycxx . . $ vorbis_info_psy#{
36 int blockflagcxx . . $ vorbis_info_psy#blockflag.;
37
38 float ath_adjattcxx . . $ vorbis_info_psy#ath_adjatt.;
39 float ath_maxattcxx . . $ vorbis_info_psy#ath_maxatt.;
40
41 float tone_masterattcxx . . $ vorbis_info_psy#tone_masteratt.[P_NOISECURVEScxx . . $ `external/vorbis/vorbis_psy.h:32:9`!];
42 float tone_centerboostcxx . . $ vorbis_info_psy#tone_centerboost.;
43 float tone_decaycxx . . $ vorbis_info_psy#tone_decay.;
44 float tone_abs_limitcxx . . $ vorbis_info_psy#tone_abs_limit.;
45 float toneattcxx . . $ vorbis_info_psy#toneatt.[P_BANDScxx . . $ `external/vorbis/vorbis_psy.h:29:9`!];
46
47 int noisemaskpcxx . . $ vorbis_info_psy#noisemaskp.;
48 float noisemaxsuppcxx . . $ vorbis_info_psy#noisemaxsupp.;
49 float noisewindowlocxx . . $ vorbis_info_psy#noisewindowlo.;
50 float noisewindowhicxx . . $ vorbis_info_psy#noisewindowhi.;
51 int noisewindowlomincxx . . $ vorbis_info_psy#noisewindowlomin.;
52 int noisewindowhimincxx . . $ vorbis_info_psy#noisewindowhimin.;
53 int noisewindowfixedcxx . . $ vorbis_info_psy#noisewindowfixed.;
54 float noiseoffcxx . . $ vorbis_info_psy#noiseoff.[P_NOISECURVEScxx . . $ `external/vorbis/vorbis_psy.h:32:9`!][P_BANDScxx . . $ `external/vorbis/vorbis_psy.h:29:9`!];
55 float noisecompandcxx . . $ vorbis_info_psy#noisecompand.[NOISE_COMPAND_LEVELScxx . . $ `external/vorbis/vorbis_psy.h:34:9`!];
56
57 float max_curve_dBcxx . . $ vorbis_info_psy#max_curve_dB.;
58
59 int normal_pcxx . . $ vorbis_info_psy#normal_p.;
60 int normal_startcxx . . $ vorbis_info_psy#normal_start.;
61 int normal_partitioncxx . . $ vorbis_info_psy#normal_partition.;
62 double normal_threshcxx . . $ vorbis_info_psy#normal_thresh.;
63 } vorbis_info_psycxx . . $ vorbis_info_psy#;
64
65 typedef structcxx . . $ $anonymous_type_1598a95364f6cf37_0#{
66 int eighth_octave_linescxx . . $ $anonymous_type_1598a95364f6cf37_0#eighth_octave_lines.;
67
68 /* for block long/short tuning; encode only */
69 float preecho_threshcxx . . $ $anonymous_type_1598a95364f6cf37_0#preecho_thresh.[VE_BANDScxx . . $ `external/vorbis/vorbis_envelope.h:27:9`!];
70 float postecho_threshcxx . . $ $anonymous_type_1598a95364f6cf37_0#postecho_thresh.[VE_BANDScxx . . $ `external/vorbis/vorbis_envelope.h:27:9`!];
71 float stretch_penaltycxx . . $ $anonymous_type_1598a95364f6cf37_0#stretch_penalty.;
72 float preecho_minenergycxx . . $ $anonymous_type_1598a95364f6cf37_0#preecho_minenergy.;
73
74 float ampmax_att_per_seccxx . . $ $anonymous_type_1598a95364f6cf37_0#ampmax_att_per_sec.;
75
76 /* channel coupling config */
77 int coupling_pkHzcxx . . $ $anonymous_type_1598a95364f6cf37_0#coupling_pkHz.[PACKETBLOBScxx . . $ `external/vorbis/vorbis_codec_internal.h:28:9`!];
78 int coupling_pointlimitcxx . . $ $anonymous_type_1598a95364f6cf37_0#coupling_pointlimit.[2][PACKETBLOBScxx . . $ `external/vorbis/vorbis_codec_internal.h:28:9`!];
79 int coupling_prepointampcxx . . $ $anonymous_type_1598a95364f6cf37_0#coupling_prepointamp.[PACKETBLOBScxx . . $ `external/vorbis/vorbis_codec_internal.h:28:9`!];
80 int coupling_postpointampcxx . . $ $anonymous_type_1598a95364f6cf37_0#coupling_postpointamp.[PACKETBLOBScxx . . $ `external/vorbis/vorbis_codec_internal.h:28:9`!];
81 int sliding_lowpasscxx . . $ $anonymous_type_1598a95364f6cf37_0#sliding_lowpass.[2][PACKETBLOBScxx . . $ `external/vorbis/vorbis_codec_internal.h:28:9`!];
82
83 } vorbis_info_psy_globalcxx . . $ vorbis_info_psy_global#;
84
85 typedef structcxx . . $ $anonymous_type_1598a95364f6cf37_1# {
86 float ampmaxcxx . . $ $anonymous_type_1598a95364f6cf37_1#ampmax.;
87 int channelscxx . . $ $anonymous_type_1598a95364f6cf37_1#channels.;
88
89 vorbis_info_psy_globalcxx . . $ vorbis_info_psy_global# *gicxx . . $ $anonymous_type_1598a95364f6cf37_1#gi.;
90 int coupling_pointlimitcxx . . $ $anonymous_type_1598a95364f6cf37_1#coupling_pointlimit.[2][P_NOISECURVEScxx . . $ `external/vorbis/vorbis_psy.h:32:9`!];
91 } vorbis_look_psy_globalcxx . . $ vorbis_look_psy_global#;
92
93
94 typedef structcxx . . $ $anonymous_type_1598a95364f6cf37_2# {
95 int ncxx . . $ $anonymous_type_1598a95364f6cf37_2#n.;
96 struct vorbis_info_psycxx . . $ vorbis_info_psy# *vicxx . . $ $anonymous_type_1598a95364f6cf37_2#vi.;
97
98 float ***tonecurvescxx . . $ $anonymous_type_1598a95364f6cf37_2#tonecurves.;
99 float **noiseoffsetcxx . . $ $anonymous_type_1598a95364f6cf37_2#noiseoffset.;
100
101 float *athcxx . . $ $anonymous_type_1598a95364f6cf37_2#ath.;
102 long *octavecxx . . $ $anonymous_type_1598a95364f6cf37_2#octave.; /* in n.ocshift format */
103 long *barkcxx . . $ $anonymous_type_1598a95364f6cf37_2#bark.;
104
105 long firstoccxx . . $ $anonymous_type_1598a95364f6cf37_2#firstoc.;
106 long shiftoccxx . . $ $anonymous_type_1598a95364f6cf37_2#shiftoc.;
107 int eighth_octave_linescxx . . $ $anonymous_type_1598a95364f6cf37_2#eighth_octave_lines.; /* power of two, please */
108 int total_octave_linescxx . . $ $anonymous_type_1598a95364f6cf37_2#total_octave_lines.;
109 long ratecxx . . $ $anonymous_type_1598a95364f6cf37_2#rate.; /* cache it */
110
111 float m_valcxx . . $ $anonymous_type_1598a95364f6cf37_2#m_val.; /* Masking compensation value */
112
113 } vorbis_look_psycxx . . $ vorbis_look_psy#;
114
115 extern void _vp_psy_initcxx . . $ _vp_psy_init(f2fa2c2006bac383).(vorbis_look_psycxx . . $ vorbis_look_psy# *p,vorbis_info_psycxx . . $ vorbis_info_psy# *vi,
116 vorbis_info_psy_globalcxx . . $ vorbis_info_psy_global# *gi,int n,long rate);
117 extern void _vp_psy_clearcxx . . $ _vp_psy_clear(6d5e2970931fb99a).(vorbis_look_psycxx . . $ vorbis_look_psy# *p);
118 extern void *_vi_psy_dupcxx . . $ _vi_psy_dup(9f162e79bfc6c74).(void *source);
119
120 extern void _vi_psy_freecxx . . $ _vi_psy_free(56bda761faefe858).(vorbis_info_psycxx . . $ vorbis_info_psy# *i);
121 extern vorbis_info_psycxx . . $ vorbis_info_psy# *_vi_psy_copycxx . . $ _vi_psy_copy(95f00dcd8986b2eb).(vorbis_info_psycxx . . $ vorbis_info_psy# *i);
122
123 extern void _vp_noisemaskcxx . . $ _vp_noisemask(4bac37cb523d88bd).(vorbis_look_psycxx . . $ vorbis_look_psy# *p,
124 float *logmdct,
125 float *logmask);
126
127 extern void _vp_tonemaskcxx . . $ _vp_tonemask(50d8a29655683052).(vorbis_look_psycxx . . $ vorbis_look_psy# *p,
128 float *logfft,
129 float *logmask,
130 float global_specmax,
131 float local_specmax);
132
133 extern void _vp_offset_and_mixcxx . . $ _vp_offset_and_mix(170b71c7d29f2c57).(vorbis_look_psycxx . . $ vorbis_look_psy# *p,
134 float *noise,
135 float *tone,
136 int offset_select,
137 float *logmask,
138 float *mdct,
139 float *logmdct);
140
141 extern float _vp_ampmax_decaycxx . . $ _vp_ampmax_decay(a7ce48d8b6e7e8de).(float amp,vorbis_dsp_statecxx . . $ vorbis_dsp_state# *vd);
142
143 extern void _vp_couple_quantize_normalizecxx . . $ _vp_couple_quantize_normalize(d7662a120b588da6).(int blobno,
144 vorbis_info_psy_globalcxx . . $ vorbis_info_psy_global# *g,
145 vorbis_look_psycxx . . $ vorbis_look_psy# *p,
146 vorbis_info_mapping0cxx . . $ vorbis_info_mapping0# *vi,
147 float **mdct,
148 int **iwork,
149 int *nonzero,
150 int sliding_lowpass,
151 int ch);
152
153 #endif