@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,100 +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_HWCONTEXT_OPENCL_H
20
- #define AVUTIL_HWCONTEXT_OPENCL_H
21
-
22
- #ifdef __APPLE__
23
- #include <OpenCL/cl.h>
24
- #else
25
- #include <CL/cl.h>
26
- #endif
27
-
28
- #include "frame.h"
29
-
30
- /**
31
- * @file
32
- * API-specific header for AV_HWDEVICE_TYPE_OPENCL.
33
- *
34
- * Pools allocated internally are always dynamic, and are primarily intended
35
- * to be used in OpenCL-only cases. If interoperation is required, it is
36
- * typically required to allocate frames in the other API and then map the
37
- * frames context to OpenCL with av_hwframe_ctx_create_derived().
38
- */
39
-
40
- /**
41
- * OpenCL frame descriptor for pool allocation.
42
- *
43
- * In user-allocated pools, AVHWFramesContext.pool must return AVBufferRefs
44
- * with the data pointer pointing at an object of this type describing the
45
- * planes of the frame.
46
- */
47
- typedef struct AVOpenCLFrameDescriptor {
48
- /**
49
- * Number of planes in the frame.
50
- */
51
- int nb_planes;
52
- /**
53
- * OpenCL image2d objects for each plane of the frame.
54
- */
55
- cl_mem planes[AV_NUM_DATA_POINTERS];
56
- } AVOpenCLFrameDescriptor;
57
-
58
- /**
59
- * OpenCL device details.
60
- *
61
- * Allocated as AVHWDeviceContext.hwctx
62
- */
63
- typedef struct AVOpenCLDeviceContext {
64
- /**
65
- * The primary device ID of the device. If multiple OpenCL devices
66
- * are associated with the context then this is the one which will
67
- * be used for all operations internal to FFmpeg.
68
- */
69
- cl_device_id device_id;
70
- /**
71
- * The OpenCL context which will contain all operations and frames on
72
- * this device.
73
- */
74
- cl_context context;
75
- /**
76
- * The default command queue for this device, which will be used by all
77
- * frames contexts which do not have their own command queue. If not
78
- * intialised by the user, a default queue will be created on the
79
- * primary device.
80
- */
81
- cl_command_queue command_queue;
82
- } AVOpenCLDeviceContext;
83
-
84
- /**
85
- * OpenCL-specific data associated with a frame pool.
86
- *
87
- * Allocated as AVHWFramesContext.hwctx.
88
- */
89
- typedef struct AVOpenCLFramesContext {
90
- /**
91
- * The command queue used for internal asynchronous operations on this
92
- * device (av_hwframe_transfer_data(), av_hwframe_map()).
93
- *
94
- * If this is not set, the command queue from the associated device is
95
- * used instead.
96
- */
97
- cl_command_queue command_queue;
98
- } AVOpenCLFramesContext;
99
-
100
- #endif /* AVUTIL_HWCONTEXT_OPENCL_H */
@@ -1,87 +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_HWCONTEXT_QSV_H
20
- #define AVUTIL_HWCONTEXT_QSV_H
21
-
22
- #include <mfxvideo.h>
23
-
24
- /**
25
- * @file
26
- * An API-specific header for AV_HWDEVICE_TYPE_QSV.
27
- *
28
- * AVHWFramesContext.pool must contain AVBufferRefs whose data pointer points
29
- * to a mfxFrameSurface1 struct.
30
- */
31
-
32
- /**
33
- * This struct is allocated as AVHWDeviceContext.hwctx
34
- */
35
- typedef struct AVQSVDeviceContext {
36
- mfxSession session;
37
- /**
38
- * The mfxLoader handle used for mfxSession creation
39
- *
40
- * This field is only available for oneVPL user. For non-oneVPL user, this
41
- * field must be set to NULL.
42
- *
43
- * Filled by the user before calling av_hwdevice_ctx_init() and should be
44
- * cast to mfxLoader handle. Deallocating the AVHWDeviceContext will always
45
- * release this interface.
46
- */
47
- void *loader;
48
- } AVQSVDeviceContext;
49
-
50
- /**
51
- * This struct is allocated as AVHWFramesContext.hwctx
52
- */
53
- typedef struct AVQSVFramesContext {
54
- /**
55
- * A pointer to a mfxFrameSurface1 struct
56
- *
57
- * It is available when nb_surfaces is non-zero.
58
- */
59
- mfxFrameSurface1 *surfaces;
60
-
61
- /**
62
- * Number of frames in the pool
63
- *
64
- * It is 0 for dynamic frame pools or AVHWFramesContext.initial_pool_size
65
- * for fixed frame pools.
66
- *
67
- * Note only oneVPL GPU runtime 2.9+ can support dynamic frame pools
68
- * on d3d11va or vaapi
69
- */
70
- int nb_surfaces;
71
-
72
- /**
73
- * A combination of MFX_MEMTYPE_* describing the frame pool.
74
- */
75
- int frame_type;
76
-
77
- /**
78
- * A pointer to a mfxFrameInfo struct
79
- *
80
- * It is available when nb_surfaces is 0, all buffers allocated from the
81
- * pool have the same mfxFrameInfo.
82
- */
83
- mfxFrameInfo *info;
84
- } AVQSVFramesContext;
85
-
86
- #endif /* AVUTIL_HWCONTEXT_QSV_H */
87
-
@@ -1,117 +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_HWCONTEXT_VAAPI_H
20
- #define AVUTIL_HWCONTEXT_VAAPI_H
21
-
22
- #include <va/va.h>
23
-
24
- /**
25
- * @file
26
- * API-specific header for AV_HWDEVICE_TYPE_VAAPI.
27
- *
28
- * Dynamic frame pools are supported, but note that any pool used as a render
29
- * target is required to be of fixed size in order to be be usable as an
30
- * argument to vaCreateContext().
31
- *
32
- * For user-allocated pools, AVHWFramesContext.pool must return AVBufferRefs
33
- * with the data pointer set to a VASurfaceID.
34
- */
35
-
36
- enum {
37
- /**
38
- * The quirks field has been set by the user and should not be detected
39
- * automatically by av_hwdevice_ctx_init().
40
- */
41
- AV_VAAPI_DRIVER_QUIRK_USER_SET = (1 << 0),
42
- /**
43
- * The driver does not destroy parameter buffers when they are used by
44
- * vaRenderPicture(). Additional code will be required to destroy them
45
- * separately afterwards.
46
- */
47
- AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS = (1 << 1),
48
-
49
- /**
50
- * The driver does not support the VASurfaceAttribMemoryType attribute,
51
- * so the surface allocation code will not try to use it.
52
- */
53
- AV_VAAPI_DRIVER_QUIRK_ATTRIB_MEMTYPE = (1 << 2),
54
-
55
- /**
56
- * The driver does not support surface attributes at all.
57
- * The surface allocation code will never pass them to surface allocation,
58
- * and the results of the vaQuerySurfaceAttributes() call will be faked.
59
- */
60
- AV_VAAPI_DRIVER_QUIRK_SURFACE_ATTRIBUTES = (1 << 3),
61
- };
62
-
63
- /**
64
- * VAAPI connection details.
65
- *
66
- * Allocated as AVHWDeviceContext.hwctx
67
- */
68
- typedef struct AVVAAPIDeviceContext {
69
- /**
70
- * The VADisplay handle, to be filled by the user.
71
- */
72
- VADisplay display;
73
- /**
74
- * Driver quirks to apply - this is filled by av_hwdevice_ctx_init(),
75
- * with reference to a table of known drivers, unless the
76
- * AV_VAAPI_DRIVER_QUIRK_USER_SET bit is already present. The user
77
- * may need to refer to this field when performing any later
78
- * operations using VAAPI with the same VADisplay.
79
- */
80
- unsigned int driver_quirks;
81
- } AVVAAPIDeviceContext;
82
-
83
- /**
84
- * VAAPI-specific data associated with a frame pool.
85
- *
86
- * Allocated as AVHWFramesContext.hwctx.
87
- */
88
- typedef struct AVVAAPIFramesContext {
89
- /**
90
- * Set by the user to apply surface attributes to all surfaces in
91
- * the frame pool. If null, default settings are used.
92
- */
93
- VASurfaceAttrib *attributes;
94
- int nb_attributes;
95
- /**
96
- * The surfaces IDs of all surfaces in the pool after creation.
97
- * Only valid if AVHWFramesContext.initial_pool_size was positive.
98
- * These are intended to be used as the render_targets arguments to
99
- * vaCreateContext().
100
- */
101
- VASurfaceID *surface_ids;
102
- int nb_surfaces;
103
- } AVVAAPIFramesContext;
104
-
105
- /**
106
- * VAAPI hardware pipeline configuration details.
107
- *
108
- * Allocated with av_hwdevice_hwconfig_alloc().
109
- */
110
- typedef struct AVVAAPIHWConfig {
111
- /**
112
- * ID of a VAAPI pipeline configuration.
113
- */
114
- VAConfigID config_id;
115
- } AVVAAPIHWConfig;
116
-
117
- #endif /* AVUTIL_HWCONTEXT_VAAPI_H */
@@ -1,44 +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_HWCONTEXT_VDPAU_H
20
- #define AVUTIL_HWCONTEXT_VDPAU_H
21
-
22
- #include <vdpau/vdpau.h>
23
-
24
- /**
25
- * @file
26
- * An API-specific header for AV_HWDEVICE_TYPE_VDPAU.
27
- *
28
- * This API supports dynamic frame pools. AVHWFramesContext.pool must return
29
- * AVBufferRefs whose data pointer is a VdpVideoSurface.
30
- */
31
-
32
- /**
33
- * This struct is allocated as AVHWDeviceContext.hwctx
34
- */
35
- typedef struct AVVDPAUDeviceContext {
36
- VdpDevice device;
37
- VdpGetProcAddress *get_proc_address;
38
- } AVVDPAUDeviceContext;
39
-
40
- /**
41
- * AVHWFramesContext.hwctx is currently not used
42
- */
43
-
44
- #endif /* AVUTIL_HWCONTEXT_VDPAU_H */
@@ -1,106 +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_HWCONTEXT_VIDEOTOOLBOX_H
20
- #define AVUTIL_HWCONTEXT_VIDEOTOOLBOX_H
21
-
22
- #include <stdint.h>
23
-
24
- #include <VideoToolbox/VideoToolbox.h>
25
-
26
- #include "frame.h"
27
- #include "pixfmt.h"
28
-
29
- /**
30
- * @file
31
- * An API-specific header for AV_HWDEVICE_TYPE_VIDEOTOOLBOX.
32
- *
33
- * This API supports frame allocation using a native CVPixelBufferPool
34
- * instead of an AVBufferPool.
35
- *
36
- * If the API user sets a custom pool, AVHWFramesContext.pool must return
37
- * AVBufferRefs whose data pointer is a CVImageBufferRef or CVPixelBufferRef.
38
- * Note that the underlying CVPixelBuffer could be retained by OS frameworks
39
- * depending on application usage, so it is preferable to let CoreVideo manage
40
- * the pool using the default implementation.
41
- *
42
- * Currently AVHWDeviceContext.hwctx are always NULL.
43
- */
44
-
45
- typedef struct AVVTFramesContext {
46
- enum AVColorRange color_range;
47
- } AVVTFramesContext;
48
-
49
- /**
50
- * Convert a VideoToolbox (actually CoreVideo) format to AVPixelFormat.
51
- * Returns AV_PIX_FMT_NONE if no known equivalent was found.
52
- */
53
- enum AVPixelFormat av_map_videotoolbox_format_to_pixfmt(uint32_t cv_fmt);
54
-
55
- /**
56
- * Convert an AVPixelFormat to a VideoToolbox (actually CoreVideo) format.
57
- * Returns 0 if no known equivalent was found.
58
- */
59
- uint32_t av_map_videotoolbox_format_from_pixfmt(enum AVPixelFormat pix_fmt);
60
-
61
- /**
62
- * Same as av_map_videotoolbox_format_from_pixfmt function, but can map and
63
- * return full range pixel formats via a flag.
64
- */
65
- uint32_t av_map_videotoolbox_format_from_pixfmt2(enum AVPixelFormat pix_fmt, bool full_range);
66
-
67
- /**
68
- * Convert an AVChromaLocation to a VideoToolbox/CoreVideo chroma location string.
69
- * Returns 0 if no known equivalent was found.
70
- */
71
- CFStringRef av_map_videotoolbox_chroma_loc_from_av(enum AVChromaLocation loc);
72
-
73
- /**
74
- * Convert an AVColorSpace to a VideoToolbox/CoreVideo color matrix string.
75
- * Returns 0 if no known equivalent was found.
76
- */
77
- CFStringRef av_map_videotoolbox_color_matrix_from_av(enum AVColorSpace space);
78
-
79
- /**
80
- * Convert an AVColorPrimaries to a VideoToolbox/CoreVideo color primaries string.
81
- * Returns 0 if no known equivalent was found.
82
- */
83
- CFStringRef av_map_videotoolbox_color_primaries_from_av(enum AVColorPrimaries pri);
84
-
85
- /**
86
- * Convert an AVColorTransferCharacteristic to a VideoToolbox/CoreVideo color transfer
87
- * function string.
88
- * Returns 0 if no known equivalent was found.
89
- */
90
- CFStringRef av_map_videotoolbox_color_trc_from_av(enum AVColorTransferCharacteristic trc);
91
-
92
- /**
93
- * Set CVPixelBufferRef's metadata based on an AVFrame.
94
- *
95
- * Sets/unsets the CVPixelBuffer attachments to match as closely as possible the
96
- * AVFrame metadata. To prevent inconsistent attachments, the attachments for properties
97
- * that could not be matched or are unspecified in the given AVFrame are unset. So if
98
- * any attachments already covered by AVFrame metadata need to be set to a specific
99
- * value, this should happen after calling this function.
100
- *
101
- * Returns < 0 in case of an error.
102
- */
103
- int av_vt_pixbuf_set_attachments(void *log_ctx,
104
- CVPixelBufferRef pixbuf, const struct AVFrame *src);
105
-
106
- #endif /* AVUTIL_HWCONTEXT_VIDEOTOOLBOX_H */