only 100 yuv buffers on C2 (#21622)

This commit is contained in:
Willem Melching
2021-07-16 11:59:30 +02:00
committed by GitHub
parent 0c3f25ff85
commit 0d9e7ad241
2 changed files with 3 additions and 1 deletions
@@ -28,6 +28,8 @@
#include "selfdrive/camerad/cameras/camera_frame_stream.h"
#endif
const int YUV_COUNT = Hardware::EON() ? 100 : 40;
static cl_program build_debayer_program(cl_device_id device_id, cl_context context, const CameraInfo *ci, const CameraBuf *b, const CameraState *s) {
char args[4096];
snprintf(args, sizeof(args),
+1 -1
View File
@@ -27,7 +27,7 @@
#define CAMERA_ID_MAX 9
#define UI_BUF_COUNT 4
#define YUV_COUNT 100
#define LOG_CAMERA_ID_FCAMERA 0
#define LOG_CAMERA_ID_DCAMERA 1
#define LOG_CAMERA_ID_ECAMERA 2