Debian Codegraph @

external/opusfile/opus/silk/control.h

raw symbols SCIP
1 /***********************************************************************
2 Copyright (c) 2006-2011, Skype Limited. All rights reserved.
3 Redistribution and use in source and binary forms, with or without
4 modification, are permitted provided that the following conditions
5 are met:
6 - Redistributions of source code must retain the above copyright notice,
7 this list of conditions and the following disclaimer.
8 - Redistributions in binary form must reproduce the above copyright
9 notice, this list of conditions and the following disclaimer in the
10 documentation and/or other materials provided with the distribution.
11 - Neither the name of Internet Society, IETF or IETF Trust, nor the
12 names of specific contributors, may be used to endorse or promote
13 products derived from this software without specific prior written
14 permission.
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
19 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 POSSIBILITY OF SUCH DAMAGE.
26 ***********************************************************************/
27
28 #ifndef SILK_CONTROL_H
29 #define SILK_CONTROL_Hcxx . . $ `external/opusfile/opus/silk/control.h:29:9`!
30
31 #include "typedef.h"cxx . . $ `<file>/external/opusfile/opus/silk/typedef.h`/
32
33 #ifdef __cplusplus
34 extern "C"
35 {
36 #endif
37
38 /* Decoder API flags */
39 #define FLAG_DECODE_NORMALcxx . . $ `external/opusfile/opus/silk/control.h:39:9`! 0
40 #define FLAG_PACKET_LOSTcxx . . $ `external/opusfile/opus/silk/control.h:40:9`! 1
41 #define FLAG_DECODE_LBRRcxx . . $ `external/opusfile/opus/silk/control.h:41:9`! 2
42
43 /***********************************************/
44 /* Structure for controlling encoder operation */
45 /***********************************************/
46 typedef structcxx . . $ $anonymous_type_1138ce94d7cabe34_0# {
47 /* I: Number of channels; 1/2 */
48 opus_int32cxx . . $ opus_int32# nChannelsAPIcxx . . $ $anonymous_type_1138ce94d7cabe34_0#nChannelsAPI.;
49
50 /* I: Number of channels; 1/2 */
51 opus_int32cxx . . $ opus_int32# nChannelsInternalcxx . . $ $anonymous_type_1138ce94d7cabe34_0#nChannelsInternal.;
52
53 /* I: Input signal sampling rate in Hertz; 8000/12000/16000/24000/32000/44100/48000 */
54 opus_int32cxx . . $ opus_int32# API_sampleRatecxx . . $ $anonymous_type_1138ce94d7cabe34_0#API_sampleRate.;
55
56 /* I: Maximum internal sampling rate in Hertz; 8000/12000/16000 */
57 opus_int32cxx . . $ opus_int32# maxInternalSampleRatecxx . . $ $anonymous_type_1138ce94d7cabe34_0#maxInternalSampleRate.;
58
59 /* I: Minimum internal sampling rate in Hertz; 8000/12000/16000 */
60 opus_int32cxx . . $ opus_int32# minInternalSampleRatecxx . . $ $anonymous_type_1138ce94d7cabe34_0#minInternalSampleRate.;
61
62 /* I: Soft request for internal sampling rate in Hertz; 8000/12000/16000 */
63 opus_int32cxx . . $ opus_int32# desiredInternalSampleRatecxx . . $ $anonymous_type_1138ce94d7cabe34_0#desiredInternalSampleRate.;
64
65 /* I: Number of samples per packet in milliseconds; 10/20/40/60 */
66 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! payloadSize_mscxx . . $ $anonymous_type_1138ce94d7cabe34_0#payloadSize_ms.;
67
68 /* I: Bitrate during active speech in bits/second; internally limited */
69 opus_int32cxx . . $ opus_int32# bitRatecxx . . $ $anonymous_type_1138ce94d7cabe34_0#bitRate.;
70
71 /* I: Uplink packet loss in percent (0-100) */
72 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! packetLossPercentagecxx . . $ $anonymous_type_1138ce94d7cabe34_0#packetLossPercentage.;
73
74 /* I: Complexity mode; 0 is lowest, 10 is highest complexity */
75 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! complexitycxx . . $ $anonymous_type_1138ce94d7cabe34_0#complexity.;
76
77 /* I: Flag to enable in-band Forward Error Correction (FEC); 0/1 */
78 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! useInBandFECcxx . . $ $anonymous_type_1138ce94d7cabe34_0#useInBandFEC.;
79
80 /* I: Flag to actually code in-band Forward Error Correction (FEC) in the current packet; 0/1 */
81 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! LBRR_codedcxx . . $ $anonymous_type_1138ce94d7cabe34_0#LBRR_coded.;
82
83 /* I: Flag to enable discontinuous transmission (DTX); 0/1 */
84 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! useDTXcxx . . $ $anonymous_type_1138ce94d7cabe34_0#useDTX.;
85
86 /* I: Flag to use constant bitrate */
87 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! useCBRcxx . . $ $anonymous_type_1138ce94d7cabe34_0#useCBR.;
88
89 /* I: Maximum number of bits allowed for the frame */
90 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! maxBitscxx . . $ $anonymous_type_1138ce94d7cabe34_0#maxBits.;
91
92 /* I: Causes a smooth downmix to mono */
93 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! toMonocxx . . $ $anonymous_type_1138ce94d7cabe34_0#toMono.;
94
95 /* I: Opus encoder is allowing us to switch bandwidth */
96 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! opusCanSwitchcxx . . $ $anonymous_type_1138ce94d7cabe34_0#opusCanSwitch.;
97
98 /* I: Make frames as independent as possible (but still use LPC) */
99 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! reducedDependencycxx . . $ $anonymous_type_1138ce94d7cabe34_0#reducedDependency.;
100
101 /* O: Internal sampling rate used, in Hertz; 8000/12000/16000 */
102 opus_int32cxx . . $ opus_int32# internalSampleRatecxx . . $ $anonymous_type_1138ce94d7cabe34_0#internalSampleRate.;
103
104 /* O: Flag that bandwidth switching is allowed (because low voice activity) */
105 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! allowBandwidthSwitchcxx . . $ $anonymous_type_1138ce94d7cabe34_0#allowBandwidthSwitch.;
106
107 /* O: Flag that SILK runs in WB mode without variable LP filter (use for switching between WB/SWB/FB) */
108 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! inWBmodeWithoutVariableLPcxx . . $ $anonymous_type_1138ce94d7cabe34_0#inWBmodeWithoutVariableLP.;
109
110 /* O: Stereo width */
111 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! stereoWidth_Q14cxx . . $ $anonymous_type_1138ce94d7cabe34_0#stereoWidth_Q14.;
112
113 /* O: Tells the Opus encoder we're ready to switch */
114 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! switchReadycxx . . $ $anonymous_type_1138ce94d7cabe34_0#switchReady.;
115
116 /* O: SILK Signal type */
117 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! signalTypecxx . . $ $anonymous_type_1138ce94d7cabe34_0#signalType.;
118
119 /* O: SILK offset (dithering) */
120 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! offsetcxx . . $ $anonymous_type_1138ce94d7cabe34_0#offset.;
121 } silk_EncControlStructcxx . . $ silk_EncControlStruct#;
122
123 /**************************************************************************/
124 /* Structure for controlling decoder operation and reading decoder status */
125 /**************************************************************************/
126 typedef structcxx . . $ $anonymous_type_1138ce94d7cabe34_1# {
127 /* I: Number of channels; 1/2 */
128 opus_int32cxx . . $ opus_int32# nChannelsAPIcxx . . $ $anonymous_type_1138ce94d7cabe34_1#nChannelsAPI.;
129
130 /* I: Number of channels; 1/2 */
131 opus_int32cxx . . $ opus_int32# nChannelsInternalcxx . . $ $anonymous_type_1138ce94d7cabe34_1#nChannelsInternal.;
132
133 /* I: Output signal sampling rate in Hertz; 8000/12000/16000/24000/32000/44100/48000 */
134 opus_int32cxx . . $ opus_int32# API_sampleRatecxx . . $ $anonymous_type_1138ce94d7cabe34_1#API_sampleRate.;
135
136 /* I: Internal sampling rate used, in Hertz; 8000/12000/16000 */
137 opus_int32cxx . . $ opus_int32# internalSampleRatecxx . . $ $anonymous_type_1138ce94d7cabe34_1#internalSampleRate.;
138
139 /* I: Number of samples per packet in milliseconds; 10/20/40/60 */
140 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! payloadSize_mscxx . . $ $anonymous_type_1138ce94d7cabe34_1#payloadSize_ms.;
141
142 /* O: Pitch lag of previous frame (0 if unvoiced), measured in samples at 48 kHz */
143 opus_intcxx . . $ `external/opusfile/opus/opus_types.h:36:9`! prevPitchLagcxx . . $ $anonymous_type_1138ce94d7cabe34_1#prevPitchLag.;
144 } silk_DecControlStructcxx . . $ silk_DecControlStruct#;
145
146 #ifdef __cplusplus
147 }
148 #endif
149
150 #endif