11from libc.stdint cimport int64_t, uint8_t, uint64_t, int32_t
22
33
4- cdef extern from " libavutil/mathematics.h" nogil:
5- pass
6-
74cdef extern from " libavutil/display.h" nogil:
85 cdef double av_display_rotation_get(const int32_t matrix[9 ])
96
@@ -12,7 +9,7 @@ cdef extern from "libavutil/rational.h" nogil:
129
1310cdef extern from " libavutil/avutil.h" nogil:
1411 cdef const char * av_version_info()
15- cdef int avutil_version()
12+ cdef int avutil_version()
1613 cdef char * avutil_configuration()
1714 cdef char * avutil_license()
1815
@@ -34,15 +31,6 @@ cdef extern from "libavutil/avutil.h" nogil:
3431 PIX_FMT_RGB24
3532 PIX_FMT_RGBA
3633
37- cdef enum AVRounding:
38- AV_ROUND_ZERO
39- AV_ROUND_INF
40- AV_ROUND_DOWN
41- AV_ROUND_UP
42- AV_ROUND_NEAR_INF
43- # This is nice, but only in FFMpeg:
44- # AV_ROUND_PASS_MINMAX
45-
4634 cdef enum AVColorSpace:
4735 AVCOL_SPC_RGB
4836 AVCOL_SPC_BT709
@@ -83,37 +71,14 @@ cdef extern from "libavutil/avutil.h" nogil:
8371 AVCOL_PRI_NB
8472
8573 cdef enum AVColorTransferCharacteristic:
86- AVCOL_TRC_RESERVED0
87- AVCOL_TRC_BT709
88- AVCOL_TRC_UNSPECIFIED
89- AVCOL_TRC_RESERVED
90- AVCOL_TRC_GAMMA22
91- AVCOL_TRC_GAMMA28
92- AVCOL_TRC_SMPTE170M
93- AVCOL_TRC_SMPTE240M
94- AVCOL_TRC_LINEAR
95- AVCOL_TRC_LOG
96- AVCOL_TRC_LOG_SQRT
97- AVCOL_TRC_IEC61966_2_4
98- AVCOL_TRC_BT1361_ECG
99- AVCOL_TRC_IEC61966_2_1
100- AVCOL_TRC_BT2020_10
101- AVCOL_TRC_BT2020_12
102- AVCOL_TRC_SMPTE2084
103- AVCOL_TRC_SMPTEST2084
104- AVCOL_TRC_SMPTE428
105- AVCOL_TRC_SMPTEST428_1
106- AVCOL_TRC_ARIB_STD_B67
107- AVCOL_TRC_NB
74+ pass
10875
10976 cdef void * av_malloc(size_t size)
11077 cdef void * av_mallocz(size_t size)
11178 cdef void * av_realloc(void * ptr, size_t size)
11279 cdef void av_free(void * ptr)
11380 cdef void av_freep(void * ptr)
114-
11581 cdef int av_get_bytes_per_sample(AVSampleFormat sample_fmt)
116-
11782 cdef int av_samples_get_buffer_size(
11883 int * linesize,
11984 int nb_channels,
@@ -124,7 +89,6 @@ cdef extern from "libavutil/avutil.h" nogil:
12489 ctypedef struct AVRational:
12590 int num
12691 int den
127- cdef AVRational AV_TIME_BASE_Q
12892 cdef int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
12993 cdef int64_t av_rescale(int64_t a, int64_t b, int64_t c)
13094 cdef const char * av_get_media_type_string(AVMediaType media_type)
@@ -142,13 +106,9 @@ cdef extern from "libavutil/pixdesc.h" nogil:
142106 AV_PIX_FMT_FLAG_BE
143107 AV_PIX_FMT_FLAG_PAL
144108 AV_PIX_FMT_FLAG_BITSTREAM
145- AV_PIX_FMT_FLAG_HWACCEL
146109 AV_PIX_FMT_FLAG_PLANAR
147110 AV_PIX_FMT_FLAG_RGB
148- AV_PIX_FMT_FLAG_PSEUDOPAL
149- AV_PIX_FMT_FLAG_ALPHA
150111 AV_PIX_FMT_FLAG_BAYER
151- AV_PIX_FMT_FLAG_FLOAT
152112
153113 # See: http://ffmpeg.org/doxygen/trunk/structAVPixFmtDescriptor.html
154114 cdef struct AVPixFmtDescriptor:
@@ -161,10 +121,8 @@ cdef extern from "libavutil/pixdesc.h" nogil:
161121
162122 cdef AVPixFmtDescriptor* av_pix_fmt_desc_get(AVPixelFormat pix_fmt)
163123 cdef AVPixFmtDescriptor* av_pix_fmt_desc_next(AVPixFmtDescriptor * prev)
164-
165124 cdef char * av_get_pix_fmt_name(AVPixelFormat pix_fmt)
166125 cdef AVPixelFormat av_get_pix_fmt(char * name)
167-
168126 int av_get_bits_per_pixel(AVPixFmtDescriptor * pixdesc)
169127 int av_get_padded_bits_per_pixel(AVPixFmtDescriptor * pixdesc)
170128
@@ -186,14 +144,6 @@ cdef extern from "stdarg.h" nogil:
186144 ctypedef struct va_list:
187145 pass
188146
189-
190- cdef extern from " Python.h" nogil:
191- cdef int Py_AddPendingCall(void * , void * )
192- void PyErr_PrintEx(int set_sys_last_vars)
193- int Py_IsInitialized()
194- void PyErr_Display(object , object , object )
195-
196-
197147cdef extern from " libavutil/opt.h" nogil:
198148 cdef enum AVOptionType:
199149 AV_OPT_TYPE_FLAGS
0 commit comments