mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 13:32:05 +08:00
71f609f2cc
* start porting OS04C10 * something * is the pll why this doesn't work * understand plls, still doesn't work * work * weee something * working? * timing * encoderd works with less cameras * 1928 * flip image * color balance * adjust black level * extra height maybe * cleanups * clean up sensor i2c * sensors * approx 20fps * remove mirror * 50ms, no fsin yet * remove imx390 support * some attempt at AE * linearize the response * OX changes (#25697) * organize * wb * best effort but probably messed up by artifacts * multicam sync Co-authored-by: Comma Device <device@comma.ai> * clean up * more * fix multiexposure * start porting OS04C10 * something * is the pll why this doesn't work * understand plls, still doesn't work * work * weee something * working? * timing * encoderd works with less cameras * 1928 * flip image * color balance * adjust black level * extra height maybe * cleanups * clean up sensor i2c * sensors * approx 20fps * remove mirror * 50ms, no fsin yet * remove imx390 support * some attempt at AE * linearize the response * OX changes (#25697) * organize * wb * best effort but probably messed up by artifacts * multicam sync Co-authored-by: Comma Device <device@comma.ai> * clean up * more * fix multiexposure * unbroken AE * oops * sort of good AE * both should work 1 * open then init * fix debayer * rename * fix test build Co-authored-by: Comma Device <device@comma.ai> Co-authored-by: ZwX1616 <zwx1616@gmail.com> Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> old-commit-hash: aea1a0d5e684daf7682703174233390b0cf79c83
28 lines
591 B
C
28 lines
591 B
C
// TODO: cleanup AE tests
|
|
// needed by camera_common.cc
|
|
void camera_autoexposure(CameraState *s, float grey_frac) {}
|
|
void cameras_init(VisionIpcServer *v, MultiCameraState *s, cl_device_id device_id, cl_context ctx) {}
|
|
void cameras_open(MultiCameraState *s) {}
|
|
void cameras_run(MultiCameraState *s) {}
|
|
|
|
typedef struct CameraState {
|
|
int camera_num;
|
|
CameraInfo ci;
|
|
|
|
int fps;
|
|
float digital_gain = 0;
|
|
|
|
int camera_id;
|
|
|
|
CameraBuf buf;
|
|
} CameraState;
|
|
|
|
typedef struct MultiCameraState {
|
|
CameraState road_cam;
|
|
CameraState driver_cam;
|
|
|
|
PubMaster *pm = nullptr;
|
|
} MultiCameraState;
|
|
|
|
|