*/
const char *avdevice_license(void);
-/**
- * Iterate over all registered output devices.
- *
- * @param opaque a pointer where libavdevice will store the iteration state. Must
- * point to NULL to start the iteration.
- *
- * @return the next registered output device or NULL when the iteration is
- * finished
- */
-const AVOutputFormat *av_outdev_iterate(void **opaque);
-
-/**
- * Iterate over all registered input devices.
- *
- * @param opaque a pointer where libavdevice will store the iteration state. Must
- * point to NULL to start the iteration.
- *
- * @return the next registered input device or NULL when the iteration is
- * finished
- */
-const AVInputFormat *av_indev_iterate(void **opaque);
-
-#if FF_API_NEXT
/**
* Initialize libavdevice and register all the input and output devices.
*/
* if d is non-NULL, returns the next registered input audio/video device after d
* or NULL if d is the last one.
*/
-attribute_deprecated
AVInputFormat *av_input_audio_device_next(AVInputFormat *d);
/**
* if d is non-NULL, returns the next registered input audio/video device after d
* or NULL if d is the last one.
*/
-attribute_deprecated
AVInputFormat *av_input_video_device_next(AVInputFormat *d);
/**
* if d is non-NULL, returns the next registered output audio/video device after d
* or NULL if d is the last one.
*/
-attribute_deprecated
AVOutputFormat *av_output_audio_device_next(AVOutputFormat *d);
/**
* if d is non-NULL, returns the next registered output audio/video device after d
* or NULL if d is the last one.
*/
-attribute_deprecated
AVOutputFormat *av_output_video_device_next(AVOutputFormat *d);
-#endif
typedef struct AVDeviceRect {
int x; /**< x coordinate of top left corner */
enum AVDevToAppMessageType type,
void *data, size_t data_size);
+#if FF_API_DEVICE_CAPABILITIES
/**
* Following API allows user to probe device capabilities (supported codecs,
* pixel formats, sample formats, resolutions, channel counts, etc).
/**
* AVOption table used by devices to implement device capabilities API. Should not be used by a user.
*/
+attribute_deprecated
extern const AVOption av_device_capabilities[];
/**
*
* @return >= 0 on success, negative otherwise.
*/
+attribute_deprecated
int avdevice_capabilities_create(AVDeviceCapabilitiesQuery **caps, AVFormatContext *s,
AVDictionary **device_options);
* @param caps Device capabilities data to be freed.
* @param s Context of the device.
*/
+attribute_deprecated
void avdevice_capabilities_free(AVDeviceCapabilitiesQuery **caps, AVFormatContext *s);
+#endif
/**
* Structure describes basic parameters of the device.