19 #ifndef AVDEVICE_AVDEVICE_H
20 #define AVDEVICE_AVDEVICE_H
307 void *
data,
size_t data_size);
321 void *
data,
size_t data_size);
int avdevice_list_devices(struct AVFormatContext *s, AVDeviceInfoList **device_list)
List devices.
Structure describes basic parameters of the device.
int x
x coordinate of top left corner
ptrdiff_t const GLvoid * data
AVInputFormat * av_input_audio_device_next(AVInputFormat *d)
Audio input devices iterator.
char * device_description
human friendly name
const char * avdevice_configuration(void)
Return the libavdevice build-time configuration.
const char * avdevice_license(void)
Return the libavdevice license.
char * device_name
device name, format depends on device
Destroy window buffer message.
AVOutputFormat * av_output_audio_device_next(AVOutputFormat *d)
Audio output devices iterator.
unsigned avdevice_version(void)
Return the LIBAVDEVICE_VERSION_INT constant.
Window size change message.
void avdevice_free_list_devices(AVDeviceInfoList **device_list)
Convenient function to free result of avdevice_list_devices().
int avdevice_dev_to_app_control_message(struct AVFormatContext *s, enum AVDevToAppMessageType type, void *data, size_t data_size)
Send control message from device to application.
int avdevice_capabilities_create(AVDeviceCapabilitiesQuery **caps, AVFormatContext *s, AVDictionary **device_options)
Initialize capabilities probing API based on AVOption API.
Buffer readable/writable.
AVDevToAppMessageType
Message types used by avdevice_dev_to_app_control_message().
Prepare window buffer message.
Create window buffer message.
AVCodecID
Identify the syntax and semantics of the bitstream.
enum AVSampleFormat sample_format
int avdevice_app_to_dev_control_message(struct AVFormatContext *s, enum AVAppToDevMessageType type, void *data, size_t data_size)
Send control message from application to device.
AVDeviceInfo ** devices
list of autodetected devices
AVAppToDevMessageType
Message types used by avdevice_app_to_dev_control_message().
AVFormatContext * device_context
const AVOption av_device_capabilities[]
AVOption table used by devices to implement device capabilities API.
Volume level change message.
int avdevice_list_input_sources(struct AVInputFormat *device, const char *device_name, AVDictionary *device_options, AVDeviceInfoList **device_list)
List devices.
enum AVPixelFormat pixel_format
Mute state change message.
AVSampleFormat
Audio sample formats.
void avdevice_register_all(void)
Initialize libavdevice and register all the input and output devices.
Buffer fullness status messages.
Describe the class of an AVClass context structure.
rational number numerator/denominator
AVInputFormat * av_input_video_device_next(AVInputFormat *d)
Video input devices iterator.
int default_device
index of default device or -1 if no default
Libavdevice version macros.
void avdevice_capabilities_free(AVDeviceCapabilitiesQuery **caps, AVFormatContext *s)
Free resources created by avdevice_capabilities_create()
AVOutputFormat * av_output_video_device_next(AVOutputFormat *d)
Video output devices iterator.
#define MKBETAG(a, b, c, d)
int avdevice_list_output_sinks(struct AVOutputFormat *device, const char *device_name, AVDictionary *device_options, AVDeviceInfoList **device_list)
int y
y coordinate of top left corner
Get volume/mute messages.
int nb_devices
number of autodetected devices
Following API allows user to probe device capabilities (supported codecs, pixel formats, sample formats, resolutions, channel counts, etc).
AVPixelFormat
Pixel format.
Display window buffer message.