mirror of https://github.com/commaai/cereal.git
Rename RGB vision streams to match YUV streams (#256)
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER * wide too Co-authored-by: GijsKoning <gijs-koning@live.nl>
This commit is contained in:
parent
8ada2a75b3
commit
e2a813144f
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue