* if d is non-NULL, returns the next registered input audio/video device after d
* or NULL if d is the last one.
*/
-AVInputFormat *av_input_audio_device_next(AVInputFormat *d);
+const AVInputFormat *av_input_audio_device_next(const AVInputFormat *d);
/**
* Video input devices iterator.
* if d is non-NULL, returns the next registered input audio/video device after d
* or NULL if d is the last one.
*/
-AVInputFormat *av_input_video_device_next(AVInputFormat *d);
+const AVInputFormat *av_input_video_device_next(const AVInputFormat *d);
/**
* Audio output devices iterator.
* if d is non-NULL, returns the next registered output audio/video device after d
* or NULL if d is the last one.
*/
-AVOutputFormat *av_output_audio_device_next(AVOutputFormat *d);
+const AVOutputFormat *av_output_audio_device_next(const AVOutputFormat *d);
/**
* Video output devices iterator.
* if d is non-NULL, returns the next registered output audio/video device after d
* or NULL if d is the last one.
*/
-AVOutputFormat *av_output_video_device_next(AVOutputFormat *d);
+const AVOutputFormat *av_output_video_device_next(const AVOutputFormat *d);
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.
* @return count of autodetected devices, negative on error.
* @note device argument takes precedence over device_name when both are set.
*/
-int avdevice_list_input_sources(struct AVInputFormat *device, const char *device_name,
+int avdevice_list_input_sources(const AVInputFormat *device, const char *device_name,
AVDictionary *device_options, AVDeviceInfoList **device_list);
-int avdevice_list_output_sinks(struct AVOutputFormat *device, const char *device_name,
+int avdevice_list_output_sinks(const AVOutputFormat *device, const char *device_name,
AVDictionary *device_options, AVDeviceInfoList **device_list);
/**