@pproenca/ffmpeg-darwin-arm64 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/LICENSE +28 -0
  2. package/lib/libSvtAv1Enc.a +0 -0
  3. package/lib/libaom.a +0 -0
  4. package/lib/libavcodec.a +0 -0
  5. package/lib/libavdevice.a +0 -0
  6. package/lib/libavfilter.a +0 -0
  7. package/lib/libavformat.a +0 -0
  8. package/lib/libavutil.a +0 -0
  9. package/lib/libdav1d.a +0 -0
  10. package/lib/libogg.a +0 -0
  11. package/lib/libopus.a +0 -0
  12. package/lib/libswresample.a +0 -0
  13. package/lib/libswscale.a +0 -0
  14. package/lib/libvorbis.a +0 -0
  15. package/lib/libvorbisenc.a +0 -0
  16. package/lib/libvorbisfile.a +0 -0
  17. package/lib/libvpx.a +0 -0
  18. package/lib/pkgconfig/SvtAv1Enc.pc +12 -0
  19. package/lib/pkgconfig/aom.pc +14 -0
  20. package/lib/pkgconfig/dav1d.pc +9 -0
  21. package/lib/pkgconfig/libavcodec.pc +14 -0
  22. package/lib/pkgconfig/libavdevice.pc +14 -0
  23. package/lib/pkgconfig/libavfilter.pc +14 -0
  24. package/lib/pkgconfig/libavformat.pc +14 -0
  25. package/lib/pkgconfig/libavutil.pc +14 -0
  26. package/lib/pkgconfig/libswresample.pc +14 -0
  27. package/lib/pkgconfig/libswscale.pc +14 -0
  28. package/lib/pkgconfig/ogg.pc +14 -0
  29. package/lib/pkgconfig/opus.pc +16 -0
  30. package/lib/pkgconfig/vorbis.pc +15 -0
  31. package/lib/pkgconfig/vorbisenc.pc +14 -0
  32. package/lib/pkgconfig/vorbisfile.pc +14 -0
  33. package/lib/pkgconfig/vpx.pc +14 -0
  34. package/package.json +2 -3
  35. package/include/aom/aom.h +0 -127
  36. package/include/aom/aom_codec.h +0 -594
  37. package/include/aom/aom_decoder.h +0 -257
  38. package/include/aom/aom_encoder.h +0 -1154
  39. package/include/aom/aom_external_partition.h +0 -452
  40. package/include/aom/aom_frame_buffer.h +0 -84
  41. package/include/aom/aom_image.h +0 -462
  42. package/include/aom/aom_integer.h +0 -60
  43. package/include/aom/aomcx.h +0 -2288
  44. package/include/aom/aomdx.h +0 -607
  45. package/include/dav1d/common.h +0 -94
  46. package/include/dav1d/data.h +0 -117
  47. package/include/dav1d/dav1d.h +0 -329
  48. package/include/dav1d/headers.h +0 -444
  49. package/include/dav1d/picture.h +0 -157
  50. package/include/dav1d/version.h +0 -50
  51. package/include/libavcodec/ac3_parser.h +0 -36
  52. package/include/libavcodec/adts_parser.h +0 -37
  53. package/include/libavcodec/avcodec.h +0 -3128
  54. package/include/libavcodec/avdct.h +0 -88
  55. package/include/libavcodec/avfft.h +0 -149
  56. package/include/libavcodec/bsf.h +0 -332
  57. package/include/libavcodec/codec.h +0 -382
  58. package/include/libavcodec/codec_desc.h +0 -134
  59. package/include/libavcodec/codec_id.h +0 -669
  60. package/include/libavcodec/codec_par.h +0 -248
  61. package/include/libavcodec/d3d11va.h +0 -109
  62. package/include/libavcodec/defs.h +0 -337
  63. package/include/libavcodec/dirac.h +0 -135
  64. package/include/libavcodec/dv_profile.h +0 -82
  65. package/include/libavcodec/dxva2.h +0 -90
  66. package/include/libavcodec/jni.h +0 -67
  67. package/include/libavcodec/mediacodec.h +0 -103
  68. package/include/libavcodec/packet.h +0 -887
  69. package/include/libavcodec/qsv.h +0 -109
  70. package/include/libavcodec/vdpau.h +0 -171
  71. package/include/libavcodec/version.h +0 -45
  72. package/include/libavcodec/version_major.h +0 -52
  73. package/include/libavcodec/videotoolbox.h +0 -85
  74. package/include/libavcodec/vorbis_parser.h +0 -74
  75. package/include/libavdevice/avdevice.h +0 -397
  76. package/include/libavdevice/version.h +0 -45
  77. package/include/libavdevice/version_major.h +0 -43
  78. package/include/libavfilter/avfilter.h +0 -1379
  79. package/include/libavfilter/buffersink.h +0 -173
  80. package/include/libavfilter/buffersrc.h +0 -215
  81. package/include/libavfilter/version.h +0 -48
  82. package/include/libavfilter/version_major.h +0 -40
  83. package/include/libavformat/avformat.h +0 -3107
  84. package/include/libavformat/avio.h +0 -831
  85. package/include/libavformat/version.h +0 -47
  86. package/include/libavformat/version_major.h +0 -54
  87. package/include/libavutil/adler32.h +0 -63
  88. package/include/libavutil/aes.h +0 -69
  89. package/include/libavutil/aes_ctr.h +0 -99
  90. package/include/libavutil/ambient_viewing_environment.h +0 -72
  91. package/include/libavutil/attributes.h +0 -173
  92. package/include/libavutil/audio_fifo.h +0 -187
  93. package/include/libavutil/avassert.h +0 -78
  94. package/include/libavutil/avconfig.h +0 -6
  95. package/include/libavutil/avstring.h +0 -428
  96. package/include/libavutil/avutil.h +0 -362
  97. package/include/libavutil/base64.h +0 -72
  98. package/include/libavutil/blowfish.h +0 -82
  99. package/include/libavutil/bprint.h +0 -254
  100. package/include/libavutil/bswap.h +0 -105
  101. package/include/libavutil/buffer.h +0 -322
  102. package/include/libavutil/camellia.h +0 -70
  103. package/include/libavutil/cast5.h +0 -80
  104. package/include/libavutil/channel_layout.h +0 -751
  105. package/include/libavutil/common.h +0 -589
  106. package/include/libavutil/cpu.h +0 -145
  107. package/include/libavutil/crc.h +0 -102
  108. package/include/libavutil/csp.h +0 -150
  109. package/include/libavutil/des.h +0 -81
  110. package/include/libavutil/detection_bbox.h +0 -108
  111. package/include/libavutil/dict.h +0 -241
  112. package/include/libavutil/display.h +0 -109
  113. package/include/libavutil/dovi_meta.h +0 -396
  114. package/include/libavutil/downmix_info.h +0 -115
  115. package/include/libavutil/encryption_info.h +0 -205
  116. package/include/libavutil/error.h +0 -129
  117. package/include/libavutil/eval.h +0 -140
  118. package/include/libavutil/executor.h +0 -67
  119. package/include/libavutil/ffversion.h +0 -5
  120. package/include/libavutil/fifo.h +0 -242
  121. package/include/libavutil/file.h +0 -62
  122. package/include/libavutil/film_grain_params.h +0 -322
  123. package/include/libavutil/frame.h +0 -1175
  124. package/include/libavutil/hash.h +0 -264
  125. package/include/libavutil/hdr_dynamic_metadata.h +0 -376
  126. package/include/libavutil/hdr_dynamic_vivid_metadata.h +0 -346
  127. package/include/libavutil/hmac.h +0 -99
  128. package/include/libavutil/hwcontext.h +0 -598
  129. package/include/libavutil/hwcontext_cuda.h +0 -74
  130. package/include/libavutil/hwcontext_d3d11va.h +0 -178
  131. package/include/libavutil/hwcontext_d3d12va.h +0 -142
  132. package/include/libavutil/hwcontext_drm.h +0 -169
  133. package/include/libavutil/hwcontext_dxva2.h +0 -75
  134. package/include/libavutil/hwcontext_mediacodec.h +0 -61
  135. package/include/libavutil/hwcontext_opencl.h +0 -100
  136. package/include/libavutil/hwcontext_qsv.h +0 -87
  137. package/include/libavutil/hwcontext_vaapi.h +0 -117
  138. package/include/libavutil/hwcontext_vdpau.h +0 -44
  139. package/include/libavutil/hwcontext_videotoolbox.h +0 -106
  140. package/include/libavutil/hwcontext_vulkan.h +0 -382
  141. package/include/libavutil/iamf.h +0 -690
  142. package/include/libavutil/imgutils.h +0 -377
  143. package/include/libavutil/intfloat.h +0 -77
  144. package/include/libavutil/intreadwrite.h +0 -677
  145. package/include/libavutil/lfg.h +0 -81
  146. package/include/libavutil/log.h +0 -387
  147. package/include/libavutil/lzo.h +0 -66
  148. package/include/libavutil/macros.h +0 -80
  149. package/include/libavutil/mastering_display_metadata.h +0 -137
  150. package/include/libavutil/mathematics.h +0 -300
  151. package/include/libavutil/md5.h +0 -89
  152. package/include/libavutil/mem.h +0 -607
  153. package/include/libavutil/motion_vector.h +0 -57
  154. package/include/libavutil/murmur3.h +0 -115
  155. package/include/libavutil/opt.h +0 -1187
  156. package/include/libavutil/parseutils.h +0 -197
  157. package/include/libavutil/pixdesc.h +0 -440
  158. package/include/libavutil/pixelutils.h +0 -51
  159. package/include/libavutil/pixfmt.h +0 -716
  160. package/include/libavutil/random_seed.h +0 -57
  161. package/include/libavutil/rational.h +0 -225
  162. package/include/libavutil/rc4.h +0 -69
  163. package/include/libavutil/replaygain.h +0 -50
  164. package/include/libavutil/ripemd.h +0 -83
  165. package/include/libavutil/samplefmt.h +0 -269
  166. package/include/libavutil/sha.h +0 -90
  167. package/include/libavutil/sha512.h +0 -92
  168. package/include/libavutil/spherical.h +0 -243
  169. package/include/libavutil/stereo3d.h +0 -325
  170. package/include/libavutil/tea.h +0 -71
  171. package/include/libavutil/threadmessage.h +0 -115
  172. package/include/libavutil/time.h +0 -56
  173. package/include/libavutil/timecode.h +0 -199
  174. package/include/libavutil/timestamp.h +0 -85
  175. package/include/libavutil/tree.h +0 -137
  176. package/include/libavutil/twofish.h +0 -70
  177. package/include/libavutil/tx.h +0 -210
  178. package/include/libavutil/uuid.h +0 -146
  179. package/include/libavutil/version.h +0 -124
  180. package/include/libavutil/video_enc_params.h +0 -171
  181. package/include/libavutil/video_hint.h +0 -107
  182. package/include/libavutil/xtea.h +0 -94
  183. package/include/libswresample/swresample.h +0 -587
  184. package/include/libswresample/version.h +0 -46
  185. package/include/libswresample/version_major.h +0 -31
  186. package/include/libswscale/swscale.h +0 -460
  187. package/include/libswscale/version.h +0 -44
  188. package/include/libswscale/version_major.h +0 -35
  189. package/include/ogg/config_types.h +0 -26
  190. package/include/ogg/ogg.h +0 -209
  191. package/include/ogg/os_types.h +0 -158
  192. package/include/opus/opus.h +0 -1099
  193. package/include/opus/opus_defines.h +0 -830
  194. package/include/opus/opus_multistream.h +0 -660
  195. package/include/opus/opus_projection.h +0 -568
  196. package/include/opus/opus_types.h +0 -166
  197. package/include/svt-av1/EbDebugMacros.h +0 -88
  198. package/include/svt-av1/EbSvtAv1.h +0 -462
  199. package/include/svt-av1/EbSvtAv1Enc.h +0 -1112
  200. package/include/svt-av1/EbSvtAv1ErrorCodes.h +0 -67
  201. package/include/svt-av1/EbSvtAv1ExtFrameBuf.h +0 -64
  202. package/include/svt-av1/EbSvtAv1Formats.h +0 -126
  203. package/include/svt-av1/EbSvtAv1Metadata.h +0 -156
  204. package/include/vorbis/codec.h +0 -242
  205. package/include/vorbis/vorbisenc.h +0 -435
  206. package/include/vorbis/vorbisfile.h +0 -205
  207. package/include/vpx/vp8.h +0 -136
  208. package/include/vpx/vp8cx.h +0 -1118
  209. package/include/vpx/vp8dx.h +0 -228
  210. package/include/vpx/vpx_codec.h +0 -475
  211. package/include/vpx/vpx_decoder.h +0 -367
  212. package/include/vpx/vpx_encoder.h +0 -1150
  213. package/include/vpx/vpx_ext_ratectrl.h +0 -590
  214. package/include/vpx/vpx_frame_buffer.h +0 -83
  215. package/include/vpx/vpx_image.h +0 -221
  216. package/include/vpx/vpx_integer.h +0 -40
  217. package/include/vpx/vpx_tpl.h +0 -68
  218. /package/{include → lib/pkgconfig}/index.js +0 -0
@@ -1,568 +0,0 @@
1
- /* Copyright (c) 2017 Google Inc.
2
- Written by Andrew Allen */
3
- /*
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions
6
- are met:
7
-
8
- - Redistributions of source code must retain the above copyright
9
- notice, this list of conditions and the following disclaimer.
10
-
11
- - Redistributions in binary form must reproduce the above copyright
12
- notice, this list of conditions and the following disclaimer in the
13
- documentation and/or other materials provided with the distribution.
14
-
15
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16
- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19
- OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
- */
27
-
28
- /**
29
- * @file opus_projection.h
30
- * @brief Opus projection reference API
31
- */
32
-
33
- #ifndef OPUS_PROJECTION_H
34
- #define OPUS_PROJECTION_H
35
-
36
- #include "opus_multistream.h"
37
-
38
- #ifdef __cplusplus
39
- extern "C" {
40
- #endif
41
-
42
- /** @cond OPUS_INTERNAL_DOC */
43
-
44
- /** These are the actual encoder and decoder CTL ID numbers.
45
- * They should not be used directly by applications.c
46
- * In general, SETs should be even and GETs should be odd.*/
47
- /**@{*/
48
- #define OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN_REQUEST 6001
49
- #define OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST 6003
50
- #define OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST 6005
51
- /**@}*/
52
-
53
-
54
- /** @endcond */
55
-
56
- /** @defgroup opus_projection_ctls Projection specific encoder and decoder CTLs
57
- *
58
- * These are convenience macros that are specific to the
59
- * opus_projection_encoder_ctl() and opus_projection_decoder_ctl()
60
- * interface.
61
- * The CTLs from @ref opus_genericctls, @ref opus_encoderctls,
62
- * @ref opus_decoderctls, and @ref opus_multistream_ctls may be applied to a
63
- * projection encoder or decoder as well.
64
- */
65
- /**@{*/
66
-
67
- /** Gets the gain (in dB. S7.8-format) of the demixing matrix from the encoder.
68
- * @param[out] x <tt>opus_int32 *</tt>: Returns the gain (in dB. S7.8-format)
69
- * of the demixing matrix.
70
- * @hideinitializer
71
- */
72
- #define OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN(x) OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN_REQUEST, __opus_check_int_ptr(x)
73
-
74
-
75
- /** Gets the size in bytes of the demixing matrix from the encoder.
76
- * @param[out] x <tt>opus_int32 *</tt>: Returns the size in bytes of the
77
- * demixing matrix.
78
- * @hideinitializer
79
- */
80
- #define OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE(x) OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST, __opus_check_int_ptr(x)
81
-
82
-
83
- /** Copies the demixing matrix to the supplied pointer location.
84
- * @param[out] x <tt>unsigned char *</tt>: Returns the demixing matrix to the
85
- * supplied pointer location.
86
- * @param y <tt>opus_int32</tt>: The size in bytes of the reserved memory at the
87
- * pointer location.
88
- * @hideinitializer
89
- */
90
- #define OPUS_PROJECTION_GET_DEMIXING_MATRIX(x,y) OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST, x, __opus_check_int(y)
91
-
92
-
93
- /**@}*/
94
-
95
- /** Opus projection encoder state.
96
- * This contains the complete state of a projection Opus encoder.
97
- * It is position independent and can be freely copied.
98
- * @see opus_projection_ambisonics_encoder_create
99
- */
100
- typedef struct OpusProjectionEncoder OpusProjectionEncoder;
101
-
102
-
103
- /** Opus projection decoder state.
104
- * This contains the complete state of a projection Opus decoder.
105
- * It is position independent and can be freely copied.
106
- * @see opus_projection_decoder_create
107
- * @see opus_projection_decoder_init
108
- */
109
- typedef struct OpusProjectionDecoder OpusProjectionDecoder;
110
-
111
-
112
- /**\name Projection encoder functions */
113
- /**@{*/
114
-
115
- /** Gets the size of an OpusProjectionEncoder structure.
116
- * @param channels <tt>int</tt>: The total number of input channels to encode.
117
- * This must be no more than 255.
118
- * @param mapping_family <tt>int</tt>: The mapping family to use for selecting
119
- * the appropriate projection.
120
- * @returns The size in bytes on success, or a negative error code
121
- * (see @ref opus_errorcodes) on error.
122
- */
123
- OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_projection_ambisonics_encoder_get_size(
124
- int channels,
125
- int mapping_family
126
- );
127
-
128
-
129
- /** Allocates and initializes a projection encoder state.
130
- * Call opus_projection_encoder_destroy() to release
131
- * this object when finished.
132
- * @param Fs <tt>opus_int32</tt>: Sampling rate of the input signal (in Hz).
133
- * This must be one of 8000, 12000, 16000,
134
- * 24000, or 48000.
135
- * @param channels <tt>int</tt>: Number of channels in the input signal.
136
- * This must be at most 255.
137
- * It may be greater than the number of
138
- * coded channels (<code>streams +
139
- * coupled_streams</code>).
140
- * @param mapping_family <tt>int</tt>: The mapping family to use for selecting
141
- * the appropriate projection.
142
- * @param[out] streams <tt>int *</tt>: The total number of streams that will
143
- * be encoded from the input.
144
- * @param[out] coupled_streams <tt>int *</tt>: Number of coupled (2 channel)
145
- * streams that will be encoded from the input.
146
- * @param application <tt>int</tt>: The target encoder application.
147
- * This must be one of the following:
148
- * <dl>
149
- * <dt>#OPUS_APPLICATION_VOIP</dt>
150
- * <dd>Process signal for improved speech intelligibility.</dd>
151
- * <dt>#OPUS_APPLICATION_AUDIO</dt>
152
- * <dd>Favor faithfulness to the original input.</dd>
153
- * <dt>#OPUS_APPLICATION_RESTRICTED_LOWDELAY</dt>
154
- * <dd>Configure the minimum possible coding delay by disabling certain modes
155
- * of operation.</dd>
156
- * </dl>
157
- * @param[out] error <tt>int *</tt>: Returns #OPUS_OK on success, or an error
158
- * code (see @ref opus_errorcodes) on
159
- * failure.
160
- */
161
- OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusProjectionEncoder *opus_projection_ambisonics_encoder_create(
162
- opus_int32 Fs,
163
- int channels,
164
- int mapping_family,
165
- int *streams,
166
- int *coupled_streams,
167
- int application,
168
- int *error
169
- ) OPUS_ARG_NONNULL(4) OPUS_ARG_NONNULL(5);
170
-
171
-
172
- /** Initialize a previously allocated projection encoder state.
173
- * The memory pointed to by \a st must be at least the size returned by
174
- * opus_projection_ambisonics_encoder_get_size().
175
- * This is intended for applications which use their own allocator instead of
176
- * malloc.
177
- * To reset a previously initialized state, use the #OPUS_RESET_STATE CTL.
178
- * @see opus_projection_ambisonics_encoder_create
179
- * @see opus_projection_ambisonics_encoder_get_size
180
- * @param st <tt>OpusProjectionEncoder*</tt>: Projection encoder state to initialize.
181
- * @param Fs <tt>opus_int32</tt>: Sampling rate of the input signal (in Hz).
182
- * This must be one of 8000, 12000, 16000,
183
- * 24000, or 48000.
184
- * @param channels <tt>int</tt>: Number of channels in the input signal.
185
- * This must be at most 255.
186
- * It may be greater than the number of
187
- * coded channels (<code>streams +
188
- * coupled_streams</code>).
189
- * @param streams <tt>int</tt>: The total number of streams to encode from the
190
- * input.
191
- * This must be no more than the number of channels.
192
- * @param coupled_streams <tt>int</tt>: Number of coupled (2 channel) streams
193
- * to encode.
194
- * This must be no larger than the total
195
- * number of streams.
196
- * Additionally, The total number of
197
- * encoded channels (<code>streams +
198
- * coupled_streams</code>) must be no
199
- * more than the number of input channels.
200
- * @param application <tt>int</tt>: The target encoder application.
201
- * This must be one of the following:
202
- * <dl>
203
- * <dt>#OPUS_APPLICATION_VOIP</dt>
204
- * <dd>Process signal for improved speech intelligibility.</dd>
205
- * <dt>#OPUS_APPLICATION_AUDIO</dt>
206
- * <dd>Favor faithfulness to the original input.</dd>
207
- * <dt>#OPUS_APPLICATION_RESTRICTED_LOWDELAY</dt>
208
- * <dd>Configure the minimum possible coding delay by disabling certain modes
209
- * of operation.</dd>
210
- * </dl>
211
- * @returns #OPUS_OK on success, or an error code (see @ref opus_errorcodes)
212
- * on failure.
213
- */
214
- OPUS_EXPORT int opus_projection_ambisonics_encoder_init(
215
- OpusProjectionEncoder *st,
216
- opus_int32 Fs,
217
- int channels,
218
- int mapping_family,
219
- int *streams,
220
- int *coupled_streams,
221
- int application
222
- ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(5) OPUS_ARG_NONNULL(6);
223
-
224
-
225
- /** Encodes a projection Opus frame.
226
- * @param st <tt>OpusProjectionEncoder*</tt>: Projection encoder state.
227
- * @param[in] pcm <tt>const opus_int16*</tt>: The input signal as interleaved
228
- * samples.
229
- * This must contain
230
- * <code>frame_size*channels</code>
231
- * samples.
232
- * @param frame_size <tt>int</tt>: Number of samples per channel in the input
233
- * signal.
234
- * This must be an Opus frame size for the
235
- * encoder's sampling rate.
236
- * For example, at 48 kHz the permitted values
237
- * are 120, 240, 480, 960, 1920, and 2880.
238
- * Passing in a duration of less than 10 ms
239
- * (480 samples at 48 kHz) will prevent the
240
- * encoder from using the LPC or hybrid modes.
241
- * @param[out] data <tt>unsigned char*</tt>: Output payload.
242
- * This must contain storage for at
243
- * least \a max_data_bytes.
244
- * @param [in] max_data_bytes <tt>opus_int32</tt>: Size of the allocated
245
- * memory for the output
246
- * payload. This may be
247
- * used to impose an upper limit on
248
- * the instant bitrate, but should
249
- * not be used as the only bitrate
250
- * control. Use #OPUS_SET_BITRATE to
251
- * control the bitrate.
252
- * @returns The length of the encoded packet (in bytes) on success or a
253
- * negative error code (see @ref opus_errorcodes) on failure.
254
- */
255
- OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_projection_encode(
256
- OpusProjectionEncoder *st,
257
- const opus_int16 *pcm,
258
- int frame_size,
259
- unsigned char *data,
260
- opus_int32 max_data_bytes
261
- ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4);
262
-
263
-
264
- /** Encodes a projection Opus frame from floating point input.
265
- * @param st <tt>OpusProjectionEncoder*</tt>: Projection encoder state.
266
- * @param[in] pcm <tt>const float*</tt>: The input signal as interleaved
267
- * samples with a normal range of
268
- * +/-1.0.
269
- * Samples with a range beyond +/-1.0
270
- * are supported but will be clipped by
271
- * decoders using the integer API and
272
- * should only be used if it is known
273
- * that the far end supports extended
274
- * dynamic range.
275
- * This must contain
276
- * <code>frame_size*channels</code>
277
- * samples.
278
- * @param frame_size <tt>int</tt>: Number of samples per channel in the input
279
- * signal.
280
- * This must be an Opus frame size for the
281
- * encoder's sampling rate.
282
- * For example, at 48 kHz the permitted values
283
- * are 120, 240, 480, 960, 1920, and 2880.
284
- * Passing in a duration of less than 10 ms
285
- * (480 samples at 48 kHz) will prevent the
286
- * encoder from using the LPC or hybrid modes.
287
- * @param[out] data <tt>unsigned char*</tt>: Output payload.
288
- * This must contain storage for at
289
- * least \a max_data_bytes.
290
- * @param [in] max_data_bytes <tt>opus_int32</tt>: Size of the allocated
291
- * memory for the output
292
- * payload. This may be
293
- * used to impose an upper limit on
294
- * the instant bitrate, but should
295
- * not be used as the only bitrate
296
- * control. Use #OPUS_SET_BITRATE to
297
- * control the bitrate.
298
- * @returns The length of the encoded packet (in bytes) on success or a
299
- * negative error code (see @ref opus_errorcodes) on failure.
300
- */
301
- OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_projection_encode_float(
302
- OpusProjectionEncoder *st,
303
- const float *pcm,
304
- int frame_size,
305
- unsigned char *data,
306
- opus_int32 max_data_bytes
307
- ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4);
308
-
309
-
310
- /** Frees an <code>OpusProjectionEncoder</code> allocated by
311
- * opus_projection_ambisonics_encoder_create().
312
- * @param st <tt>OpusProjectionEncoder*</tt>: Projection encoder state to be freed.
313
- */
314
- OPUS_EXPORT void opus_projection_encoder_destroy(OpusProjectionEncoder *st);
315
-
316
-
317
- /** Perform a CTL function on a projection Opus encoder.
318
- *
319
- * Generally the request and subsequent arguments are generated by a
320
- * convenience macro.
321
- * @param st <tt>OpusProjectionEncoder*</tt>: Projection encoder state.
322
- * @param request This and all remaining parameters should be replaced by one
323
- * of the convenience macros in @ref opus_genericctls,
324
- * @ref opus_encoderctls, @ref opus_multistream_ctls, or
325
- * @ref opus_projection_ctls
326
- * @see opus_genericctls
327
- * @see opus_encoderctls
328
- * @see opus_multistream_ctls
329
- * @see opus_projection_ctls
330
- */
331
- OPUS_EXPORT int opus_projection_encoder_ctl(OpusProjectionEncoder *st, int request, ...) OPUS_ARG_NONNULL(1);
332
-
333
-
334
- /**@}*/
335
-
336
- /**\name Projection decoder functions */
337
- /**@{*/
338
-
339
- /** Gets the size of an <code>OpusProjectionDecoder</code> structure.
340
- * @param channels <tt>int</tt>: The total number of output channels.
341
- * This must be no more than 255.
342
- * @param streams <tt>int</tt>: The total number of streams coded in the
343
- * input.
344
- * This must be no more than 255.
345
- * @param coupled_streams <tt>int</tt>: Number streams to decode as coupled
346
- * (2 channel) streams.
347
- * This must be no larger than the total
348
- * number of streams.
349
- * Additionally, The total number of
350
- * coded channels (<code>streams +
351
- * coupled_streams</code>) must be no
352
- * more than 255.
353
- * @returns The size in bytes on success, or a negative error code
354
- * (see @ref opus_errorcodes) on error.
355
- */
356
- OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_projection_decoder_get_size(
357
- int channels,
358
- int streams,
359
- int coupled_streams
360
- );
361
-
362
-
363
- /** Allocates and initializes a projection decoder state.
364
- * Call opus_projection_decoder_destroy() to release
365
- * this object when finished.
366
- * @param Fs <tt>opus_int32</tt>: Sampling rate to decode at (in Hz).
367
- * This must be one of 8000, 12000, 16000,
368
- * 24000, or 48000.
369
- * @param channels <tt>int</tt>: Number of channels to output.
370
- * This must be at most 255.
371
- * It may be different from the number of coded
372
- * channels (<code>streams +
373
- * coupled_streams</code>).
374
- * @param streams <tt>int</tt>: The total number of streams coded in the
375
- * input.
376
- * This must be no more than 255.
377
- * @param coupled_streams <tt>int</tt>: Number of streams to decode as coupled
378
- * (2 channel) streams.
379
- * This must be no larger than the total
380
- * number of streams.
381
- * Additionally, The total number of
382
- * coded channels (<code>streams +
383
- * coupled_streams</code>) must be no
384
- * more than 255.
385
- * @param[in] demixing_matrix <tt>const unsigned char[demixing_matrix_size]</tt>: Demixing matrix
386
- * that mapping from coded channels to output channels,
387
- * as described in @ref opus_projection and
388
- * @ref opus_projection_ctls.
389
- * @param demixing_matrix_size <tt>opus_int32</tt>: The size in bytes of the
390
- * demixing matrix, as
391
- * described in @ref
392
- * opus_projection_ctls.
393
- * @param[out] error <tt>int *</tt>: Returns #OPUS_OK on success, or an error
394
- * code (see @ref opus_errorcodes) on
395
- * failure.
396
- */
397
- OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusProjectionDecoder *opus_projection_decoder_create(
398
- opus_int32 Fs,
399
- int channels,
400
- int streams,
401
- int coupled_streams,
402
- unsigned char *demixing_matrix,
403
- opus_int32 demixing_matrix_size,
404
- int *error
405
- ) OPUS_ARG_NONNULL(5);
406
-
407
-
408
- /** Intialize a previously allocated projection decoder state object.
409
- * The memory pointed to by \a st must be at least the size returned by
410
- * opus_projection_decoder_get_size().
411
- * This is intended for applications which use their own allocator instead of
412
- * malloc.
413
- * To reset a previously initialized state, use the #OPUS_RESET_STATE CTL.
414
- * @see opus_projection_decoder_create
415
- * @see opus_projection_deocder_get_size
416
- * @param st <tt>OpusProjectionDecoder*</tt>: Projection encoder state to initialize.
417
- * @param Fs <tt>opus_int32</tt>: Sampling rate to decode at (in Hz).
418
- * This must be one of 8000, 12000, 16000,
419
- * 24000, or 48000.
420
- * @param channels <tt>int</tt>: Number of channels to output.
421
- * This must be at most 255.
422
- * It may be different from the number of coded
423
- * channels (<code>streams +
424
- * coupled_streams</code>).
425
- * @param streams <tt>int</tt>: The total number of streams coded in the
426
- * input.
427
- * This must be no more than 255.
428
- * @param coupled_streams <tt>int</tt>: Number of streams to decode as coupled
429
- * (2 channel) streams.
430
- * This must be no larger than the total
431
- * number of streams.
432
- * Additionally, The total number of
433
- * coded channels (<code>streams +
434
- * coupled_streams</code>) must be no
435
- * more than 255.
436
- * @param[in] demixing_matrix <tt>const unsigned char[demixing_matrix_size]</tt>: Demixing matrix
437
- * that mapping from coded channels to output channels,
438
- * as described in @ref opus_projection and
439
- * @ref opus_projection_ctls.
440
- * @param demixing_matrix_size <tt>opus_int32</tt>: The size in bytes of the
441
- * demixing matrix, as
442
- * described in @ref
443
- * opus_projection_ctls.
444
- * @returns #OPUS_OK on success, or an error code (see @ref opus_errorcodes)
445
- * on failure.
446
- */
447
- OPUS_EXPORT int opus_projection_decoder_init(
448
- OpusProjectionDecoder *st,
449
- opus_int32 Fs,
450
- int channels,
451
- int streams,
452
- int coupled_streams,
453
- unsigned char *demixing_matrix,
454
- opus_int32 demixing_matrix_size
455
- ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(6);
456
-
457
-
458
- /** Decode a projection Opus packet.
459
- * @param st <tt>OpusProjectionDecoder*</tt>: Projection decoder state.
460
- * @param[in] data <tt>const unsigned char*</tt>: Input payload.
461
- * Use a <code>NULL</code>
462
- * pointer to indicate packet
463
- * loss.
464
- * @param len <tt>opus_int32</tt>: Number of bytes in payload.
465
- * @param[out] pcm <tt>opus_int16*</tt>: Output signal, with interleaved
466
- * samples.
467
- * This must contain room for
468
- * <code>frame_size*channels</code>
469
- * samples.
470
- * @param frame_size <tt>int</tt>: The number of samples per channel of
471
- * available space in \a pcm.
472
- * If this is less than the maximum packet duration
473
- * (120 ms; 5760 for 48kHz), this function will not be capable
474
- * of decoding some packets. In the case of PLC (data==NULL)
475
- * or FEC (decode_fec=1), then frame_size needs to be exactly
476
- * the duration of audio that is missing, otherwise the
477
- * decoder will not be in the optimal state to decode the
478
- * next incoming packet. For the PLC and FEC cases, frame_size
479
- * <b>must</b> be a multiple of 2.5 ms.
480
- * @param decode_fec <tt>int</tt>: Flag (0 or 1) to request that any in-band
481
- * forward error correction data be decoded.
482
- * If no such data is available, the frame is
483
- * decoded as if it were lost.
484
- * @returns Number of samples decoded on success or a negative error code
485
- * (see @ref opus_errorcodes) on failure.
486
- */
487
- OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_projection_decode(
488
- OpusProjectionDecoder *st,
489
- const unsigned char *data,
490
- opus_int32 len,
491
- opus_int16 *pcm,
492
- int frame_size,
493
- int decode_fec
494
- ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);
495
-
496
-
497
- /** Decode a projection Opus packet with floating point output.
498
- * @param st <tt>OpusProjectionDecoder*</tt>: Projection decoder state.
499
- * @param[in] data <tt>const unsigned char*</tt>: Input payload.
500
- * Use a <code>NULL</code>
501
- * pointer to indicate packet
502
- * loss.
503
- * @param len <tt>opus_int32</tt>: Number of bytes in payload.
504
- * @param[out] pcm <tt>opus_int16*</tt>: Output signal, with interleaved
505
- * samples.
506
- * This must contain room for
507
- * <code>frame_size*channels</code>
508
- * samples.
509
- * @param frame_size <tt>int</tt>: The number of samples per channel of
510
- * available space in \a pcm.
511
- * If this is less than the maximum packet duration
512
- * (120 ms; 5760 for 48kHz), this function will not be capable
513
- * of decoding some packets. In the case of PLC (data==NULL)
514
- * or FEC (decode_fec=1), then frame_size needs to be exactly
515
- * the duration of audio that is missing, otherwise the
516
- * decoder will not be in the optimal state to decode the
517
- * next incoming packet. For the PLC and FEC cases, frame_size
518
- * <b>must</b> be a multiple of 2.5 ms.
519
- * @param decode_fec <tt>int</tt>: Flag (0 or 1) to request that any in-band
520
- * forward error correction data be decoded.
521
- * If no such data is available, the frame is
522
- * decoded as if it were lost.
523
- * @returns Number of samples decoded on success or a negative error code
524
- * (see @ref opus_errorcodes) on failure.
525
- */
526
- OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_projection_decode_float(
527
- OpusProjectionDecoder *st,
528
- const unsigned char *data,
529
- opus_int32 len,
530
- float *pcm,
531
- int frame_size,
532
- int decode_fec
533
- ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);
534
-
535
-
536
- /** Perform a CTL function on a projection Opus decoder.
537
- *
538
- * Generally the request and subsequent arguments are generated by a
539
- * convenience macro.
540
- * @param st <tt>OpusProjectionDecoder*</tt>: Projection decoder state.
541
- * @param request This and all remaining parameters should be replaced by one
542
- * of the convenience macros in @ref opus_genericctls,
543
- * @ref opus_decoderctls, @ref opus_multistream_ctls, or
544
- * @ref opus_projection_ctls.
545
- * @see opus_genericctls
546
- * @see opus_decoderctls
547
- * @see opus_multistream_ctls
548
- * @see opus_projection_ctls
549
- */
550
- OPUS_EXPORT int opus_projection_decoder_ctl(OpusProjectionDecoder *st, int request, ...) OPUS_ARG_NONNULL(1);
551
-
552
-
553
- /** Frees an <code>OpusProjectionDecoder</code> allocated by
554
- * opus_projection_decoder_create().
555
- * @param st <tt>OpusProjectionDecoder</tt>: Projection decoder state to be freed.
556
- */
557
- OPUS_EXPORT void opus_projection_decoder_destroy(OpusProjectionDecoder *st);
558
-
559
-
560
- /**@}*/
561
-
562
- /**@}*/
563
-
564
- #ifdef __cplusplus
565
- }
566
- #endif
567
-
568
- #endif /* OPUS_PROJECTION_H */