You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
762 B
26 lines
762 B
# distutils: language = c++
|
|
|
|
from msgq.visionipc.visionipc cimport cl_device_id, cl_context, cl_mem
|
|
|
|
cdef extern from "common/mat.h":
|
|
cdef struct mat3:
|
|
float v[9]
|
|
|
|
cdef extern from "common/clutil.h":
|
|
cdef unsigned long CL_DEVICE_TYPE_DEFAULT
|
|
cl_device_id cl_get_device_id(unsigned long)
|
|
cl_context cl_create_context(cl_device_id)
|
|
|
|
cdef extern from "selfdrive/modeld/models/commonmodel.h":
|
|
cppclass ModelFrame:
|
|
int buf_size
|
|
# unsigned char * buffer_from_cl(cl_mem*, int);
|
|
unsigned char * prepare(cl_mem, int, int, int, int, mat3, cl_mem*)
|
|
|
|
cppclass DrivingModelFrame:
|
|
int buf_size
|
|
DrivingModelFrame(cl_device_id, cl_context)
|
|
|
|
cppclass MonitoringModelFrame:
|
|
int buf_size
|
|
MonitoringModelFrame(cl_device_id, cl_context)
|
|
|