FFmpeg 5.1.6
Data Structures | Enumerations | Functions | Variables
avdevice.h File Reference

Main libavdevice API header. More...

#include "version_major.h"
#include "version.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/dict.h"
#include "libavformat/avformat.h"

Go to the source code of this file.

Data Structures

struct  AVDeviceRect
 
struct  AVDeviceCapabilitiesQuery
 Following API allows user to probe device capabilities (supported codecs, pixel formats, sample formats, resolutions, channel counts, etc). More...
 
struct  AVDeviceInfo
 Structure describes basic parameters of the device. More...
 
struct  AVDeviceInfoList
 List of devices. More...
 

Enumerations

enum  AVAppToDevMessageType {
  AV_APP_TO_DEV_NONE = MKBETAG('N','O','N','E') , AV_APP_TO_DEV_WINDOW_SIZE = MKBETAG('G','E','O','M') , AV_APP_TO_DEV_WINDOW_REPAINT = MKBETAG('R','E','P','A') , AV_APP_TO_DEV_PAUSE = MKBETAG('P', 'A', 'U', ' ') ,
  AV_APP_TO_DEV_PLAY = MKBETAG('P', 'L', 'A', 'Y') , AV_APP_TO_DEV_TOGGLE_PAUSE = MKBETAG('P', 'A', 'U', 'T') , AV_APP_TO_DEV_SET_VOLUME = MKBETAG('S', 'V', 'O', 'L') , AV_APP_TO_DEV_MUTE = MKBETAG(' ', 'M', 'U', 'T') ,
  AV_APP_TO_DEV_UNMUTE = MKBETAG('U', 'M', 'U', 'T') , AV_APP_TO_DEV_TOGGLE_MUTE = MKBETAG('T', 'M', 'U', 'T') , AV_APP_TO_DEV_GET_VOLUME = MKBETAG('G', 'V', 'O', 'L') , AV_APP_TO_DEV_GET_MUTE = MKBETAG('G', 'M', 'U', 'T')
}
 Message types used by avdevice_app_to_dev_control_message(). More...
 
enum  AVDevToAppMessageType {
  AV_DEV_TO_APP_NONE = MKBETAG('N','O','N','E') , AV_DEV_TO_APP_CREATE_WINDOW_BUFFER = MKBETAG('B','C','R','E') , AV_DEV_TO_APP_PREPARE_WINDOW_BUFFER = MKBETAG('B','P','R','E') , AV_DEV_TO_APP_DISPLAY_WINDOW_BUFFER = MKBETAG('B','D','I','S') ,
  AV_DEV_TO_APP_DESTROY_WINDOW_BUFFER = MKBETAG('B','D','E','S') , AV_DEV_TO_APP_BUFFER_OVERFLOW = MKBETAG('B','O','F','L') , AV_DEV_TO_APP_BUFFER_UNDERFLOW = MKBETAG('B','U','F','L') , AV_DEV_TO_APP_BUFFER_READABLE = MKBETAG('B','R','D',' ') ,
  AV_DEV_TO_APP_BUFFER_WRITABLE = MKBETAG('B','W','R',' ') , AV_DEV_TO_APP_MUTE_STATE_CHANGED = MKBETAG('C','M','U','T') , AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED = MKBETAG('C','V','O','L')
}
 Message types used by avdevice_dev_to_app_control_message(). More...
 

Functions

unsigned avdevice_version (void)
 Return the LIBAVDEVICE_VERSION_INT constant. More...
 
const char * avdevice_configuration (void)
 Return the libavdevice build-time configuration. More...
 
const char * avdevice_license (void)
 Return the libavdevice license. More...
 
void avdevice_register_all (void)
 Initialize libavdevice and register all the input and output devices. More...
 
const AVInputFormatav_input_audio_device_next (const AVInputFormat *d)
 Audio input devices iterator. More...
 
const AVInputFormatav_input_video_device_next (const AVInputFormat *d)
 Video input devices iterator. More...
 
const AVOutputFormatav_output_audio_device_next (const AVOutputFormat *d)
 Audio output devices iterator. More...
 
const AVOutputFormatav_output_video_device_next (const AVOutputFormat *d)
 Video output devices iterator. More...
 
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. More...
 
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. More...
 
attribute_deprecated int avdevice_capabilities_create (AVDeviceCapabilitiesQuery **caps, AVFormatContext *s, AVDictionary **device_options)
 Initialize capabilities probing API based on AVOption API. More...
 
attribute_deprecated void avdevice_capabilities_free (AVDeviceCapabilitiesQuery **caps, AVFormatContext *s)
 Free resources created by avdevice_capabilities_create() More...
 
int avdevice_list_devices (struct AVFormatContext *s, AVDeviceInfoList **device_list)
 List devices. More...
 
void avdevice_free_list_devices (AVDeviceInfoList **device_list)
 Convenient function to free result of avdevice_list_devices(). More...
 
int avdevice_list_input_sources (const AVInputFormat *device, const char *device_name, AVDictionary *device_options, AVDeviceInfoList **device_list)
 List devices. More...
 
int avdevice_list_output_sinks (const AVOutputFormat *device, const char *device_name, AVDictionary *device_options, AVDeviceInfoList **device_list)
 

Variables

attribute_deprecated const AVOption av_device_capabilities []
 AVOption table used by devices to implement device capabilities API. More...
 

Detailed Description

Main libavdevice API header.

Definition in file avdevice.h.