Voice et bot modif

This commit is contained in:
pi 2026-06-16 17:09:34 +00:00
parent 189d56026b
commit 7333a22bcd
10774 changed files with 634644 additions and 933308 deletions

View file

@ -6,15 +6,21 @@ from av.video.format cimport VideoFormat
from av.video.reformatter cimport VideoReformatter
cdef class VideoFrame(Frame):
# This is the buffer that is used to back everything in the AVFrame.
# We don't ever actually access it directly.
cdef uint8_t *_buffer
cdef object _np_buffer
cdef class CudaContext:
cdef readonly int device_id
cdef readonly bint primary_ctx
cdef lib.AVBufferRef* _device_ref
cdef dict _frames_cache
cdef lib.AVBufferRef* _get_device_ref(self)
cdef public lib.AVBufferRef* get_frames_ctx(
self, lib.AVPixelFormat sw_fmt, int width, int height
)
cdef class VideoFrame(Frame):
cdef CudaContext _cuda_ctx
cdef VideoReformatter reformatter
cdef readonly VideoFormat format
cdef readonly int _device_id
cdef _init(self, lib.AVPixelFormat format, unsigned int width, unsigned int height)
cdef _init_user_attributes(self)
cpdef save(self, object filepath)