Beta/venv/lib/python3.12/site-packages/av/codec/hwaccel.pxd

24 lines
595 B
Cython
Raw Normal View History

2026-02-06 22:23:20 +01:00
cimport libav as lib
from av.codec.codec cimport Codec
cdef class HWConfig:
cdef object __weakref__
2026-06-16 17:09:34 +00:00
cdef const lib.AVCodecHWConfig *ptr
cdef void _init(self, const lib.AVCodecHWConfig *ptr)
2026-02-06 22:23:20 +01:00
2026-06-16 17:09:34 +00:00
cdef HWConfig wrap_hwconfig(const lib.AVCodecHWConfig *ptr)
2026-02-06 22:23:20 +01:00
cdef class HWAccel:
cdef int _device_type
cdef str _device
cdef readonly Codec codec
cdef readonly HWConfig config
cdef lib.AVBufferRef *ptr
2026-06-16 17:09:34 +00:00
cdef readonly int device_id
cdef readonly bint is_hw_owned
2026-02-06 22:23:20 +01:00
cdef public bint allow_software_fallback
cdef public dict options
cdef public int flags