ui: fix EGL_BAD_MATCH error when running profile_onroad.py on device (#36608)

fix failed to create EGL image:12297 error on device
This commit is contained in:
Dean Lee
2025-12-01 08:06:33 +08:00
committed by GitHub
parent 151d256dd6
commit 749e236bc0
+2 -2
View File
@@ -88,9 +88,9 @@ if __name__ == "__main__":
print("Running...")
patch_submaster(message_chunks)
W, H = 1928, 1208
W, H = 2048, 1216
vipc = VisionIpcServer("camerad")
vipc.create_buffers(VisionStreamType.VISION_STREAM_ROAD, 5, 1928, 1208)
vipc.create_buffers(VisionStreamType.VISION_STREAM_ROAD, 5, W, H)
vipc.start_listener()
yuv_buffer_size = W * H + (W // 2) * (H // 2) * 2
yuv_data = np.random.randint(0, 256, yuv_buffer_size, dtype=np.uint8).tobytes()