@pproenca/ffmpeg-darwin-arm64-gpl 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 (234) hide show
  1. package/LICENSE +117 -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/libpostproc.a +0 -0
  14. package/lib/libswresample.a +0 -0
  15. package/lib/libswscale.a +0 -0
  16. package/lib/libvorbis.a +0 -0
  17. package/lib/libvorbisenc.a +0 -0
  18. package/lib/libvorbisfile.a +0 -0
  19. package/lib/libvpx.a +0 -0
  20. package/lib/libx264.a +0 -0
  21. package/lib/libx265.a +0 -0
  22. package/lib/pkgconfig/SvtAv1Enc.pc +12 -0
  23. package/lib/pkgconfig/aom.pc +14 -0
  24. package/lib/pkgconfig/dav1d.pc +9 -0
  25. package/lib/pkgconfig/libavcodec.pc +14 -0
  26. package/lib/pkgconfig/libavdevice.pc +14 -0
  27. package/lib/pkgconfig/libavfilter.pc +14 -0
  28. package/lib/pkgconfig/libavformat.pc +14 -0
  29. package/lib/pkgconfig/libavutil.pc +14 -0
  30. package/lib/pkgconfig/libpostproc.pc +14 -0
  31. package/lib/pkgconfig/libswresample.pc +14 -0
  32. package/lib/pkgconfig/libswscale.pc +14 -0
  33. package/lib/pkgconfig/mp3lame.pc +11 -0
  34. package/lib/pkgconfig/ogg.pc +14 -0
  35. package/lib/pkgconfig/opus.pc +16 -0
  36. package/lib/pkgconfig/vorbis.pc +15 -0
  37. package/lib/pkgconfig/vorbisenc.pc +14 -0
  38. package/lib/pkgconfig/vorbisfile.pc +14 -0
  39. package/lib/pkgconfig/vpx.pc +14 -0
  40. package/lib/pkgconfig/x264.pc +11 -0
  41. package/lib/pkgconfig/x265.pc +11 -0
  42. package/package.json +2 -3
  43. package/include/aom/aom.h +0 -127
  44. package/include/aom/aom_codec.h +0 -594
  45. package/include/aom/aom_decoder.h +0 -257
  46. package/include/aom/aom_encoder.h +0 -1154
  47. package/include/aom/aom_external_partition.h +0 -452
  48. package/include/aom/aom_frame_buffer.h +0 -84
  49. package/include/aom/aom_image.h +0 -462
  50. package/include/aom/aom_integer.h +0 -60
  51. package/include/aom/aomcx.h +0 -2288
  52. package/include/aom/aomdx.h +0 -607
  53. package/include/dav1d/common.h +0 -94
  54. package/include/dav1d/data.h +0 -117
  55. package/include/dav1d/dav1d.h +0 -329
  56. package/include/dav1d/headers.h +0 -444
  57. package/include/dav1d/picture.h +0 -157
  58. package/include/dav1d/version.h +0 -50
  59. package/include/lame/lame.h +0 -1342
  60. package/include/libavcodec/ac3_parser.h +0 -36
  61. package/include/libavcodec/adts_parser.h +0 -37
  62. package/include/libavcodec/avcodec.h +0 -3128
  63. package/include/libavcodec/avdct.h +0 -88
  64. package/include/libavcodec/avfft.h +0 -149
  65. package/include/libavcodec/bsf.h +0 -332
  66. package/include/libavcodec/codec.h +0 -382
  67. package/include/libavcodec/codec_desc.h +0 -134
  68. package/include/libavcodec/codec_id.h +0 -669
  69. package/include/libavcodec/codec_par.h +0 -248
  70. package/include/libavcodec/d3d11va.h +0 -109
  71. package/include/libavcodec/defs.h +0 -337
  72. package/include/libavcodec/dirac.h +0 -135
  73. package/include/libavcodec/dv_profile.h +0 -82
  74. package/include/libavcodec/dxva2.h +0 -90
  75. package/include/libavcodec/jni.h +0 -67
  76. package/include/libavcodec/mediacodec.h +0 -103
  77. package/include/libavcodec/packet.h +0 -887
  78. package/include/libavcodec/qsv.h +0 -109
  79. package/include/libavcodec/vdpau.h +0 -171
  80. package/include/libavcodec/version.h +0 -45
  81. package/include/libavcodec/version_major.h +0 -52
  82. package/include/libavcodec/videotoolbox.h +0 -85
  83. package/include/libavcodec/vorbis_parser.h +0 -74
  84. package/include/libavdevice/avdevice.h +0 -397
  85. package/include/libavdevice/version.h +0 -45
  86. package/include/libavdevice/version_major.h +0 -43
  87. package/include/libavfilter/avfilter.h +0 -1379
  88. package/include/libavfilter/buffersink.h +0 -173
  89. package/include/libavfilter/buffersrc.h +0 -215
  90. package/include/libavfilter/version.h +0 -48
  91. package/include/libavfilter/version_major.h +0 -40
  92. package/include/libavformat/avformat.h +0 -3107
  93. package/include/libavformat/avio.h +0 -831
  94. package/include/libavformat/version.h +0 -47
  95. package/include/libavformat/version_major.h +0 -54
  96. package/include/libavutil/adler32.h +0 -63
  97. package/include/libavutil/aes.h +0 -69
  98. package/include/libavutil/aes_ctr.h +0 -99
  99. package/include/libavutil/ambient_viewing_environment.h +0 -72
  100. package/include/libavutil/attributes.h +0 -173
  101. package/include/libavutil/audio_fifo.h +0 -187
  102. package/include/libavutil/avassert.h +0 -78
  103. package/include/libavutil/avconfig.h +0 -6
  104. package/include/libavutil/avstring.h +0 -428
  105. package/include/libavutil/avutil.h +0 -362
  106. package/include/libavutil/base64.h +0 -72
  107. package/include/libavutil/blowfish.h +0 -82
  108. package/include/libavutil/bprint.h +0 -254
  109. package/include/libavutil/bswap.h +0 -105
  110. package/include/libavutil/buffer.h +0 -322
  111. package/include/libavutil/camellia.h +0 -70
  112. package/include/libavutil/cast5.h +0 -80
  113. package/include/libavutil/channel_layout.h +0 -751
  114. package/include/libavutil/common.h +0 -589
  115. package/include/libavutil/cpu.h +0 -145
  116. package/include/libavutil/crc.h +0 -102
  117. package/include/libavutil/csp.h +0 -150
  118. package/include/libavutil/des.h +0 -81
  119. package/include/libavutil/detection_bbox.h +0 -108
  120. package/include/libavutil/dict.h +0 -241
  121. package/include/libavutil/display.h +0 -109
  122. package/include/libavutil/dovi_meta.h +0 -396
  123. package/include/libavutil/downmix_info.h +0 -115
  124. package/include/libavutil/encryption_info.h +0 -205
  125. package/include/libavutil/error.h +0 -129
  126. package/include/libavutil/eval.h +0 -140
  127. package/include/libavutil/executor.h +0 -67
  128. package/include/libavutil/ffversion.h +0 -5
  129. package/include/libavutil/fifo.h +0 -242
  130. package/include/libavutil/file.h +0 -62
  131. package/include/libavutil/film_grain_params.h +0 -322
  132. package/include/libavutil/frame.h +0 -1175
  133. package/include/libavutil/hash.h +0 -264
  134. package/include/libavutil/hdr_dynamic_metadata.h +0 -376
  135. package/include/libavutil/hdr_dynamic_vivid_metadata.h +0 -346
  136. package/include/libavutil/hmac.h +0 -99
  137. package/include/libavutil/hwcontext.h +0 -598
  138. package/include/libavutil/hwcontext_cuda.h +0 -74
  139. package/include/libavutil/hwcontext_d3d11va.h +0 -178
  140. package/include/libavutil/hwcontext_d3d12va.h +0 -142
  141. package/include/libavutil/hwcontext_drm.h +0 -169
  142. package/include/libavutil/hwcontext_dxva2.h +0 -75
  143. package/include/libavutil/hwcontext_mediacodec.h +0 -61
  144. package/include/libavutil/hwcontext_opencl.h +0 -100
  145. package/include/libavutil/hwcontext_qsv.h +0 -87
  146. package/include/libavutil/hwcontext_vaapi.h +0 -117
  147. package/include/libavutil/hwcontext_vdpau.h +0 -44
  148. package/include/libavutil/hwcontext_videotoolbox.h +0 -106
  149. package/include/libavutil/hwcontext_vulkan.h +0 -382
  150. package/include/libavutil/iamf.h +0 -690
  151. package/include/libavutil/imgutils.h +0 -377
  152. package/include/libavutil/intfloat.h +0 -77
  153. package/include/libavutil/intreadwrite.h +0 -677
  154. package/include/libavutil/lfg.h +0 -81
  155. package/include/libavutil/log.h +0 -387
  156. package/include/libavutil/lzo.h +0 -66
  157. package/include/libavutil/macros.h +0 -80
  158. package/include/libavutil/mastering_display_metadata.h +0 -137
  159. package/include/libavutil/mathematics.h +0 -300
  160. package/include/libavutil/md5.h +0 -89
  161. package/include/libavutil/mem.h +0 -607
  162. package/include/libavutil/motion_vector.h +0 -57
  163. package/include/libavutil/murmur3.h +0 -115
  164. package/include/libavutil/opt.h +0 -1187
  165. package/include/libavutil/parseutils.h +0 -197
  166. package/include/libavutil/pixdesc.h +0 -440
  167. package/include/libavutil/pixelutils.h +0 -51
  168. package/include/libavutil/pixfmt.h +0 -716
  169. package/include/libavutil/random_seed.h +0 -57
  170. package/include/libavutil/rational.h +0 -225
  171. package/include/libavutil/rc4.h +0 -69
  172. package/include/libavutil/replaygain.h +0 -50
  173. package/include/libavutil/ripemd.h +0 -83
  174. package/include/libavutil/samplefmt.h +0 -269
  175. package/include/libavutil/sha.h +0 -90
  176. package/include/libavutil/sha512.h +0 -92
  177. package/include/libavutil/spherical.h +0 -243
  178. package/include/libavutil/stereo3d.h +0 -325
  179. package/include/libavutil/tea.h +0 -71
  180. package/include/libavutil/threadmessage.h +0 -115
  181. package/include/libavutil/time.h +0 -56
  182. package/include/libavutil/timecode.h +0 -199
  183. package/include/libavutil/timestamp.h +0 -85
  184. package/include/libavutil/tree.h +0 -137
  185. package/include/libavutil/twofish.h +0 -70
  186. package/include/libavutil/tx.h +0 -210
  187. package/include/libavutil/uuid.h +0 -146
  188. package/include/libavutil/version.h +0 -124
  189. package/include/libavutil/video_enc_params.h +0 -171
  190. package/include/libavutil/video_hint.h +0 -107
  191. package/include/libavutil/xtea.h +0 -94
  192. package/include/libpostproc/postprocess.h +0 -107
  193. package/include/libpostproc/version.h +0 -46
  194. package/include/libpostproc/version_major.h +0 -31
  195. package/include/libswresample/swresample.h +0 -587
  196. package/include/libswresample/version.h +0 -46
  197. package/include/libswresample/version_major.h +0 -31
  198. package/include/libswscale/swscale.h +0 -460
  199. package/include/libswscale/version.h +0 -44
  200. package/include/libswscale/version_major.h +0 -35
  201. package/include/ogg/config_types.h +0 -26
  202. package/include/ogg/ogg.h +0 -209
  203. package/include/ogg/os_types.h +0 -158
  204. package/include/opus/opus.h +0 -1099
  205. package/include/opus/opus_defines.h +0 -830
  206. package/include/opus/opus_multistream.h +0 -660
  207. package/include/opus/opus_projection.h +0 -568
  208. package/include/opus/opus_types.h +0 -166
  209. package/include/svt-av1/EbDebugMacros.h +0 -88
  210. package/include/svt-av1/EbSvtAv1.h +0 -462
  211. package/include/svt-av1/EbSvtAv1Enc.h +0 -1112
  212. package/include/svt-av1/EbSvtAv1ErrorCodes.h +0 -67
  213. package/include/svt-av1/EbSvtAv1ExtFrameBuf.h +0 -64
  214. package/include/svt-av1/EbSvtAv1Formats.h +0 -126
  215. package/include/svt-av1/EbSvtAv1Metadata.h +0 -156
  216. package/include/vorbis/codec.h +0 -242
  217. package/include/vorbis/vorbisenc.h +0 -435
  218. package/include/vorbis/vorbisfile.h +0 -205
  219. package/include/vpx/vp8.h +0 -136
  220. package/include/vpx/vp8cx.h +0 -1118
  221. package/include/vpx/vp8dx.h +0 -228
  222. package/include/vpx/vpx_codec.h +0 -475
  223. package/include/vpx/vpx_decoder.h +0 -367
  224. package/include/vpx/vpx_encoder.h +0 -1150
  225. package/include/vpx/vpx_ext_ratectrl.h +0 -590
  226. package/include/vpx/vpx_frame_buffer.h +0 -83
  227. package/include/vpx/vpx_image.h +0 -221
  228. package/include/vpx/vpx_integer.h +0 -40
  229. package/include/vpx/vpx_tpl.h +0 -68
  230. package/include/x264.h +0 -1027
  231. package/include/x264_config.h +0 -6
  232. package/include/x265.h +0 -2737
  233. package/include/x265_config.h +0 -34
  234. /package/{include → lib/pkgconfig}/index.js +0 -0
