Voice et bot modif
This commit is contained in:
parent
189d56026b
commit
7333a22bcd
10774 changed files with 634644 additions and 933308 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue