Initialisation du repository de Beta
This commit is contained in:
commit
14985f6dbb
9469 changed files with 1903273 additions and 0 deletions
13
venv/lib/python3.12/site-packages/av/audio/plane.py
Normal file
13
venv/lib/python3.12/site-packages/av/audio/plane.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import cython
|
||||
from cython.cimports.av.audio.frame import AudioFrame
|
||||
|
||||
|
||||
@cython.cclass
|
||||
class AudioPlane(Plane):
|
||||
def __cinit__(self, frame: AudioFrame, index: cython.int):
|
||||
# Only the first linesize is ever populated, but it applies to every plane.
|
||||
self.buffer_size = self.frame.ptr.linesize[0]
|
||||
|
||||
@cython.cfunc
|
||||
def _buffer_size(self) -> cython.size_t:
|
||||
return self.buffer_size
|
||||
Loading…
Add table
Add a link
Reference in a new issue