mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 12:02:09 +08:00
sim: update cl kernel path
old-commit-hash: 1baf0e3f4a40084a43c6a6d4d1a43b99e4e90532
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ class Camerad:
|
||||
cl_arg = f" -DHEIGHT={H} -DWIDTH={W} -DRGB_STRIDE={W * 3} -DUV_WIDTH={W // 2} -DUV_HEIGHT={H // 2} -DRGB_SIZE={W * H} -DCL_DEBUG "
|
||||
|
||||
# TODO: move rgb_to_yuv.cl to local dir once the frame stream camera is removed
|
||||
kernel_fn = os.path.join(BASEDIR, "selfdrive", "camerad", "transforms", "rgb_to_yuv.cl")
|
||||
kernel_fn = os.path.join(BASEDIR, "system", "camerad", "transforms", "rgb_to_yuv.cl")
|
||||
with open(kernel_fn) as f:
|
||||
prg = cl.Program(self.ctx, f.read()).build(cl_arg)
|
||||
self.krnl = prg.rgb_to_yuv
|
||||
|
||||
Reference in New Issue
Block a user