-
Notifications
You must be signed in to change notification settings - Fork 434
Expand file tree
/
Copy pathavdevice.pxd
More file actions
30 lines (27 loc) · 905 Bytes
/
avdevice.pxd
File metadata and controls
30 lines (27 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cdef extern from "libavdevice/avdevice.h" nogil:
cdef int avdevice_version()
cdef char* avdevice_configuration()
cdef char* avdevice_license()
void avdevice_register_all()
cdef struct AVDeviceInfo:
char *device_name
char *device_description
int nb_media_types
AVMediaType *media_types
cdef struct AVDeviceInfoList:
AVDeviceInfo **devices
int nb_devices
int default_device
int avdevice_list_input_sources(
const AVInputFormat *device,
const char *device_name,
AVDictionary *device_options,
AVDeviceInfoList **device_list,
)
int avdevice_list_output_sinks(
const AVOutputFormat *device,
const char *device_name,
AVDictionary *device_options,
AVDeviceInfoList **device_list,
)
void avdevice_free_list_devices(AVDeviceInfoList **device_list)