diff --git a/visionipc/visionbuf.h b/visionipc/visionbuf.h index b27a08b..864fac9 100644 --- a/visionipc/visionbuf.h +++ b/visionipc/visionbuf.h @@ -12,12 +12,14 @@ #define VISIONBUF_SYNC_TO_DEVICE 1 enum VisionStreamType { - VISION_STREAM_RGB_BACK, - VISION_STREAM_RGB_FRONT, - VISION_STREAM_RGB_WIDE, + VISION_STREAM_RGB_ROAD, + VISION_STREAM_RGB_DRIVER, + VISION_STREAM_RGB_WIDE_ROAD, + VISION_STREAM_ROAD, VISION_STREAM_DRIVER, VISION_STREAM_WIDE_ROAD, + VISION_STREAM_RGB_MAP, VISION_STREAM_MAX, }; diff --git a/visionipc/visionipc_pyx.pyx b/visionipc/visionipc_pyx.pyx index 3168f1e..b39347b 100644 --- a/visionipc/visionipc_pyx.pyx +++ b/visionipc/visionipc_pyx.pyx @@ -16,12 +16,13 @@ from .visionipc cimport VisionBuf as cppVisionBuf from .visionipc cimport VisionIpcBufExtra cpdef enum VisionStreamType: - VISION_STREAM_RGB_BACK - VISION_STREAM_RGB_FRONT - VISION_STREAM_RGB_WIDE + VISION_STREAM_RGB_ROAD + VISION_STREAM_RGB_DRIVER + VISION_STREAM_RGB_WIDE_ROAD VISION_STREAM_ROAD VISION_STREAM_DRIVER VISION_STREAM_WIDE_ROAD + VISION_STREAM_RGB_MAP cdef class VisionIpcServer: diff --git a/visionipc/visionipc_tests.cc b/visionipc/visionipc_tests.cc index 4d1df05..811cc69 100644 --- a/visionipc/visionipc_tests.cc +++ b/visionipc/visionipc_tests.cc @@ -40,11 +40,11 @@ TEST_CASE("Check buffers"){ TEST_CASE("Check yuv/rgb"){ VisionIpcServer server("camerad"); server.create_buffers(VISION_STREAM_ROAD, 1, false, 100, 100); - server.create_buffers(VISION_STREAM_RGB_BACK, 1, true, 100, 100); + server.create_buffers(VISION_STREAM_RGB_ROAD, 1, true, 100, 100); server.start_listener(); VisionIpcClient client_yuv = VisionIpcClient("camerad", VISION_STREAM_ROAD, false); - VisionIpcClient client_rgb = VisionIpcClient("camerad", VISION_STREAM_RGB_BACK, false); + VisionIpcClient client_rgb = VisionIpcClient("camerad", VISION_STREAM_RGB_ROAD, false); client_yuv.connect(); client_rgb.connect();