import cython @cython.cclass class Plane(Buffer): """ Base class for audio and video planes. See also :class:`~av.audio.plane.AudioPlane` and :class:`~av.video.plane.VideoPlane`. """ def __cinit__(self, frame: Frame, index: cython.int): self.frame = frame self.index = index def __repr__(self): return ( f"" ) @cython.cfunc def _buffer_ptr(self) -> cython.p_void: return self.frame.ptr.extended_data[self.index]