File: loudnorm.pxd

package info (click to toggle)
python-av 16.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,684 kB
  • sloc: python: 7,607; sh: 182; ansic: 174; makefile: 135
file content (19 lines) | stat: -rw-r--r-- 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from av.audio.stream cimport AudioStream


cdef extern from "libavcodec/avcodec.h":
    ctypedef struct AVCodecContext:
        pass

cdef extern from "libavformat/avformat.h":
    ctypedef struct AVFormatContext:
        pass

cdef extern from "loudnorm_impl.h":
    char* loudnorm_get_stats(
        AVFormatContext* fmt_ctx,
        int audio_stream_index,
        const char* loudnorm_args
    ) nogil

cpdef bytes stats(str loudnorm_args, AudioStream stream)