19 #ifndef AVDEVICE_AVDEVICE_H
20 #define AVDEVICE_AVDEVICE_H
308 void *data,
size_t data_size);
322 void *data,
size_t data_size);
#define MKBETAG(a, b, c, d)
AVCodecID
Identify the syntax and semantics of the bitstream.
const AVOption av_device_capabilities[]
AVOption table used by devices to implement device capabilities API.
const char * avdevice_license(void)
Return the libavdevice license.
AVAppToDevMessageType
Message types used by avdevice_app_to_dev_control_message().
int avdevice_list_input_sources(struct AVInputFormat *device, const char *device_name, AVDictionary *device_options, AVDeviceInfoList **device_list)
List devices.
int avdevice_list_output_sinks(struct AVOutputFormat *device, const char *device_name, AVDictionary *device_options, AVDeviceInfoList **device_list)
int avdevice_list_devices(struct AVFormatContext *s, AVDeviceInfoList **device_list)
List devices.
AVInputFormat * av_input_video_device_next(AVInputFormat *d)
Video input devices iterator.
AVInputFormat * av_input_audio_device_next(AVInputFormat *d)
Audio input devices iterator.
void avdevice_free_list_devices(AVDeviceInfoList **device_list)
Convenient function to free result of avdevice_list_devices().
AVOutputFormat * av_output_video_device_next(AVOutputFormat *d)
Video output devices iterator.
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.
unsigned avdevice_version(void)
Return the LIBAVDEVICE_VERSION_INT constant.
void avdevice_register_all(void)
Initialize libavdevice and register all the input and output devices.
const char * avdevice_configuration(void)
Return the libavdevice build-time configuration.
void avdevice_capabilities_free(AVDeviceCapabilitiesQuery **caps, AVFormatContext *s)
Free resources created by avdevice_capabilities_create()
AVDevToAppMessageType
Message types used by avdevice_dev_to_app_control_message().
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.
AVOutputFormat * av_output_audio_device_next(AVOutputFormat *d)
Audio output devices iterator.
int avdevice_capabilities_create(AVDeviceCapabilitiesQuery **caps, AVFormatContext *s, AVDictionary **device_options)
Initialize capabilities probing API based on AVOption API.
@ AV_APP_TO_DEV_GET_VOLUME
Get volume/mute messages.
@ AV_APP_TO_DEV_NONE
Dummy message.
@ AV_APP_TO_DEV_TOGGLE_PAUSE
@ AV_APP_TO_DEV_PAUSE
Request pause/play.
@ AV_APP_TO_DEV_MUTE
Mute control messages.
@ AV_APP_TO_DEV_WINDOW_REPAINT
Repaint request message.
@ AV_APP_TO_DEV_SET_VOLUME
Volume control message.
@ AV_APP_TO_DEV_WINDOW_SIZE
Window size change message.
@ AV_APP_TO_DEV_TOGGLE_MUTE
@ AV_DEV_TO_APP_BUFFER_OVERFLOW
Buffer fullness status messages.
@ AV_DEV_TO_APP_CREATE_WINDOW_BUFFER
Create window buffer message.
@ AV_DEV_TO_APP_BUFFER_WRITABLE
@ AV_DEV_TO_APP_DISPLAY_WINDOW_BUFFER
Display window buffer message.
@ AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED
Volume level change message.
@ AV_DEV_TO_APP_BUFFER_READABLE
Buffer readable/writable.
@ AV_DEV_TO_APP_MUTE_STATE_CHANGED
Mute state change message.
@ AV_DEV_TO_APP_NONE
Dummy message.
@ AV_DEV_TO_APP_PREPARE_WINDOW_BUFFER
Prepare window buffer message.
@ AV_DEV_TO_APP_DESTROY_WINDOW_BUFFER
Destroy window buffer message.
@ AV_DEV_TO_APP_BUFFER_UNDERFLOW
struct AVDictionary AVDictionary
AVSampleFormat
Audio sample formats.
Libavutil version macros.
AVPixelFormat
Pixel format.
Describe the class of an AVClass context structure.
Following API allows user to probe device capabilities (supported codecs, pixel formats,...
enum AVPixelFormat pixel_format
AVFormatContext * device_context
enum AVSampleFormat sample_format
int nb_devices
number of autodetected devices
int default_device
index of default device or -1 if no default
AVDeviceInfo ** devices
list of autodetected devices
Structure describes basic parameters of the device.
char * device_description
human friendly name
char * device_name
device name, format depends on device
int x
x coordinate of top left corner
int y
y coordinate of top left corner
Rational number (pair of numerator and denominator).