Debian Codegraph @

av/audio/plane.py

raw
1 import cython
2 from cython.cimports.av.audio.frame import AudioFrame
3
4
5 @cython.final
6 @cython.cclass
7 class AudioPlane(Plane):
8 def __cinit__(self, frame: AudioFrame, index: cython.int):
9 # Only the first linesize is ever populated, but it applies to every plane.
10 self.buffer_size = self.frame.ptr.linesize[0]
11
12 @cython.cfunc
13 def _buffer_size(self) -> cython.size_t:
14 return self.buffer_size