mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-15 03:53:58 +08:00
17 lines
357 B
Cython
17 lines
357 B
Cython
# distutils: language = c++
|
|
#cython: language_level=3
|
|
|
|
from .visionipc cimport VisionBuf as cppVisionBuf
|
|
from .visionipc cimport cl_device_id, cl_context
|
|
|
|
cdef class CLContext:
|
|
cdef cl_device_id device_id
|
|
cdef cl_context context
|
|
|
|
cdef class VisionBuf:
|
|
cdef cppVisionBuf * buf
|
|
cdef object _owner
|
|
|
|
@staticmethod
|
|
cdef create(cppVisionBuf*, object)
|