@@ -1,346 +0,0 @@
1
- /*
2
- * Copyright (c) 2021 Limin Wang <lance.lmwang at 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
- #ifndef AVUTIL_HDR_DYNAMIC_VIVID_METADATA_H
22
- #define AVUTIL_HDR_DYNAMIC_VIVID_METADATA_H
23
-
24
- #include "frame.h"
25
- #include "rational.h"
26
-
27
- /**
28
- * HDR Vivid three spline params.
29
- */
30
- typedef struct AVHDRVivid3SplineParams {
31
- /**
32
- * The mode of three Spline. the value shall be in the range
33
- * of 0 to 3, inclusive.
34
- */
35
- int th_mode;
36
-
37
- /**
38
- * three_Spline_TH_enable_MB is in the range of 0.0 to 1.0, inclusive
39
- * and in multiples of 1.0/255.
40
- *
41
- */
42
- AVRational th_enable_mb;
43
-
44
- /**
45
- * 3Spline_TH_enable of three Spline.
46
- * The value shall be in the range of 0.0 to 1.0, inclusive.
47
- * and in multiples of 1.0/4095.
48
- */
49
- AVRational th_enable;
50
-
51
- /**
52
- * 3Spline_TH_Delta1 of three Spline.
53
- * The value shall be in the range of 0.0 to 0.25, inclusive,
54
- * and in multiples of 0.25/1023.
55
- */
56
- AVRational th_delta1;
57
-
58
- /**
59
- * 3Spline_TH_Delta2 of three Spline.
60
- * The value shall be in the range of 0.0 to 0.25, inclusive,
61
- * and in multiples of 0.25/1023.
62
- */
63
- AVRational th_delta2;
64
-
65
- /**
66
- * 3Spline_enable_Strength of three Spline.
67
- * The value shall be in the range of 0.0 to 1.0, inclusive,
68
- * and in multiples of 1.0/255.
69
- */
70
- AVRational enable_strength;
71
- } AVHDRVivid3SplineParams;
72
-
73
- /**
74
- * Color tone mapping parameters at a processing window in a dynamic metadata for
75
- * CUVA 005.1:2021.
76
- */
77
- typedef struct AVHDRVividColorToneMappingParams {
78
- /**
79
- * The nominal maximum display luminance of the targeted system display,
80
- * in multiples of 1.0/4095 candelas per square metre. The value shall be in
81
- * the range of 0.0 to 1.0, inclusive.
82
- */
83
- AVRational targeted_system_display_maximum_luminance;
84
-
85
- /**
86
- * This flag indicates that transfer the base paramter(for value of 1)
87
- */
88
- int base_enable_flag;
89
-
90
- /**
91
- * base_param_m_p in the base parameter,
92
- * in multiples of 1.0/16383. The value shall be in
93
- * the range of 0.0 to 1.0, inclusive.
94
- */
95
- AVRational base_param_m_p;
96
-
97
- /**
98
- * base_param_m_m in the base parameter,
99
- * in multiples of 1.0/10. The value shall be in
100
- * the range of 0.0 to 6.3, inclusive.
101
- */
102
- AVRational base_param_m_m;
103
-
104
- /**
105
- * base_param_m_a in the base parameter,
106
- * in multiples of 1.0/1023. The value shall be in
107
- * the range of 0.0 to 1.0 inclusive.
108
- */
109
- AVRational base_param_m_a;
110
-
111
- /**
112
- * base_param_m_b in the base parameter,
113
- * in multiples of 1/1023. The value shall be in
114
- * the range of 0.0 to 1.0, inclusive.
115
- */
116
- AVRational base_param_m_b;
117
-
118
- /**
119
- * base_param_m_n in the base parameter,
120
- * in multiples of 1.0/10. The value shall be in
121
- * the range of 0.0 to 6.3, inclusive.
122
- */
123
- AVRational base_param_m_n;
124
-
125
- /**
126
- * indicates k1_0 in the base parameter,
127
- * base_param_k1 <= 1: k1_0 = base_param_k1
128
- * base_param_k1 > 1: reserved
129
- */
130
- int base_param_k1;
131
-
132
- /**
133
- * indicates k2_0 in the base parameter,
134
- * base_param_k2 <= 1: k2_0 = base_param_k2
135
- * base_param_k2 > 1: reserved
136
- */
137
- int base_param_k2;
138
-
139
- /**
140
- * indicates k3_0 in the base parameter,
141
- * base_param_k3 == 1: k3_0 = base_param_k3
142
- * base_param_k3 == 2: k3_0 = maximum_maxrgb
143
- * base_param_k3 > 2: reserved
144
- */
145
- int base_param_k3;
146
-
147
- /**
148
- * This flag indicates that delta mode of base paramter(for value of 1)
149
- */
150
- int base_param_Delta_enable_mode;
151
-
152
- /**
153
- * base_param_Delta in the base parameter,
154
- * in multiples of 1.0/127. The value shall be in
155
- * the range of 0.0 to 1.0, inclusive.
156
- */
157
- AVRational base_param_Delta;
158
-
159
- /**
160
- * indicates 3Spline_enable_flag in the base parameter,
161
- * This flag indicates that transfer three Spline of base paramter(for value of 1)
162
- */
163
- int three_Spline_enable_flag;
164
-
165
- /**
166
- * The number of three Spline. The value shall be in the range
167
- * of 1 to 2, inclusive.
168
- */
169
- int three_Spline_num;
170
-
171
- #if FF_API_HDR_VIVID_THREE_SPLINE
172
- /**
173
- * The mode of three Spline. the value shall be in the range
174
- * of 0 to 3, inclusive.
175
- * @deprecated Use three_spline instead
176
- */
177
- attribute_deprecated
178
- int three_Spline_TH_mode;
179
-
180
- /**
181
- * three_Spline_TH_enable_MB is in the range of 0.0 to 1.0, inclusive
182
- * and in multiples of 1.0/255.
183
- * @deprecated Use three_spline instead
184
- */
185
- attribute_deprecated
186
- AVRational three_Spline_TH_enable_MB;
187
-
188
- /**
189
- * 3Spline_TH_enable of three Spline.
190
- * The value shall be in the range of 0.0 to 1.0, inclusive.
191
- * and in multiples of 1.0/4095.
192
- * @deprecated Use three_spline instead
193
- */
194
- attribute_deprecated
195
- AVRational three_Spline_TH_enable;
196
-
197
- /**
198
- * 3Spline_TH_Delta1 of three Spline.
199
- * The value shall be in the range of 0.0 to 0.25, inclusive,
200
- * and in multiples of 0.25/1023.
201
- * @deprecated Use three_spline instead
202
- */
203
- attribute_deprecated
204
- AVRational three_Spline_TH_Delta1;
205
-
206
- /**
207
- * 3Spline_TH_Delta2 of three Spline.
208
- * The value shall be in the range of 0.0 to 0.25, inclusive,
209
- * and in multiples of 0.25/1023.
210
- * @deprecated Use three_spline instead
211
- */
212
- attribute_deprecated
213
- AVRational three_Spline_TH_Delta2;
214
-
215
- /**
216
- * 3Spline_enable_Strength of three Spline.
217
- * The value shall be in the range of 0.0 to 1.0, inclusive,
218
- * and in multiples of 1.0/255.
219
- * @deprecated Use three_spline instead
220
- */
221
- attribute_deprecated
222
- AVRational three_Spline_enable_Strength;
223
- #endif
224
-
225
- AVHDRVivid3SplineParams three_spline[2];
226
- } AVHDRVividColorToneMappingParams;
227
-
228
-
229
- /**
230
- * Color transform parameters at a processing window in a dynamic metadata for
231
- * CUVA 005.1:2021.
232
- */
233
- typedef struct AVHDRVividColorTransformParams {
234
- /**
235
- * Indicates the minimum brightness of the displayed content.
236
- * The values should be in the range of 0.0 to 1.0,
237
- * inclusive and in multiples of 1/4095.
238
- */
239
- AVRational minimum_maxrgb;
240
-
241
- /**
242
- * Indicates the average brightness of the displayed content.
243
- * The values should be in the range of 0.0 to 1.0,
244
- * inclusive and in multiples of 1/4095.
245
- */
246
- AVRational average_maxrgb;
247
-
248
- /**
249
- * Indicates the variance brightness of the displayed content.
250
- * The values should be in the range of 0.0 to 1.0,
251
- * inclusive and in multiples of 1/4095.
252
- */
253
- AVRational variance_maxrgb;
254
-
255
- /**
256
- * Indicates the maximum brightness of the displayed content.
257
- * The values should be in the range of 0.0 to 1.0, inclusive
258
- * and in multiples of 1/4095.
259
- */
260
- AVRational maximum_maxrgb;
261
-
262
- /**
263
- * This flag indicates that the metadata for the tone mapping function in
264
- * the processing window is present (for value of 1).
265
- */
266
- int tone_mapping_mode_flag;
267
-
268
- /**
269
- * The number of tone mapping param. The value shall be in the range
270
- * of 1 to 2, inclusive.
271
- */
272
- int tone_mapping_param_num;
273
-
274
- /**
275
- * The color tone mapping parameters.
276
- */
277
- AVHDRVividColorToneMappingParams tm_params[2];
278
-
279
- /**
280
- * This flag indicates that the metadata for the color saturation mapping in
281
- * the processing window is present (for value of 1).
282
- */
283
- int color_saturation_mapping_flag;
284
-
285
- /**
286
- * The number of color saturation param. The value shall be in the range
287
- * of 0 to 7, inclusive.
288
- */
289
- int color_saturation_num;
290
-
291
- /**
292
- * Indicates the color correction strength parameter.
293
- * The values should be in the range of 0.0 to 2.0, inclusive
294
- * and in multiples of 1/128.
295
- */
296
- AVRational color_saturation_gain[8];
297
- } AVHDRVividColorTransformParams;
298
-
299
- /**
300
- * This struct represents dynamic metadata for color volume transform -
301
- * CUVA 005.1:2021 standard
302
- *
303
- * To be used as payload of a AVFrameSideData or AVPacketSideData with the
304
- * appropriate type.
305
- *
306
- * @note The struct should be allocated with
307
- * av_dynamic_hdr_vivid_alloc() and its size is not a part of
308
- * the public ABI.
309
- */
310
- typedef struct AVDynamicHDRVivid {
311
- /**
312
- * The system start code. The value shall be set to 0x01.
313
- */
314
- uint8_t system_start_code;
315
-
316
- /**
317
- * The number of processing windows. The value shall be set to 0x01
318
- * if the system_start_code is 0x01.
319
- */
320
- uint8_t num_windows;
321
-
322
- /**
323
- * The color transform parameters for every processing window.
324
- */
325
- AVHDRVividColorTransformParams params[3];
326
- } AVDynamicHDRVivid;
327
-
328
- /**
329
- * Allocate an AVDynamicHDRVivid structure and set its fields to
330
- * default values. The resulting struct can be freed using av_freep().
331
- *
332
- * @return An AVDynamicHDRVivid filled with default values or NULL
333
- * on failure.
334
- */
335
- AVDynamicHDRVivid *av_dynamic_hdr_vivid_alloc(size_t *size);
336
-
337
- /**
338
- * Allocate a complete AVDynamicHDRVivid and add it to the frame.
339
- * @param frame The frame which side data is added to.
340
- *
341
- * @return The AVDynamicHDRVivid structure to be filled by caller or NULL
342
- * on failure.
343
- */
344
- AVDynamicHDRVivid *av_dynamic_hdr_vivid_create_side_data(AVFrame *frame);
345
-
346
- #endif /* AVUTIL_HDR_DYNAMIC_VIVID_METADATA_H */
@@ -1,99 +0,0 @@
1
- /*
2
- * Copyright (C) 2012 Martin Storsjo
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_HMAC_H
22
- #define AVUTIL_HMAC_H
23
-
24
- #include <stdint.h>
25
-
26
- /**
27
- * @defgroup lavu_hmac HMAC
28
- * @ingroup lavu_crypto
29
- * @{
30
- */
31
-
32
- enum AVHMACType {
33
- AV_HMAC_MD5,
34
- AV_HMAC_SHA1,
35
- AV_HMAC_SHA224,
36
- AV_HMAC_SHA256,
37
- AV_HMAC_SHA384,
38
- AV_HMAC_SHA512,
39
- };
40
-
41
- typedef struct AVHMAC AVHMAC;
42
-
43
- /**
44
- * Allocate an AVHMAC context.
45
- * @param type The hash function used for the HMAC.
46
- */
47
- AVHMAC *av_hmac_alloc(enum AVHMACType type);
48
-
49
- /**
50
- * Free an AVHMAC context.
51
- * @param ctx The context to free, may be NULL
52
- */
53
- void av_hmac_free(AVHMAC *ctx);
54
-
55
- /**
56
- * Initialize an AVHMAC context with an authentication key.
57
- * @param ctx The HMAC context
58
- * @param key The authentication key
59
- * @param keylen The length of the key, in bytes
60
- */
61
- void av_hmac_init(AVHMAC *ctx, const uint8_t *key, unsigned int keylen);
62
-
63
- /**
64
- * Hash data with the HMAC.
65
- * @param ctx The HMAC context
66
- * @param data The data to hash
67
- * @param len The length of the data, in bytes
68
- */
69
- void av_hmac_update(AVHMAC *ctx, const uint8_t *data, unsigned int len);
70
-
71
- /**
72
- * Finish hashing and output the HMAC digest.
73
- * @param ctx The HMAC context
74
- * @param out The output buffer to write the digest into
75
- * @param outlen The length of the out buffer, in bytes
76
- * @return The number of bytes written to out, or a negative error code.
77
- */
78
- int av_hmac_final(AVHMAC *ctx, uint8_t *out, unsigned int outlen);
79
-
80
- /**
81
- * Hash an array of data with a key.
82
- * @param ctx The HMAC context
83
- * @param data The data to hash
84
- * @param len The length of the data, in bytes
85
- * @param key The authentication key
86
- * @param keylen The length of the key, in bytes
87
- * @param out The output buffer to write the digest into
88
- * @param outlen The length of the out buffer, in bytes
89
- * @return The number of bytes written to out, or a negative error code.
90
- */
91
- int av_hmac_calc(AVHMAC *ctx, const uint8_t *data, unsigned int len,
92
- const uint8_t *key, unsigned int keylen,
93
- uint8_t *out, unsigned int outlen);
94
-
95
- /**
96
- * @}
97
- */
98
-
99
- #endif /* AVUTIL_HMAC_H */