@pproenca/ffmpeg-darwin-arm64-lgpl 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 (221) hide show
  1. package/LICENSE +176 -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/libmp3lame.a +0 -0
  11. package/lib/libogg.a +0 -0
  12. package/lib/libopus.a +0 -0
  13. package/lib/libswresample.a +0 -0
  14. package/lib/libswscale.a +0 -0
  15. package/lib/libvorbis.a +0 -0
  16. package/lib/libvorbisenc.a +0 -0
  17. package/lib/libvorbisfile.a +0 -0
  18. package/lib/libvpx.a +0 -0
  19. package/lib/pkgconfig/SvtAv1Enc.pc +12 -0
  20. package/lib/pkgconfig/aom.pc +14 -0
  21. package/lib/pkgconfig/dav1d.pc +9 -0
  22. package/lib/pkgconfig/libavcodec.pc +14 -0
  23. package/lib/pkgconfig/libavdevice.pc +14 -0
  24. package/lib/pkgconfig/libavfilter.pc +14 -0
  25. package/lib/pkgconfig/libavformat.pc +14 -0
  26. package/lib/pkgconfig/libavutil.pc +14 -0
  27. package/lib/pkgconfig/libswresample.pc +14 -0
  28. package/lib/pkgconfig/libswscale.pc +14 -0
  29. package/lib/pkgconfig/mp3lame.pc +11 -0
  30. package/lib/pkgconfig/ogg.pc +14 -0
  31. package/lib/pkgconfig/opus.pc +16 -0
  32. package/lib/pkgconfig/vorbis.pc +15 -0
  33. package/lib/pkgconfig/vorbisenc.pc +14 -0
  34. package/lib/pkgconfig/vorbisfile.pc +14 -0
  35. package/lib/pkgconfig/vpx.pc +14 -0
  36. package/package.json +2 -3
  37. package/include/aom/aom.h +0 -127
  38. package/include/aom/aom_codec.h +0 -594
  39. package/include/aom/aom_decoder.h +0 -257
  40. package/include/aom/aom_encoder.h +0 -1154
  41. package/include/aom/aom_external_partition.h +0 -452
  42. package/include/aom/aom_frame_buffer.h +0 -84
  43. package/include/aom/aom_image.h +0 -462
  44. package/include/aom/aom_integer.h +0 -60
  45. package/include/aom/aomcx.h +0 -2288
  46. package/include/aom/aomdx.h +0 -607
  47. package/include/dav1d/common.h +0 -94
  48. package/include/dav1d/data.h +0 -117
  49. package/include/dav1d/dav1d.h +0 -329
  50. package/include/dav1d/headers.h +0 -444
  51. package/include/dav1d/picture.h +0 -157
  52. package/include/dav1d/version.h +0 -50
  53. package/include/lame/lame.h +0 -1342
  54. package/include/libavcodec/ac3_parser.h +0 -36
  55. package/include/libavcodec/adts_parser.h +0 -37
  56. package/include/libavcodec/avcodec.h +0 -3128
  57. package/include/libavcodec/avdct.h +0 -88
  58. package/include/libavcodec/avfft.h +0 -149
  59. package/include/libavcodec/bsf.h +0 -332
  60. package/include/libavcodec/codec.h +0 -382
  61. package/include/libavcodec/codec_desc.h +0 -134
  62. package/include/libavcodec/codec_id.h +0 -669
  63. package/include/libavcodec/codec_par.h +0 -248
  64. package/include/libavcodec/d3d11va.h +0 -109
  65. package/include/libavcodec/defs.h +0 -337
  66. package/include/libavcodec/dirac.h +0 -135
  67. package/include/libavcodec/dv_profile.h +0 -82
  68. package/include/libavcodec/dxva2.h +0 -90
  69. package/include/libavcodec/jni.h +0 -67
  70. package/include/libavcodec/mediacodec.h +0 -103
  71. package/include/libavcodec/packet.h +0 -887
  72. package/include/libavcodec/qsv.h +0 -109
  73. package/include/libavcodec/vdpau.h +0 -171
  74. package/include/libavcodec/version.h +0 -45
  75. package/include/libavcodec/version_major.h +0 -52
  76. package/include/libavcodec/videotoolbox.h +0 -85
  77. package/include/libavcodec/vorbis_parser.h +0 -74
  78. package/include/libavdevice/avdevice.h +0 -397
  79. package/include/libavdevice/version.h +0 -45
  80. package/include/libavdevice/version_major.h +0 -43
  81. package/include/libavfilter/avfilter.h +0 -1379
  82. package/include/libavfilter/buffersink.h +0 -173
  83. package/include/libavfilter/buffersrc.h +0 -215
  84. package/include/libavfilter/version.h +0 -48
  85. package/include/libavfilter/version_major.h +0 -40
  86. package/include/libavformat/avformat.h +0 -3107
  87. package/include/libavformat/avio.h +0 -831
  88. package/include/libavformat/version.h +0 -47
  89. package/include/libavformat/version_major.h +0 -54
  90. package/include/libavutil/adler32.h +0 -63
  91. package/include/libavutil/aes.h +0 -69
  92. package/include/libavutil/aes_ctr.h +0 -99
  93. package/include/libavutil/ambient_viewing_environment.h +0 -72
  94. package/include/libavutil/attributes.h +0 -173
  95. package/include/libavutil/audio_fifo.h +0 -187
  96. package/include/libavutil/avassert.h +0 -78
  97. package/include/libavutil/avconfig.h +0 -6
  98. package/include/libavutil/avstring.h +0 -428
  99. package/include/libavutil/avutil.h +0 -362
  100. package/include/libavutil/base64.h +0 -72
  101. package/include/libavutil/blowfish.h +0 -82
  102. package/include/libavutil/bprint.h +0 -254
  103. package/include/libavutil/bswap.h +0 -105
  104. package/include/libavutil/buffer.h +0 -322
  105. package/include/libavutil/camellia.h +0 -70
  106. package/include/libavutil/cast5.h +0 -80
  107. package/include/libavutil/channel_layout.h +0 -751
  108. package/include/libavutil/common.h +0 -589
  109. package/include/libavutil/cpu.h +0 -145
  110. package/include/libavutil/crc.h +0 -102
  111. package/include/libavutil/csp.h +0 -150
  112. package/include/libavutil/des.h +0 -81
  113. package/include/libavutil/detection_bbox.h +0 -108
  114. package/include/libavutil/dict.h +0 -241
  115. package/include/libavutil/display.h +0 -109
  116. package/include/libavutil/dovi_meta.h +0 -396
  117. package/include/libavutil/downmix_info.h +0 -115
  118. package/include/libavutil/encryption_info.h +0 -205
  119. package/include/libavutil/error.h +0 -129
  120. package/include/libavutil/eval.h +0 -140
  121. package/include/libavutil/executor.h +0 -67
  122. package/include/libavutil/ffversion.h +0 -5
  123. package/include/libavutil/fifo.h +0 -242
  124. package/include/libavutil/file.h +0 -62
  125. package/include/libavutil/film_grain_params.h +0 -322
  126. package/include/libavutil/frame.h +0 -1175
  127. package/include/libavutil/hash.h +0 -264
  128. package/include/libavutil/hdr_dynamic_metadata.h +0 -376
  129. package/include/libavutil/hdr_dynamic_vivid_metadata.h +0 -346
  130. package/include/libavutil/hmac.h +0 -99
  131. package/include/libavutil/hwcontext.h +0 -598
  132. package/include/libavutil/hwcontext_cuda.h +0 -74
  133. package/include/libavutil/hwcontext_d3d11va.h +0 -178
  134. package/include/libavutil/hwcontext_d3d12va.h +0 -142
  135. package/include/libavutil/hwcontext_drm.h +0 -169
  136. package/include/libavutil/hwcontext_dxva2.h +0 -75
  137. package/include/libavutil/hwcontext_mediacodec.h +0 -61
  138. package/include/libavutil/hwcontext_opencl.h +0 -100
  139. package/include/libavutil/hwcontext_qsv.h +0 -87
  140. package/include/libavutil/hwcontext_vaapi.h +0 -117
  141. package/include/libavutil/hwcontext_vdpau.h +0 -44
  142. package/include/libavutil/hwcontext_videotoolbox.h +0 -106
  143. package/include/libavutil/hwcontext_vulkan.h +0 -382
  144. package/include/libavutil/iamf.h +0 -690
  145. package/include/libavutil/imgutils.h +0 -377
  146. package/include/libavutil/intfloat.h +0 -77
  147. package/include/libavutil/intreadwrite.h +0 -677
  148. package/include/libavutil/lfg.h +0 -81
  149. package/include/libavutil/log.h +0 -387
  150. package/include/libavutil/lzo.h +0 -66
  151. package/include/libavutil/macros.h +0 -80
  152. package/include/libavutil/mastering_display_metadata.h +0 -137
  153. package/include/libavutil/mathematics.h +0 -300
  154. package/include/libavutil/md5.h +0 -89
  155. package/include/libavutil/mem.h +0 -607
  156. package/include/libavutil/motion_vector.h +0 -57
  157. package/include/libavutil/murmur3.h +0 -115
  158. package/include/libavutil/opt.h +0 -1187
  159. package/include/libavutil/parseutils.h +0 -197
  160. package/include/libavutil/pixdesc.h +0 -440
  161. package/include/libavutil/pixelutils.h +0 -51
  162. package/include/libavutil/pixfmt.h +0 -716
  163. package/include/libavutil/random_seed.h +0 -57
  164. package/include/libavutil/rational.h +0 -225
  165. package/include/libavutil/rc4.h +0 -69
  166. package/include/libavutil/replaygain.h +0 -50
  167. package/include/libavutil/ripemd.h +0 -83
  168. package/include/libavutil/samplefmt.h +0 -269
  169. package/include/libavutil/sha.h +0 -90
  170. package/include/libavutil/sha512.h +0 -92
  171. package/include/libavutil/spherical.h +0 -243
  172. package/include/libavutil/stereo3d.h +0 -325
  173. package/include/libavutil/tea.h +0 -71
  174. package/include/libavutil/threadmessage.h +0 -115
  175. package/include/libavutil/time.h +0 -56
  176. package/include/libavutil/timecode.h +0 -199
  177. package/include/libavutil/timestamp.h +0 -85
  178. package/include/libavutil/tree.h +0 -137
  179. package/include/libavutil/twofish.h +0 -70
  180. package/include/libavutil/tx.h +0 -210
  181. package/include/libavutil/uuid.h +0 -146
  182. package/include/libavutil/version.h +0 -124
  183. package/include/libavutil/video_enc_params.h +0 -171
  184. package/include/libavutil/video_hint.h +0 -107
  185. package/include/libavutil/xtea.h +0 -94
  186. package/include/libswresample/swresample.h +0 -587
  187. package/include/libswresample/version.h +0 -46
  188. package/include/libswresample/version_major.h +0 -31
  189. package/include/libswscale/swscale.h +0 -460
  190. package/include/libswscale/version.h +0 -44
  191. package/include/libswscale/version_major.h +0 -35
  192. package/include/ogg/config_types.h +0 -26
  193. package/include/ogg/ogg.h +0 -209
  194. package/include/ogg/os_types.h +0 -158
  195. package/include/opus/opus.h +0 -1099
  196. package/include/opus/opus_defines.h +0 -830
  197. package/include/opus/opus_multistream.h +0 -660
  198. package/include/opus/opus_projection.h +0 -568
  199. package/include/opus/opus_types.h +0 -166
  200. package/include/svt-av1/EbDebugMacros.h +0 -88
  201. package/include/svt-av1/EbSvtAv1.h +0 -462
  202. package/include/svt-av1/EbSvtAv1Enc.h +0 -1112
  203. package/include/svt-av1/EbSvtAv1ErrorCodes.h +0 -67
  204. package/include/svt-av1/EbSvtAv1ExtFrameBuf.h +0 -64
  205. package/include/svt-av1/EbSvtAv1Formats.h +0 -126
  206. package/include/svt-av1/EbSvtAv1Metadata.h +0 -156
  207. package/include/vorbis/codec.h +0 -242
  208. package/include/vorbis/vorbisenc.h +0 -435
  209. package/include/vorbis/vorbisfile.h +0 -205
  210. package/include/vpx/vp8.h +0 -136
  211. package/include/vpx/vp8cx.h +0 -1118
  212. package/include/vpx/vp8dx.h +0 -228
  213. package/include/vpx/vpx_codec.h +0 -475
  214. package/include/vpx/vpx_decoder.h +0 -367
  215. package/include/vpx/vpx_encoder.h +0 -1150
  216. package/include/vpx/vpx_ext_ratectrl.h +0 -590
  217. package/include/vpx/vpx_frame_buffer.h +0 -83
  218. package/include/vpx/vpx_image.h +0 -221
  219. package/include/vpx/vpx_integer.h +0 -40
  220. package/include/vpx/vpx_tpl.h +0 -68
  221. /package/{include → lib/pkgconfig}/index.js +0 -0
