Skip to content

Commit

Permalink
bps
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Nov 1, 2024
1 parent 736b6a2 commit f693217
Show file tree
Hide file tree
Showing 8 changed files with 291 additions and 42 deletions.
3 changes: 3 additions & 0 deletions system/camerad/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bps.h
blob.h
/includes/
2 changes: 2 additions & 0 deletions system/camerad/SConscript
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Import('env', 'arch', 'messaging', 'common', 'gpucommon', 'visionipc')

env['CPPPATH'].append("includes/")

libs = ['pthread', common, 'jpeg', 'OpenCL', messaging, visionipc, gpucommon]

if arch != "Darwin":
Expand Down
3 changes: 2 additions & 1 deletion system/camerad/cameras/camera_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ void CameraBuf::init(cl_device_id device_id, cl_context context, SpectraCamera *

const SensorInfo *sensor = cam->sensor.get();

is_raw = cam->is_raw;
//is_raw = cam->is_raw;
is_raw = false;
camera_bufs_raw = std::make_unique<VisionBuf[]>(frame_buf_count);
frame_metadata = std::make_unique<FrameMetadata[]>(frame_buf_count);

Expand Down
2 changes: 1 addition & 1 deletion system/camerad/cameras/camera_qcom2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class CameraState {

float fl_pix = 0;

CameraState(SpectraMaster *master, const CameraConfig &config) : camera(master, config, true /*config.stream_type == VISION_STREAM_ROAD*/) {};
CameraState(SpectraMaster *master, const CameraConfig &config) : camera(master, config, config.stream_type == VISION_STREAM_ROAD) {};
~CameraState();
void init(VisionIpcServer *v, cl_device_id device_id, cl_context ctx);
void update_exposure_score(float desired_ev, int exp_t, int exp_g_idx, float exp_gain);
Expand Down
Loading

0 comments on commit f693217

Please sign in to comment.