-
Notifications
You must be signed in to change notification settings - Fork 433
Expand file tree
/
Copy pathsamplefmt.pxd
More file actions
35 lines (30 loc) · 1.03 KB
/
samplefmt.pxd
File metadata and controls
35 lines (30 loc) · 1.03 KB
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
31
32
33
34
35
cdef extern from "libavutil/samplefmt.h" nogil:
cdef enum AVSampleFormat:
AV_SAMPLE_FMT_NONE
AV_SAMPLE_FMT_U8
AV_SAMPLE_FMT_S16
AV_SAMPLE_FMT_S32
AV_SAMPLE_FMT_FLT
AV_SAMPLE_FMT_DBL
AV_SAMPLE_FMT_U8P
AV_SAMPLE_FMT_S16P
AV_SAMPLE_FMT_S32P
AV_SAMPLE_FMT_FLTP
AV_SAMPLE_FMT_DBLP
AV_SAMPLE_FMT_NB # Number.
# Find by name.
cdef AVSampleFormat av_get_sample_fmt(char* name)
# Inspection.
cdef char * av_get_sample_fmt_name(AVSampleFormat sample_fmt)
cdef int av_get_bytes_per_sample(AVSampleFormat sample_fmt)
cdef int av_sample_fmt_is_planar(AVSampleFormat sample_fmt)
# Alternative forms.
cdef AVSampleFormat av_get_packed_sample_fmt(AVSampleFormat sample_fmt)
cdef AVSampleFormat av_get_planar_sample_fmt(AVSampleFormat sample_fmt)
cdef int av_samples_get_buffer_size(
int *linesize,
int nb_channels,
int nb_samples,
AVSampleFormat sample_fmt,
int align
)