Loading...
Searching...
No Matches
avdevice.h File Reference
libavdevice

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 | 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.
const char * | avdevice_configuration (void)
| Return the libavdevice build-time configuration.
const char * | avdevice_license (void)
| Return the libavdevice license.
void | avdevice_register_all (void)
| Initialize libavdevice and register all the input and output devices.
const AVInputFormat * | av_input_audio_device_next (const AVInputFormat *d)
| Audio input devices iterator.
const AVInputFormat * | av_input_video_device_next (const AVInputFormat *d)
| Video input devices iterator.
const AVOutputFormat * | av_output_audio_device_next (const AVOutputFormat *d)
| Audio output devices iterator.
const AVOutputFormat * | av_output_video_device_next (const 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.
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_list_devices (struct AVFormatContext *s, AVDeviceInfoList **device_list)
| List devices.
void | avdevice_free_list_devices (AVDeviceInfoList **device_list)
| Convenient function to free result of avdevice_list_devices().
int | avdevice_list_input_sources (const AVInputFormat *device, const char *device_name, AVDictionary *device_options, AVDeviceInfoList **device_list)
| List devices.
int | avdevice_list_output_sinks (const AVOutputFormat *device, const char *device_name, AVDictionary *device_options, AVDeviceInfoList **device_list)

## Detailed Description

Main libavdevice API header.

Definition in file avdevice.h.