Beta/venv/lib/python3.12/site-packages/av/video/plane.pxd

39 lines
772 B
Cython
Raw Normal View History

2026-06-16 17:09:34 +00:00
from libc.stdint cimport int64_t, uint8_t, uint16_t, uint64_t
2026-02-06 22:23:20 +01:00
from av.plane cimport Plane
from av.video.format cimport VideoFormatComponent
cdef class VideoPlane(Plane):
cdef readonly size_t buffer_size
cdef readonly unsigned int width, height
2026-06-16 17:09:34 +00:00
cdef enum DeviceType:
kCPU = 1
kCuda = 2
cdef struct DLDataType:
uint8_t code
uint8_t bits
uint16_t lanes
cdef struct DLTensor:
void* data
int device_type
int device_id
int ndim
DLDataType dtype
int64_t* shape
int64_t* strides
uint64_t byte_offset
cdef struct DLManagedTensor
ctypedef void (*DLManagedTensorDeleter)(DLManagedTensor*) noexcept nogil
cdef struct DLManagedTensor:
DLTensor dl_tensor
void* manager_ctx
DLManagedTensorDeleter deleter