|
1 | 1 | from libc.stdint cimport int64_t, uint8_t, uint16_t, uint32_t, uint64_t |
2 | 2 |
|
3 | 3 | cdef extern from "libavutil/channel_layout.h" nogil: |
4 | | - ctypedef enum AVChannelOrder: |
5 | | - pass |
6 | 4 | ctypedef enum AVChannel: |
7 | 5 | AV_CHAN_NONE = -1 |
8 | 6 | AV_CHAN_FRONT_LEFT |
9 | 7 | AV_CHAN_FRONT_RIGHT |
10 | 8 | AV_CHAN_FRONT_CENTER |
11 | 9 | ctypedef struct AVChannelLayout: |
12 | | - AVChannelOrder order |
13 | 10 | int nb_channels |
14 | | - uint64_t mask |
15 | | - # union: |
16 | | - # uint64_t mask |
17 | | - # AVChannelCustom *map |
18 | | - void *opaque |
19 | 11 |
|
20 | 12 | int av_channel_layout_default(AVChannelLayout *ch_layout, int nb_channels) |
21 | 13 | int av_channel_layout_from_string(AVChannelLayout *channel_layout, const char *str) |
22 | 14 | int av_channel_layout_describe(const AVChannelLayout *channel_layout, char *buf, size_t buf_size) |
23 | 15 | int av_channel_name(char *buf, size_t buf_size, AVChannel channel_id) |
24 | 16 | int av_channel_description(char *buf, size_t buf_size, AVChannel channel_id) |
| 17 | + int av_channel_layout_compare(AVChannelLayout *chl, AVChannelLayout *chl1) |
25 | 18 | AVChannel av_channel_layout_channel_from_index(AVChannelLayout *channel_layout, unsigned int idx) |
26 | 19 |
|
27 | 20 | cdef extern from "libavcodec/avcodec.h" nogil: |
28 | | - cdef set pyav_get_available_codecs() |
29 | 21 | cdef int avcodec_version() |
30 | 22 | cdef char* avcodec_configuration() |
31 | 23 | cdef char* avcodec_license() |
@@ -290,6 +282,7 @@ cdef extern from "libavcodec/avcodec.h" nogil: |
290 | 282 |
|
291 | 283 | int subtitle_header_size |
292 | 284 | uint8_t *subtitle_header |
| 285 | + int64_t frame_num |
293 | 286 |
|
294 | 287 | cdef AVCodecContext* avcodec_alloc_context3(const AVCodec *codec) |
295 | 288 | cdef void avcodec_free_context(AVCodecContext **ctx) |
|
0 commit comments