mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 20:12:07 +08:00
CameraBuf: remove unused member 'camera_state' (#25736)
old-commit-hash: 25ce997f3768913915e83b72f4b3c2649a83d720
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user