CameraBuf: remove unused member 'camera_state' (#25736)

old-commit-hash: 25ce997f3768913915e83b72f4b3c2649a83d720
This commit is contained in:
Dean Lee
2022-09-17 11:11:46 +08:00
committed by GitHub
parent 0ce385a486
commit e1c1a8fc2a
2 changed files with 1 additions and 8 deletions
+1 -3
View File
@@ -65,11 +65,9 @@ private:
void CameraBuf::init(cl_device_id device_id, cl_context context, CameraState *s, VisionIpcServer * v, int frame_cnt, VisionStreamType init_yuv_type) {
vipc_server = v;
this->yuv_type = init_yuv_type;
const CameraInfo *ci = &s->ci;
camera_state = s;
frame_buf_count = frame_cnt;
const CameraInfo *ci = &s->ci;
// RAW frame
const int frame_size = (ci->frame_height + ci->extra_height) * ci->frame_stride;
camera_bufs = std::make_unique<VisionBuf[]>(frame_buf_count);
-5
View File
@@ -81,15 +81,10 @@ class Debayer;
class CameraBuf {
private:
VisionIpcServer *vipc_server;
CameraState *camera_state;
Debayer *debayer = nullptr;
VisionStreamType yuv_type;
int cur_buf_idx;
SafeQueue<int> safe_queue;
int frame_buf_count;
public: