av/filter/loudnorm.pxd
raw| 1 | from av.audio.stream cimport AudioStream |
| 2 | |
| 3 | |
| 4 | cdef extern from "libavcodec/avcodec.h": |
| 5 | ctypedef struct AVCodecContext: |
| 6 | pass |
| 7 | |
| 8 | cdef extern from "libavformat/avformat.h": |
| 9 | ctypedef struct AVFormatContext: |
| 10 | pass |
| 11 | |
| 12 | cdef extern from "loudnorm_impl.h": |
| 13 | char* loudnorm_get_stats( |
| 14 | AVFormatContext* fmt_ctx, |
| 15 | int audio_stream_index, |
| 16 | const char* loudnorm_args |
| 17 | ) nogil |
| 18 | |
| 19 | cpdef bytes stats(str loudnorm_args, AudioStream stream) |