@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,397 +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 AVDEVICE_AVDEVICE_H
20
- #define AVDEVICE_AVDEVICE_H
21
-
22
- #include "version_major.h"
23
- #ifndef HAVE_AV_CONFIG_H
24
- /* When included as part of the ffmpeg build, only include the major version
25
- * to avoid unnecessary rebuilds. When included externally, keep including
26
- * the full version information. */
27
- #include "version.h"
28
- #endif
29
-
30
- /**
31
- * @file
32
- * @ingroup lavd
33
- * Main libavdevice API header
34
- */
35
-
36
- /**
37
- * @defgroup lavd libavdevice
38
- * Special devices muxing/demuxing library.
39
- *
40
- * Libavdevice is a complementary library to @ref libavf "libavformat". It
41
- * provides various "special" platform-specific muxers and demuxers, e.g. for
42
- * grabbing devices, audio capture and playback etc. As a consequence, the
43
- * (de)muxers in libavdevice are of the AVFMT_NOFILE type (they use their own
44
- * I/O functions). The filename passed to avformat_open_input() often does not
45
- * refer to an actually existing file, but has some special device-specific
46
- * meaning - e.g. for xcbgrab it is the display name.
47
- *
48
- * To use libavdevice, simply call avdevice_register_all() to register all
49
- * compiled muxers and demuxers. They all use standard libavformat API.
50
- *
51
- * @{
52
- */
53
-
54
- #include "libavutil/log.h"
55
- #include "libavutil/opt.h"
56
- #include "libavutil/dict.h"
57
- #include "libavformat/avformat.h"
58
-
59
- /**
60
- * Return the LIBAVDEVICE_VERSION_INT constant.
61
- */
62
- unsigned avdevice_version(void);
63
-
64
- /**
65
- * Return the libavdevice build-time configuration.
66
- */
67
- const char *avdevice_configuration(void);
68
-
69
- /**
70
- * Return the libavdevice license.
71
- */
72
- const char *avdevice_license(void);
73
-
74
- /**
75
- * Initialize libavdevice and register all the input and output devices.
76
- */
77
- void avdevice_register_all(void);
78
-
79
- /**
80
- * Audio input devices iterator.
81
- *
82
- * If d is NULL, returns the first registered input audio/video device,
83
- * if d is non-NULL, returns the next registered input audio/video device after d
84
- * or NULL if d is the last one.
85
- */
86
- const AVInputFormat *av_input_audio_device_next(const AVInputFormat *d);
87
-
88
- /**
89
- * Video input devices iterator.
90
- *
91
- * If d is NULL, returns the first registered input audio/video device,
92
- * if d is non-NULL, returns the next registered input audio/video device after d
93
- * or NULL if d is the last one.
94
- */
95
- const AVInputFormat *av_input_video_device_next(const AVInputFormat *d);
96
-
97
- /**
98
- * Audio output devices iterator.
99
- *
100
- * If d is NULL, returns the first registered output audio/video device,
101
- * if d is non-NULL, returns the next registered output audio/video device after d
102
- * or NULL if d is the last one.
103
- */
104
- const AVOutputFormat *av_output_audio_device_next(const AVOutputFormat *d);
105
-
106
- /**
107
- * Video output devices iterator.
108
- *
109
- * If d is NULL, returns the first registered output audio/video device,
110
- * if d is non-NULL, returns the next registered output audio/video device after d
111
- * or NULL if d is the last one.
112
- */
113
- const AVOutputFormat *av_output_video_device_next(const AVOutputFormat *d);
114
-
115
- typedef struct AVDeviceRect {
116
- int x; /**< x coordinate of top left corner */
117
- int y; /**< y coordinate of top left corner */
118
- int width; /**< width */
119
- int height; /**< height */
120
- } AVDeviceRect;
121
-
122
- /**
123
- * Message types used by avdevice_app_to_dev_control_message().
124
- */
125
- enum AVAppToDevMessageType {
126
- /**
127
- * Dummy message.
128
- */
129
- AV_APP_TO_DEV_NONE = MKBETAG('N','O','N','E'),
130
-
131
- /**
132
- * Window size change message.
133
- *
134
- * Message is sent to the device every time the application changes the size
135
- * of the window device renders to.
136
- * Message should also be sent right after window is created.
137
- *
138
- * data: AVDeviceRect: new window size.
139
- */
140
- AV_APP_TO_DEV_WINDOW_SIZE = MKBETAG('G','E','O','M'),
141
-
142
- /**
143
- * Repaint request message.
144
- *
145
- * Message is sent to the device when window has to be repainted.
146
- *
147
- * data: AVDeviceRect: area required to be repainted.
148
- * NULL: whole area is required to be repainted.
149
- */
150
- AV_APP_TO_DEV_WINDOW_REPAINT = MKBETAG('R','E','P','A'),
151
-
152
- /**
153
- * Request pause/play.
154
- *
155
- * Application requests pause/unpause playback.
156
- * Mostly usable with devices that have internal buffer.
157
- * By default devices are not paused.
158
- *
159
- * data: NULL
160
- */
161
- AV_APP_TO_DEV_PAUSE = MKBETAG('P', 'A', 'U', ' '),
162
- AV_APP_TO_DEV_PLAY = MKBETAG('P', 'L', 'A', 'Y'),
163
- AV_APP_TO_DEV_TOGGLE_PAUSE = MKBETAG('P', 'A', 'U', 'T'),
164
-
165
- /**
166
- * Volume control message.
167
- *
168
- * Set volume level. It may be device-dependent if volume
169
- * is changed per stream or system wide. Per stream volume
170
- * change is expected when possible.
171
- *
172
- * data: double: new volume with range of 0.0 - 1.0.
173
- */
174
- AV_APP_TO_DEV_SET_VOLUME = MKBETAG('S', 'V', 'O', 'L'),
175
-
176
- /**
177
- * Mute control messages.
178
- *
179
- * Change mute state. It may be device-dependent if mute status
180
- * is changed per stream or system wide. Per stream mute status
181
- * change is expected when possible.
182
- *
183
- * data: NULL.
184
- */
185
- AV_APP_TO_DEV_MUTE = MKBETAG(' ', 'M', 'U', 'T'),
186
- AV_APP_TO_DEV_UNMUTE = MKBETAG('U', 'M', 'U', 'T'),
187
- AV_APP_TO_DEV_TOGGLE_MUTE = MKBETAG('T', 'M', 'U', 'T'),
188
-
189
- /**
190
- * Get volume/mute messages.
191
- *
192
- * Force the device to send AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED or
193
- * AV_DEV_TO_APP_MUTE_STATE_CHANGED command respectively.
194
- *
195
- * data: NULL.
196
- */
197
- AV_APP_TO_DEV_GET_VOLUME = MKBETAG('G', 'V', 'O', 'L'),
198
- AV_APP_TO_DEV_GET_MUTE = MKBETAG('G', 'M', 'U', 'T'),
199
- };
200
-
201
- /**
202
- * Message types used by avdevice_dev_to_app_control_message().
203
- */
204
- enum AVDevToAppMessageType {
205
- /**
206
- * Dummy message.
207
- */
208
- AV_DEV_TO_APP_NONE = MKBETAG('N','O','N','E'),
209
-
210
- /**
211
- * Create window buffer message.
212
- *
213
- * Device requests to create a window buffer. Exact meaning is device-
214
- * and application-dependent. Message is sent before rendering first
215
- * frame and all one-shot initializations should be done here.
216
- * Application is allowed to ignore preferred window buffer size.
217
- *
218
- * @note: Application is obligated to inform about window buffer size
219
- * with AV_APP_TO_DEV_WINDOW_SIZE message.
220
- *
221
- * data: AVDeviceRect: preferred size of the window buffer.
222
- * NULL: no preferred size of the window buffer.
223
- */
224
- AV_DEV_TO_APP_CREATE_WINDOW_BUFFER = MKBETAG('B','C','R','E'),
225
-
226
- /**
227
- * Prepare window buffer message.
228
- *
229
- * Device requests to prepare a window buffer for rendering.
230
- * Exact meaning is device- and application-dependent.
231
- * Message is sent before rendering of each frame.
232
- *
233
- * data: NULL.
234
- */
235
- AV_DEV_TO_APP_PREPARE_WINDOW_BUFFER = MKBETAG('B','P','R','E'),
236
-
237
- /**
238
- * Display window buffer message.
239
- *
240
- * Device requests to display a window buffer.
241
- * Message is sent when new frame is ready to be displayed.
242
- * Usually buffers need to be swapped in handler of this message.
243
- *
244
- * data: NULL.
245
- */
246
- AV_DEV_TO_APP_DISPLAY_WINDOW_BUFFER = MKBETAG('B','D','I','S'),
247
-
248
- /**
249
- * Destroy window buffer message.
250
- *
251
- * Device requests to destroy a window buffer.
252
- * Message is sent when device is about to be destroyed and window
253
- * buffer is not required anymore.
254
- *
255
- * data: NULL.
256
- */
257
- AV_DEV_TO_APP_DESTROY_WINDOW_BUFFER = MKBETAG('B','D','E','S'),
258
-
259
- /**
260
- * Buffer fullness status messages.
261
- *
262
- * Device signals buffer overflow/underflow.
263
- *
264
- * data: NULL.
265
- */
266
- AV_DEV_TO_APP_BUFFER_OVERFLOW = MKBETAG('B','O','F','L'),
267
- AV_DEV_TO_APP_BUFFER_UNDERFLOW = MKBETAG('B','U','F','L'),
268
-
269
- /**
270
- * Buffer readable/writable.
271
- *
272
- * Device informs that buffer is readable/writable.
273
- * When possible, device informs how many bytes can be read/write.
274
- *
275
- * @warning Device may not inform when number of bytes than can be read/write changes.
276
- *
277
- * data: int64_t: amount of bytes available to read/write.
278
- * NULL: amount of bytes available to read/write is not known.
279
- */
280
- AV_DEV_TO_APP_BUFFER_READABLE = MKBETAG('B','R','D',' '),
281
- AV_DEV_TO_APP_BUFFER_WRITABLE = MKBETAG('B','W','R',' '),
282
-
283
- /**
284
- * Mute state change message.
285
- *
286
- * Device informs that mute state has changed.
287
- *
288
- * data: int: 0 for not muted state, non-zero for muted state.
289
- */
290
- AV_DEV_TO_APP_MUTE_STATE_CHANGED = MKBETAG('C','M','U','T'),
291
-
292
- /**
293
- * Volume level change message.
294
- *
295
- * Device informs that volume level has changed.
296
- *
297
- * data: double: new volume with range of 0.0 - 1.0.
298
- */
299
- AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED = MKBETAG('C','V','O','L'),
300
- };
301
-
302
- /**
303
- * Send control message from application to device.
304
- *
305
- * @param s device context.
306
- * @param type message type.
307
- * @param data message data. Exact type depends on message type.
308
- * @param data_size size of message data.
309
- * @return >= 0 on success, negative on error.
310
- * AVERROR(ENOSYS) when device doesn't implement handler of the message.
311
- */
312
- int avdevice_app_to_dev_control_message(struct AVFormatContext *s,
313
- enum AVAppToDevMessageType type,
314
- void *data, size_t data_size);
315
-
316
- /**
317
- * Send control message from device to application.
318
- *
319
- * @param s device context.
320
- * @param type message type.
321
- * @param data message data. Can be NULL.
322
- * @param data_size size of message data.
323
- * @return >= 0 on success, negative on error.
324
- * AVERROR(ENOSYS) when application doesn't implement handler of the message.
325
- */
326
- int avdevice_dev_to_app_control_message(struct AVFormatContext *s,
327
- enum AVDevToAppMessageType type,
328
- void *data, size_t data_size);
329
-
330
- /**
331
- * Structure describes basic parameters of the device.
332
- */
333
- typedef struct AVDeviceInfo {
334
- char *device_name; /**< device name, format depends on device */
335
- char *device_description; /**< human friendly name */
336
- enum AVMediaType *media_types; /**< array indicating what media types(s), if any, a device can provide. If null, cannot provide any */
337
- int nb_media_types; /**< length of media_types array, 0 if device cannot provide any media types */
338
- } AVDeviceInfo;
339
-
340
- /**
341
- * List of devices.
342
- */
343
- typedef struct AVDeviceInfoList {
344
- AVDeviceInfo **devices; /**< list of autodetected devices */
345
- int nb_devices; /**< number of autodetected devices */
346
- int default_device; /**< index of default device or -1 if no default */
347
- } AVDeviceInfoList;
348
-
349
- /**
350
- * List devices.
351
- *
352
- * Returns available device names and their parameters.
353
- *
354
- * @note: Some devices may accept system-dependent device names that cannot be
355
- * autodetected. The list returned by this function cannot be assumed to
356
- * be always completed.
357
- *
358
- * @param s device context.
359
- * @param[out] device_list list of autodetected devices.
360
- * @return count of autodetected devices, negative on error.
361
- */
362
- int avdevice_list_devices(struct AVFormatContext *s, AVDeviceInfoList **device_list);
363
-
364
- /**
365
- * Convenient function to free result of avdevice_list_devices().
366
- *
367
- * @param device_list device list to be freed.
368
- */
369
- void avdevice_free_list_devices(AVDeviceInfoList **device_list);
370
-
371
- /**
372
- * List devices.
373
- *
374
- * Returns available device names and their parameters.
375
- * These are convinient wrappers for avdevice_list_devices().
376
- * Device context is allocated and deallocated internally.
377
- *
378
- * @param device device format. May be NULL if device name is set.
379
- * @param device_name device name. May be NULL if device format is set.
380
- * @param device_options An AVDictionary filled with device-private options. May be NULL.
381
- * The same options must be passed later to avformat_write_header() for output
382
- * devices or avformat_open_input() for input devices, or at any other place
383
- * that affects device-private options.
384
- * @param[out] device_list list of autodetected devices
385
- * @return count of autodetected devices, negative on error.
386
- * @note device argument takes precedence over device_name when both are set.
387
- */
388
- int avdevice_list_input_sources(const AVInputFormat *device, const char *device_name,
389
- AVDictionary *device_options, AVDeviceInfoList **device_list);
390
- int avdevice_list_output_sinks(const AVOutputFormat *device, const char *device_name,
391
- AVDictionary *device_options, AVDeviceInfoList **device_list);
392
-
393
- /**
394
- * @}
395
- */
396
-
397
- #endif /* AVDEVICE_AVDEVICE_H */
@@ -1,45 +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 AVDEVICE_VERSION_H
20
- #define AVDEVICE_VERSION_H
21
-
22
- /**
23
- * @file
24
- * @ingroup lavd
25
- * Libavdevice version macros
26
- */
27
-
28
- #include "libavutil/version.h"
29
-
30
- #include "version_major.h"
31
-
32
- #define LIBAVDEVICE_VERSION_MINOR 3
33
- #define LIBAVDEVICE_VERSION_MICRO 100
34
-
35
- #define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \
36
- LIBAVDEVICE_VERSION_MINOR, \
37
- LIBAVDEVICE_VERSION_MICRO)
38
- #define LIBAVDEVICE_VERSION AV_VERSION(LIBAVDEVICE_VERSION_MAJOR, \
39
- LIBAVDEVICE_VERSION_MINOR, \
40
- LIBAVDEVICE_VERSION_MICRO)
41
- #define LIBAVDEVICE_BUILD LIBAVDEVICE_VERSION_INT
42
-
43
- #define LIBAVDEVICE_IDENT "Lavd" AV_STRINGIFY(LIBAVDEVICE_VERSION)
44
-
45
- #endif /* AVDEVICE_VERSION_H */
@@ -1,43 +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 AVDEVICE_VERSION_MAJOR_H
20
- #define AVDEVICE_VERSION_MAJOR_H
21
-
22
- /**
23
- * @file
24
- * @ingroup lavd
25
- * Libavdevice version macros
26
- */
27
-
28
- #define LIBAVDEVICE_VERSION_MAJOR 61
29
-
30
- /**
31
- * FF_API_* defines may be placed below to indicate public API that will be
32
- * dropped at a future version bump. The defines themselves are not part of
33
- * the public API and may change, break or disappear at any time.
34
- */
35
-
36
- // reminder to remove the bktr device on next major bump
37
- #define FF_API_BKTR_DEVICE (LIBAVDEVICE_VERSION_MAJOR < 62)
38
- // reminder to remove the opengl device on next major bump
39
- #define FF_API_OPENGL_DEVICE (LIBAVDEVICE_VERSION_MAJOR < 62)
40
- // reminder to remove the sdl2 device on next major bump
41
- #define FF_API_SDL2_DEVICE (LIBAVDEVICE_VERSION_MAJOR < 62)
42
-
43
- #endif /* AVDEVICE_VERSION_MAJOR_H */