@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,322 +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
6
- * License 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 GNU
12
- * Lesser General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU Lesser General Public
15
- * License along with FFmpeg; if not, write to the Free Software
16
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
- */
18
-
19
- #ifndef AVUTIL_FILM_GRAIN_PARAMS_H
20
- #define AVUTIL_FILM_GRAIN_PARAMS_H
21
-
22
- #include "frame.h"
23
-
24
- enum AVFilmGrainParamsType {
25
- AV_FILM_GRAIN_PARAMS_NONE = 0,
26
-
27
- /**
28
- * The union is valid when interpreted as AVFilmGrainAOMParams (codec.aom)
29
- */
30
- AV_FILM_GRAIN_PARAMS_AV1,
31
-
32
- /**
33
- * The union is valid when interpreted as AVFilmGrainH274Params (codec.h274)
34
- */
35
- AV_FILM_GRAIN_PARAMS_H274,
36
- };
37
-
38
- /**
39
- * This structure describes how to handle film grain synthesis for AOM codecs.
40
- *
41
- * @note The struct must be allocated as part of AVFilmGrainParams using
42
- * av_film_grain_params_alloc(). Its size is not a part of the public ABI.
43
- */
44
- typedef struct AVFilmGrainAOMParams {
45
- /**
46
- * Number of points, and the scale and value for each point of the
47
- * piecewise linear scaling function for the uma plane.
48
- */
49
- int num_y_points;
50
- uint8_t y_points[14][2 /* value, scaling */];
51
-
52
- /**
53
- * Signals whether to derive the chroma scaling function from the luma.
54
- * Not equivalent to copying the luma values and scales.
55
- */
56
- int chroma_scaling_from_luma;
57
-
58
- /**
59
- * If chroma_scaling_from_luma is set to 0, signals the chroma scaling
60
- * function parameters.
61
- */
62
- int num_uv_points[2 /* cb, cr */];
63
- uint8_t uv_points[2 /* cb, cr */][10][2 /* value, scaling */];
64
-
65
- /**
66
- * Specifies the shift applied to the chroma components. For AV1, its within
67
- * [8; 11] and determines the range and quantization of the film grain.
68
- */
69
- int scaling_shift;
70
-
71
- /**
72
- * Specifies the auto-regression lag.
73
- */
74
- int ar_coeff_lag;
75
-
76
- /**
77
- * Luma auto-regression coefficients. The number of coefficients is given by
78
- * 2 * ar_coeff_lag * (ar_coeff_lag + 1).
79
- */
80
- int8_t ar_coeffs_y[24];
81
-
82
- /**
83
- * Chroma auto-regression coefficients. The number of coefficients is given by
84
- * 2 * ar_coeff_lag * (ar_coeff_lag + 1) + !!num_y_points.
85
- */
86
- int8_t ar_coeffs_uv[2 /* cb, cr */][25];
87
-
88
- /**
89
- * Specifies the range of the auto-regressive coefficients. Values of 6,
90
- * 7, 8 and so on represent a range of [-2, 2), [-1, 1), [-0.5, 0.5) and
91
- * so on. For AV1 must be between 6 and 9.
92
- */
93
- int ar_coeff_shift;
94
-
95
- /**
96
- * Signals the down shift applied to the generated gaussian numbers during
97
- * synthesis.
98
- */
99
- int grain_scale_shift;
100
-
101
- /**
102
- * Specifies the luma/chroma multipliers for the index to the component
103
- * scaling function.
104
- */
105
- int uv_mult[2 /* cb, cr */];
106
- int uv_mult_luma[2 /* cb, cr */];
107
-
108
- /**
109
- * Offset used for component scaling function. For AV1 its a 9-bit value
110
- * with a range [-256, 255]
111
- */
112
- int uv_offset[2 /* cb, cr */];
113
-
114
- /**
115
- * Signals whether to overlap film grain blocks.
116
- */
117
- int overlap_flag;
118
-
119
- /**
120
- * Signals to clip to limited color levels after film grain application.
121
- */
122
- int limit_output_range;
123
- } AVFilmGrainAOMParams;
124
-
125
- /**
126
- * This structure describes how to handle film grain synthesis for codecs using
127
- * the ITU-T H.274 Versatile suplemental enhancement information message.
128
- *
129
- * @note The struct must be allocated as part of AVFilmGrainParams using
130
- * av_film_grain_params_alloc(). Its size is not a part of the public ABI.
131
- */
132
- typedef struct AVFilmGrainH274Params {
133
- /**
134
- * Specifies the film grain simulation mode.
135
- * 0 = Frequency filtering, 1 = Auto-regression
136
- */
137
- int model_id;
138
-
139
- #if FF_API_H274_FILM_GRAIN_VCS
140
- /**
141
- * TODO: On this ABI bump, please also re-order the fields in
142
- * AVFilmGrainParams (see below)
143
- */
144
-
145
- /**
146
- * Specifies the bit depth used for the luma component.
147
- *
148
- * @deprecated use AVFilmGrainParams.bit_depth_luma.
149
- */
150
- attribute_deprecated
151
- int bit_depth_luma;
152
-
153
- /**
154
- * Specifies the bit depth used for the chroma components.
155
- *
156
- * @deprecated use AVFilmGrainParams.bit_depth_chroma.
157
- */
158
- attribute_deprecated
159
- int bit_depth_chroma;
160
-
161
- /**
162
- * Specifies the video signal characteristics.
163
- *
164
- * @deprecated use AVFilmGrainParams.color_{range,primaries,trc,space}.
165
- */
166
- attribute_deprecated
167
- enum AVColorRange color_range;
168
- attribute_deprecated
169
- enum AVColorPrimaries color_primaries;
170
- attribute_deprecated
171
- enum AVColorTransferCharacteristic color_trc;
172
- attribute_deprecated
173
- enum AVColorSpace color_space;
174
- #endif
175
-
176
- /**
177
- * Specifies the blending mode used to blend the simulated film grain
178
- * with the decoded images.
179
- *
180
- * 0 = Additive, 1 = Multiplicative
181
- */
182
- int blending_mode_id;
183
-
184
- /**
185
- * Specifies a scale factor used in the film grain characterization equations.
186
- */
187
- int log2_scale_factor;
188
-
189
- /**
190
- * Indicates if the modelling of film grain for a given component is present.
191
- */
192
- int component_model_present[3 /* y, cb, cr */];
193
-
194
- /**
195
- * Specifies the number of intensity intervals for which a specific set of
196
- * model values has been estimated, with a range of [1, 256].
197
- */
198
- uint16_t num_intensity_intervals[3 /* y, cb, cr */];
199
-
200
- /**
201
- * Specifies the number of model values present for each intensity interval
202
- * in which the film grain has been modelled, with a range of [1, 6].
203
- */
204
- uint8_t num_model_values[3 /* y, cb, cr */];
205
-
206
- /**
207
- * Specifies the lower ounds of each intensity interval for whichthe set of
208
- * model values applies for the component.
209
- */
210
- uint8_t intensity_interval_lower_bound[3 /* y, cb, cr */][256 /* intensity interval */];
211
-
212
- /**
213
- * Specifies the upper bound of each intensity interval for which the set of
214
- * model values applies for the component.
215
- */
216
- uint8_t intensity_interval_upper_bound[3 /* y, cb, cr */][256 /* intensity interval */];
217
-
218
- /**
219
- * Specifies the model values for the component for each intensity interval.
220
- * - When model_id == 0, the following applies:
221
- * For comp_model_value[y], the range of values is [0, 2^bit_depth_luma - 1]
222
- * For comp_model_value[cb..cr], the range of values is [0, 2^bit_depth_chroma - 1]
223
- * - Otherwise, the following applies:
224
- * For comp_model_value[y], the range of values is [-2^(bit_depth_luma - 1), 2^(bit_depth_luma - 1) - 1]
225
- * For comp_model_value[cb..cr], the range of values is [-2^(bit_depth_chroma - 1), 2^(bit_depth_chroma - 1) - 1]
226
- */
227
- int16_t comp_model_value[3 /* y, cb, cr */][256 /* intensity interval */][6 /* model value */];
228
- } AVFilmGrainH274Params;
229
-
230
- /**
231
- * This structure describes how to handle film grain synthesis in video
232
- * for specific codecs. Must be present on every frame where film grain is
233
- * meant to be synthesised for correct presentation.
234
- *
235
- * @note The struct must be allocated with av_film_grain_params_alloc() and
236
- * its size is not a part of the public ABI.
237
- */
238
- typedef struct AVFilmGrainParams {
239
- /**
240
- * Specifies the codec for which this structure is valid.
241
- */
242
- enum AVFilmGrainParamsType type;
243
-
244
- /**
245
- * Seed to use for the synthesis process, if the codec allows for it.
246
- *
247
- * @note For H.264, this refers to `pic_offset` as defined in
248
- * SMPTE RDD 5-2006.
249
- */
250
- uint64_t seed;
251
-
252
- /**
253
- * Additional fields may be added both here and in any structure included.
254
- * If a codec's film grain structure differs slightly over another
255
- * codec's, fields within may change meaning depending on the type.
256
- *
257
- * TODO: Move this to the end of the structure, at the next ABI bump.
258
- */
259
- union {
260
- AVFilmGrainAOMParams aom;
261
- AVFilmGrainH274Params h274;
262
- } codec;
263
-
264
- /**
265
- * Intended display resolution. May be 0 if the codec does not specify
266
- * any restrictions.
267
- */
268
-
269
- int width, height;
270
-
271
- /**
272
- * Intended subsampling ratio, or 0 for luma-only streams.
273
- */
274
- int subsampling_x, subsampling_y;
275
-
276
- /**
277
- * Intended video signal characteristics.
278
- */
279
- enum AVColorRange color_range;
280
- enum AVColorPrimaries color_primaries;
281
- enum AVColorTransferCharacteristic color_trc;
282
- enum AVColorSpace color_space;
283
-
284
- /**
285
- * Intended bit depth, or 0 for unknown/unspecified.
286
- */
287
- int bit_depth_luma;
288
- int bit_depth_chroma;
289
-
290
- } AVFilmGrainParams;
291
-
292
- /**
293
- * Allocate an AVFilmGrainParams structure and set its fields to
294
- * default values. The resulting struct can be freed using av_freep().
295
- * If size is not NULL it will be set to the number of bytes allocated.
296
- *
297
- * @return An AVFilmGrainParams filled with default values or NULL
298
- * on failure.
299
- */
300
- AVFilmGrainParams *av_film_grain_params_alloc(size_t *size);
301
-
302
- /**
303
- * Allocate a complete AVFilmGrainParams and add it to the frame.
304
- *
305
- * @param frame The frame which side data is added to.
306
- *
307
- * @return The AVFilmGrainParams structure to be filled by caller.
308
- */
309
- AVFilmGrainParams *av_film_grain_params_create_side_data(AVFrame *frame);
310
-
311
- /**
312
- * Select the most appropriate film grain parameters set for the frame,
313
- * taking into account the frame's format, resolution and video signal
314
- * characteristics.
315
- *
316
- * @note, for H.274, this may select a film grain parameter set with
317
- * greater chroma resolution than the frame. Users should take care to
318
- * correctly adjust the chroma grain frequency to the frame.
319
- */
320
- const AVFilmGrainParams *av_film_grain_params_select(const AVFrame *frame);
321
-
322
- #endif /* AVUTIL_FILM_GRAIN_PARAMS_H */