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

pull/25737/head
Dean Lee 3 years ago committed by GitHub
parent 467c4f7fb3
commit 25ce997f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      system/camerad/cameras/camera_common.cc
  2. 5
      system/camerad/cameras/camera_common.h

@ -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) { 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; vipc_server = v;
this->yuv_type = init_yuv_type; this->yuv_type = init_yuv_type;
const CameraInfo *ci = &s->ci;
camera_state = s;
frame_buf_count = frame_cnt; frame_buf_count = frame_cnt;
const CameraInfo *ci = &s->ci;
// RAW frame // RAW frame
const int frame_size = (ci->frame_height + ci->extra_height) * ci->frame_stride; const int frame_size = (ci->frame_height + ci->extra_height) * ci->frame_stride;
camera_bufs = std::make_unique<VisionBuf[]>(frame_buf_count); camera_bufs = std::make_unique<VisionBuf[]>(frame_buf_count);

@ -81,15 +81,10 @@ class Debayer;
class CameraBuf { class CameraBuf {
private: private:
VisionIpcServer *vipc_server; VisionIpcServer *vipc_server;
CameraState *camera_state;
Debayer *debayer = nullptr; Debayer *debayer = nullptr;
VisionStreamType yuv_type; VisionStreamType yuv_type;
int cur_buf_idx; int cur_buf_idx;
SafeQueue<int> safe_queue; SafeQueue<int> safe_queue;
int frame_buf_count; int frame_buf_count;
public: public:

Loading…
Cancel
Save