@@ -1,325 +0,0 @@
1
- /*
2
- * Copyright (c) 2013 Vittorio Giovara <vittorio.giovara@gmail.com>
3
- *
4
- * This file is part of FFmpeg.
5
- *
6
- * FFmpeg is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU Lesser General Public
8
- * License as published by the Free Software Foundation; either
9
- * version 2.1 of the License, or (at your option) any later version.
10
- *
11
- * FFmpeg is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- * Lesser General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Lesser General Public
17
- * License along with FFmpeg; if not, write to the Free Software
18
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
- */
20
-
21
- /**
22
- * @file
23
- * @ingroup lavu_video_stereo3d
24
- * Stereoscopic video
25
- */
26
-
27
- #ifndef AVUTIL_STEREO3D_H
28
- #define AVUTIL_STEREO3D_H
29
-
30
- #include <stdint.h>
31
-
32
- #include "frame.h"
33
-
34
- /**
35
- * @defgroup lavu_video_stereo3d Stereo3D types and functions
36
- * @ingroup lavu_video
37
- *
38
- * A stereoscopic video file consists in multiple views embedded in a single
39
- * frame, usually describing two views of a scene. This file describes all
40
- * possible codec-independent view arrangements.
41
- *
42
- * @{
43
- */
44
-
45
- /**
46
- * List of possible 3D Types
47
- */
48
- enum AVStereo3DType {
49
- /**
50
- * Video is not stereoscopic (and metadata has to be there).
51
- */
52
- AV_STEREO3D_2D,
53
-
54
- /**
55
- * Views are next to each other.
56
- *
57
- * @code{.unparsed}
58
- * LLLLRRRR
59
- * LLLLRRRR
60
- * LLLLRRRR
61
- * ...
62
- * @endcode
63
- */
64
- AV_STEREO3D_SIDEBYSIDE,
65
-
66
- /**
67
- * Views are on top of each other.
68
- *
69
- * @code{.unparsed}
70
- * LLLLLLLL
71
- * LLLLLLLL
72
- * RRRRRRRR
73
- * RRRRRRRR
74
- * @endcode
75
- */
76
- AV_STEREO3D_TOPBOTTOM,
77
-
78
- /**
79
- * Views are alternated temporally.
80
- *
81
- * @code{.unparsed}
82
- * frame0 frame1 frame2 ...
83
- * LLLLLLLL RRRRRRRR LLLLLLLL
84
- * LLLLLLLL RRRRRRRR LLLLLLLL
85
- * LLLLLLLL RRRRRRRR LLLLLLLL
86
- * ... ... ...
87
- * @endcode
88
- */
89
- AV_STEREO3D_FRAMESEQUENCE,
90
-
91
- /**
92
- * Views are packed in a checkerboard-like structure per pixel.
93
- *
94
- * @code{.unparsed}
95
- * LRLRLRLR
96
- * RLRLRLRL
97
- * LRLRLRLR
98
- * ...
99
- * @endcode
100
- */
101
- AV_STEREO3D_CHECKERBOARD,
102
-
103
- /**
104
- * Views are next to each other, but when upscaling
105
- * apply a checkerboard pattern.
106
- *
107
- * @code{.unparsed}
108
- * LLLLRRRR L L L L R R R R
109
- * LLLLRRRR => L L L L R R R R
110
- * LLLLRRRR L L L L R R R R
111
- * LLLLRRRR L L L L R R R R
112
- * @endcode
113
- */
114
- AV_STEREO3D_SIDEBYSIDE_QUINCUNX,
115
-
116
- /**
117
- * Views are packed per line, as if interlaced.
118
- *
119
- * @code{.unparsed}
120
- * LLLLLLLL
121
- * RRRRRRRR
122
- * LLLLLLLL
123
- * ...
124
- * @endcode
125
- */
126
- AV_STEREO3D_LINES,
127
-
128
- /**
129
- * Views are packed per column.
130
- *
131
- * @code{.unparsed}
132
- * LRLRLRLR
133
- * LRLRLRLR
134
- * LRLRLRLR
135
- * ...
136
- * @endcode
137
- */
138
- AV_STEREO3D_COLUMNS,
139
-
140
- /**
141
- * Video is stereoscopic but the packing is unspecified.
142
- */
143
- AV_STEREO3D_UNSPEC,
144
- };
145
-
146
- /**
147
- * List of possible view types.
148
- */
149
- enum AVStereo3DView {
150
- /**
151
- * Frame contains two packed views.
152
- */
153
- AV_STEREO3D_VIEW_PACKED,
154
-
155
- /**
156
- * Frame contains only the left view.
157
- */
158
- AV_STEREO3D_VIEW_LEFT,
159
-
160
- /**
161
- * Frame contains only the right view.
162
- */
163
- AV_STEREO3D_VIEW_RIGHT,
164
-
165
- /**
166
- * Content is unspecified.
167
- */
168
- AV_STEREO3D_VIEW_UNSPEC,
169
- };
170
-
171
- /**
172
- * List of possible primary eyes.
173
- */
174
- enum AVStereo3DPrimaryEye {
175
- /**
176
- * Neither eye.
177
- */
178
- AV_PRIMARY_EYE_NONE,
179
-
180
- /**
181
- * Left eye.
182
- */
183
- AV_PRIMARY_EYE_LEFT,
184
-
185
- /**
186
- * Right eye
187
- */
188
- AV_PRIMARY_EYE_RIGHT,
189
- };
190
-
191
- /**
192
- * Inverted views, Right/Bottom represents the left view.
193
- */
194
- #define AV_STEREO3D_FLAG_INVERT (1 << 0)
195
-
196
- /**
197
- * Stereo 3D type: this structure describes how two videos are packed
198
- * within a single video surface, with additional information as needed.
199
- *
200
- * @note The struct must be allocated with av_stereo3d_alloc() and
201
- * its size is not a part of the public ABI.
202
- */
203
- typedef struct AVStereo3D {
204
- /**
205
- * How views are packed within the video.
206
- */
207
- enum AVStereo3DType type;
208
-
209
- /**
210
- * Additional information about the frame packing.
211
- */
212
- int flags;
213
-
214
- /**
215
- * Determines which views are packed.
216
- */
217
- enum AVStereo3DView view;
218
-
219
- /**
220
- * Which eye is the primary eye when rendering in 2D.
221
- */
222
- enum AVStereo3DPrimaryEye primary_eye;
223
-
224
- /**
225
- * The distance between the centres of the lenses of the camera system,
226
- * in micrometers. Zero if unset.
227
- */
228
- uint32_t baseline;
229
-
230
- /**
231
- * Relative shift of the left and right images, which changes the zero parallax plane.
232
- * Range is -1.0 to 1.0. Zero if unset.
233
- */
234
- AVRational horizontal_disparity_adjustment;
235
-
236
- /**
237
- * Horizontal field of view, in degrees. Zero if unset.
238
- */
239
- AVRational horizontal_field_of_view;
240
- } AVStereo3D;
241
-
242
- /**
243
- * Allocate an AVStereo3D structure and set its fields to default values.
244
- * The resulting struct can be freed using av_freep().
245
- *
246
- * @return An AVStereo3D filled with default values or NULL on failure.
247
- */
248
- AVStereo3D *av_stereo3d_alloc(void);
249
-
250
- /**
251
- * Allocate an AVStereo3D structure and set its fields to default values.
252
- * The resulting struct can be freed using av_freep().
253
- *
254
- * @return An AVStereo3D filled with default values or NULL on failure.
255
- */
256
- AVStereo3D *av_stereo3d_alloc_size(size_t *size);
257
-
258
- /**
259
- * Allocate a complete AVFrameSideData and add it to the frame.
260
- *
261
- * @param frame The frame which side data is added to.
262
- *
263
- * @return The AVStereo3D structure to be filled by caller.
264
- */
265
- AVStereo3D *av_stereo3d_create_side_data(AVFrame *frame);
266
-
267
- /**
268
- * Provide a human-readable name of a given stereo3d type.
269
- *
270
- * @param type The input stereo3d type value.
271
- *
272
- * @return The name of the stereo3d value, or "unknown".
273
- */
274
- const char *av_stereo3d_type_name(unsigned int type);
275
-
276
- /**
277
- * Get the AVStereo3DType form a human-readable name.
278
- *
279
- * @param name The input string.
280
- *
281
- * @return The AVStereo3DType value, or -1 if not found.
282
- */
283
- int av_stereo3d_from_name(const char *name);
284
-
285
- /**
286
- * Provide a human-readable name of a given stereo3d view.
287
- *
288
- * @param type The input stereo3d view value.
289
- *
290
- * @return The name of the stereo3d view value, or "unknown".
291
- */
292
- const char *av_stereo3d_view_name(unsigned int view);
293
-
294
- /**
295
- * Get the AVStereo3DView form a human-readable name.
296
- *
297
- * @param name The input string.
298
- *
299
- * @return The AVStereo3DView value, or -1 if not found.
300
- */
301
- int av_stereo3d_view_from_name(const char *name);
302
-
303
- /**
304
- * Provide a human-readable name of a given stereo3d primary eye.
305
- *
306
- * @param type The input stereo3d primary eye value.
307
- *
308
- * @return The name of the stereo3d primary eye value, or "unknown".
309
- */
310
- const char *av_stereo3d_primary_eye_name(unsigned int eye);
311
-
312
- /**
313
- * Get the AVStereo3DPrimaryEye form a human-readable name.
314
- *
315
- * @param name The input string.
316
- *
317
- * @return The AVStereo3DPrimaryEye value, or -1 if not found.
318
- */
319
- int av_stereo3d_primary_eye_from_name(const char *name);
320
-
321
- /**
322
- * @}
323
- */
324
-
325
- #endif /* AVUTIL_STEREO3D_H */
@@ -1,71 +0,0 @@
1
- /*
2
- * A 32-bit implementation of the TEA algorithm
3
- * Copyright (c) 2015 Vesselin Bontchev
4
- *
5
- * This file is part of FFmpeg.
6
- *
7
- * FFmpeg is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * FFmpeg is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with FFmpeg; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef AVUTIL_TEA_H
23
- #define AVUTIL_TEA_H
24
-
25
- #include <stdint.h>
26
-
27
- /**
28
- * @file
29
- * @brief Public header for libavutil TEA algorithm
30
- * @defgroup lavu_tea TEA
31
- * @ingroup lavu_crypto
32
- * @{
33
- */
34
-
35
- extern const int av_tea_size;
36
-
37
- struct AVTEA;
38
-
39
- /**
40
- * Allocate an AVTEA context
41
- * To free the struct: av_free(ptr)
42
- */
43
- struct AVTEA *av_tea_alloc(void);
44
-
45
- /**
46
- * Initialize an AVTEA context.
47
- *
48
- * @param ctx an AVTEA context
49
- * @param key a key of 16 bytes used for encryption/decryption
50
- * @param rounds the number of rounds in TEA (64 is the "standard")
51
- */
52
- void av_tea_init(struct AVTEA *ctx, const uint8_t key[16], int rounds);
53
-
54
- /**
55
- * Encrypt or decrypt a buffer using a previously initialized context.
56
- *
57
- * @param ctx an AVTEA context
58
- * @param dst destination array, can be equal to src
59
- * @param src source array, can be equal to dst
60
- * @param count number of 8 byte blocks
61
- * @param iv initialization vector for CBC mode, if NULL then ECB will be used
62
- * @param decrypt 0 for encryption, 1 for decryption
63
- */
64
- void av_tea_crypt(struct AVTEA *ctx, uint8_t *dst, const uint8_t *src,
65
- int count, uint8_t *iv, int decrypt);
66
-
67
- /**
68
- * @}
69
- */
70
-
71
- #endif /* AVUTIL_TEA_H */
@@ -1,115 +0,0 @@
1
- /*
2
- * This file is part of FFmpeg.
3
- *
4
- * FFmpeg is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU Lesser General Public License
6
- * as published by the Free Software Foundation; either
7
- * version 2.1 of the License, or (at your option) any later version.
8
- *
9
- * FFmpeg is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Lesser General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU Lesser General Public License
15
- * along with FFmpeg; if not, write to the Free Software Foundation, Inc.,
16
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
- */
18
-
19
- #ifndef AVUTIL_THREADMESSAGE_H
20
- #define AVUTIL_THREADMESSAGE_H
21
-
22
- typedef struct AVThreadMessageQueue AVThreadMessageQueue;
23
-
24
- typedef enum AVThreadMessageFlags {
25
-
26
- /**
27
- * Perform non-blocking operation.
28
- * If this flag is set, send and recv operations are non-blocking and
29
- * return AVERROR(EAGAIN) immediately if they can not proceed.
30
- */
31
- AV_THREAD_MESSAGE_NONBLOCK = 1,
32
-
33
- } AVThreadMessageFlags;
34
-
35
- /**
36
- * Allocate a new message queue.
37
- *
38
- * @param mq pointer to the message queue
39
- * @param nelem maximum number of elements in the queue
40
- * @param elsize size of each element in the queue
41
- * @return >=0 for success; <0 for error, in particular AVERROR(ENOSYS) if
42
- * lavu was built without thread support
43
- */
44
- int av_thread_message_queue_alloc(AVThreadMessageQueue **mq,
45
- unsigned nelem,
46
- unsigned elsize);
47
-
48
- /**
49
- * Free a message queue.
50
- *
51
- * The message queue must no longer be in use by another thread.
52
- */
53
- void av_thread_message_queue_free(AVThreadMessageQueue **mq);
54
-
55
- /**
56
- * Send a message on the queue.
57
- */
58
- int av_thread_message_queue_send(AVThreadMessageQueue *mq,
59
- void *msg,
60
- unsigned flags);
61
-
62
- /**
63
- * Receive a message from the queue.
64
- */
65
- int av_thread_message_queue_recv(AVThreadMessageQueue *mq,
66
- void *msg,
67
- unsigned flags);
68
-
69
- /**
70
- * Set the sending error code.
71
- *
72
- * If the error code is set to non-zero, av_thread_message_queue_send() will
73
- * return it immediately. Conventional values, such as AVERROR_EOF or
74
- * AVERROR(EAGAIN), can be used to cause the sending thread to stop or
75
- * suspend its operation.
76
- */
77
- void av_thread_message_queue_set_err_send(AVThreadMessageQueue *mq,
78
- int err);
79
-
80
- /**
81
- * Set the receiving error code.
82
- *
83
- * If the error code is set to non-zero, av_thread_message_queue_recv() will
84
- * return it immediately when there are no longer available messages.
85
- * Conventional values, such as AVERROR_EOF or AVERROR(EAGAIN), can be used
86
- * to cause the receiving thread to stop or suspend its operation.
87
- */
88
- void av_thread_message_queue_set_err_recv(AVThreadMessageQueue *mq,
89
- int err);
90
-
91
- /**
92
- * Set the optional free message callback function which will be called if an
93
- * operation is removing messages from the queue.
94
- */
95
- void av_thread_message_queue_set_free_func(AVThreadMessageQueue *mq,
96
- void (*free_func)(void *msg));
97
-
98
- /**
99
- * Return the current number of messages in the queue.
100
- *
101
- * @return the current number of messages or AVERROR(ENOSYS) if lavu was built
102
- * without thread support
103
- */
104
- int av_thread_message_queue_nb_elems(AVThreadMessageQueue *mq);
105
-
106
- /**
107
- * Flush the message queue
108
- *
109
- * This function is mostly equivalent to reading and free-ing every message
110
- * except that it will be done in a single operation (no lock/unlock between
111
- * reads).
112
- */
113
- void av_thread_message_flush(AVThreadMessageQueue *mq);
114
-
115
- #endif /* AVUTIL_THREADMESSAGE_H */
@@ -1,56 +0,0 @@
1
- /*
2
- * Copyright (c) 2000-2003 Fabrice Bellard
3
- *
4
- * This file is part of FFmpeg.
5
- *
6
- * FFmpeg is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU Lesser General Public
8
- * License as published by the Free Software Foundation; either
9
- * version 2.1 of the License, or (at your option) any later version.
10
- *
11
- * FFmpeg is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- * Lesser General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Lesser General Public
17
- * License along with FFmpeg; if not, write to the Free Software
18
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
- */
20
-
21
- #ifndef AVUTIL_TIME_H
22
- #define AVUTIL_TIME_H
23
-
24
- #include <stdint.h>
25
-
26
- /**
27
- * Get the current time in microseconds.
28
- */
29
- int64_t av_gettime(void);
30
-
31
- /**
32
- * Get the current time in microseconds since some unspecified starting point.
33
- * On platforms that support it, the time comes from a monotonic clock
34
- * This property makes this time source ideal for measuring relative time.
35
- * The returned values may not be monotonic on platforms where a monotonic
36
- * clock is not available.
37
- */
38
- int64_t av_gettime_relative(void);
39
-
40
- /**
41
- * Indicates with a boolean result if the av_gettime_relative() time source
42
- * is monotonic.
43
- */
44
- int av_gettime_relative_is_monotonic(void);
45
-
46
- /**
47
- * Sleep for a period of time. Although the duration is expressed in
48
- * microseconds, the actual delay may be rounded to the precision of the
49
- * system timer.
50
- *
51
- * @param usec Number of microseconds to sleep.
52
- * @return zero on success or (negative) error code.
53
- */
54
- int av_usleep(unsigned usec);
55
-
56
- #endif /* AVUTIL_TIME_H */