Files
sunnypilot/selfdrive/modeld/models/commonmodel.pxd
Harald Schäfer edf9522bc0 Model and YUV pipeline to uint8 (#33671)
* Squash

* 78cec5a0-577b-49ac-b443-f7cd327649bd/400

* bump tinygrad
2024-09-28 18:34:31 -07:00

19 lines
553 B
Cython

# 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
ModelFrame(cl_device_id, cl_context)
unsigned char * prepare(cl_mem, int, int, int, int, mat3, cl_mem*)