Commit Graph

64 Commits

Author SHA1 Message Date
Dean Lee b9080d2362 camerad: zero memory before returning from MemoryManager::alloc (#30781)
* zero memory

* remove redundant memset

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-12-18 13:54:11 -08:00
Dean Lee ab0b26d2b8 camerad: cleanup includes (#30782)
* cleanup includes

* continue

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-12-17 22:42:52 -08:00
Dean Lee ea7e701052 camerad/CameraBuf: remove deprecated rgb_stride (#30758) 2023-12-15 19:48:26 -08:00
Dean Lee 62670e66bf camerad/CameraBuf: rename yuv_type to stream_type (#30695) 2023-12-11 21:53:27 -08:00
Dean Lee 8a530621b4 camerad: Remove deprecated 'fps' parameter (#30662)
remove parameter fps
2023-12-09 08:10:53 -08:00
Dean Lee ea0b8920f5 camerad: remove camera_id (#30654)
* remove camera_id

* use variable
2023-12-08 16:15:58 -08:00
Dean Lee 21d5d7d07a camerad: move ar0231_register_lut to AR0231 (#30652) 2023-12-08 14:57:29 -08:00
Dean Lee fb2f2d9cb2 camerad: c++ sensorInfo (#30650)
* move remaining sensor parameters to CameraInfo

* same order

* member functions

* fix segfault
2023-12-08 14:27:28 -08:00
Adeeb Shihadeh e757d9bae7 camerad: renames (#30649)
* sensorinfo

* drop the camera
2023-12-08 11:39:40 -08:00
Dean Lee ef262ff9eb camerad: move sensor related code to /sensors (#30647) 2023-12-08 11:19:10 -08:00
Dean Lee 51328609d2 camerad: refactor sensor parameters to struct (#30644)
* refactor camerainfo

* include <memory>
2023-12-08 00:01:16 -08:00
Dean Lee 9bff8ccd0f camerad: fix use of uninitialized CameraInfo in camera_open() (#30642) 2023-12-07 20:11:44 -08:00
Adeeb Shihadeh 0586f86ad0 Revert "camerad: refactor sensor parameters to struct (#30639)"
This reverts commit a70911d639.
2023-12-07 16:21:16 -08:00
Dean Lee a70911d639 camerad: refactor sensor parameters to struct (#30639)
* refactor camerainfo

* include <memory>
2023-12-07 16:06:55 -08:00
Dean Lee bdf868ddc2 camerad: split sensor_ic2.h (#30641)
* split sensor_ic2.h

* move start_reg,stop_reg
2023-12-07 15:45:49 -08:00
Dean Lee ecfe201a57 camerad: move AR0231 functions to camera_ar0231.cc (#30635)
* move AR0231 functions to camera_ar0231.cc

* move to sensors/aro231.cc
2023-12-07 11:48:17 -08:00
Dean Lee 8bf78399e2 sensor2_i2c.h: add #pragma once (#30636) 2023-12-07 10:21:14 -08:00
Adeeb Shihadeh e34ee43eea camerad cleanup (#30573)
* misc cleanup

* rm those

* rm utils

* fix build

* rm pool

* little more

* goodbye imgproc
2023-12-01 20:10:07 -08:00
Dean Lee 335237aea0 modeld: remove modeldata.h (#30423)
* remove modeldata.h

* remove TRAJECTORY_SIZE
2023-11-18 22:45:26 -08:00
Adeeb Shihadeh 72cc2e34cb camerad: reduce to 1s of buffers 2023-11-09 20:52:21 -08:00
Dean Lee 9c7bf50703 cpplint: add filter whitespace/tab (#29588) 2023-08-24 08:06:58 -07:00
Dean Lee 21da5a216f cpplint: add filter build/include_subdir (#29585) 2023-08-24 15:42:17 +01:00
Dean Lee f203648de0 cpplint: add filter whitespace/semicolon (#29568) 2023-08-23 15:00:30 -07:00
Dean Lee 2d99521e75 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-23 13:25:17 -07:00
Dean Lee 363740a497 cpplint: add readability/braces filter (#29554) 2023-08-23 10:13:46 -07:00
Adeeb Shihadeh 952d720b6e add cpplint (#26855)
* setup cpplint

* only start that

* check line length

* check these

* rm exceptions
2023-08-22 13:55:23 -07:00
Dean Lee 8076107b4f camerad: auto free the buffer when it goes out of scope (#28807) 2023-08-08 13:26:04 -07:00
Dean Lee 269ceca27a common/swaglog: remove trailing semicolon from macros (#29042) 2023-07-19 19:46:42 -07:00
Dean Lee 9784f61f23 camerad: remove unused frame_length from struct FrameMetadata (#28693)
* remove unused frame_length

* bump cereal

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-06-25 12:51:10 -07:00
Mitchell Goff ae5bfcf248 Remove get_model_yuv_transform function (#28568)
* remove yuv_transform from update_calibration

* Remove get_model_yuv_transform entirely
2023-06-21 20:02:44 -07:00
ZwX1616 78ba67e211 camerad: write static AE settings only once (#28134)
* this is free

* illusion of choice
2023-05-08 18:43:54 -07:00
ZwX1616 4b1f77d54a OX03C10: improve tone mapping (#27754)
Co-authored-by: Comma Dev1ce & Y. Yousfi <device@comma.ai>
2023-04-05 19:46:04 -07:00
ZwX1616 25a7f87b42 camerad: reduce daytime HDR blur (#27644)
* 60hz

* be dynamic

* cast

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-22 13:44:29 -07:00
Dean Lee a86730a2c6 camerad: remove deprecated focus parameters from FrameMetadata (#27638) 2023-03-21 16:55:06 -07:00
Robbe Derks d26d8b3ba9 Improve OX frame timing jitter (#27582)
* frame timing script

* enable vsync output and improve fsin tracking

* increase measurement time

* fix python linting

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-16 10:59:27 +01:00
Adeeb Shihadeh ef42652368 fix typo AR0321 -> AR0231 (#26993) 2023-01-17 19:52:06 -08:00
ZwX1616 bc8e2032f7 camerad: reduce ox LFM noise (#26949)
* wip

* make separate score func

* n4ot g

* clean up

* remove

* simplify

* b2b

* more than 0

* this is fine

* led

* balance costs

* clean up

* no if tici

* box view

* new baselines

* Revert "new baselines"

This reverts commit f7a5d059eda70fa4d49e3024923da30e8821f42b.

* Revert "box view"

This reverts commit a57924be36e7d6abc2585aca9575c74cd583ef86.

* maximize dcg

Co-authored-by: Comma Dev1ce <device@comma.ai>
2023-01-17 14:16:28 -08:00
ZwX1616 028527423c camerad: rework ox exposure score (#26948)
* wip

* make separate score func

* n4ot g

* clean up

* remove

* simplify

* b2b

* balance costs

* clean up

* no if tici

* box view

* new baselines

* Revert "new baselines"

This reverts commit f7a5d059eda70fa4d49e3024923da30e8821f42b.

* Revert "box view"

This reverts commit a57924be36e7d6abc2585aca9575c74cd583ef86.

Co-authored-by: Comma Device <device@comma.ai>
2023-01-13 21:32:15 -08:00
ZwX1616 e6e33531ca camerad: lower cost for OX high gain idxs (#26775) 2022-12-12 16:35:25 -08:00
ZwX1616 2153bfe27a camerad: minor ae improvement to OX (#26566) 2022-11-23 13:08:04 -08:00
ZwX1616 5eaf525c18 camerad: fix OX flicker (#26439) 2022-11-09 21:49:24 -08:00
ZwX1616 fdd125853f camerad: fix OX not having vignetting comp (#26329) 2022-11-02 14:42:29 -07:00
Adeeb Shihadeh 2384a9ee67 fix autobrightness for OX03C10 (#25915)
* fix autobrightness for OX03C10

* fix scaling

* use cur ev

* oops

* bump cereal
2022-09-28 15:45:15 -07:00
ZwX1616 4ed0abd197 camerad: recalibrate ox colors for HDR (#25874)
re
2022-09-22 12:52:48 -07:00
ZwX1616 bae94a0070 camerad: fix OX page faults (#25853) 2022-09-20 16:00:56 -07:00
Dean Lee 8870b439dd camerad: fix class/struct forward declaration mistake (#25842) 2022-09-19 13:24:20 -07:00
Dean Lee 8ae3199578 camerad: make sure cl_context is valid for lifetime of camerad (#25735) 2022-09-16 21:10:26 -07:00
Dean Lee 78fd303d50 camerad: cleanup CameraBuf::acquire (#25737)
* cleanup

* add that back

* less indent

Co-authored-by: Comma Device <device@comma.ai>
2022-09-16 20:50:10 -07:00
Dean Lee 5bb230cde4 camerad: remove function camera_autoexposure (#25733) 2022-09-16 20:18:54 -07:00
Dean Lee 25ce997f37 CameraBuf: remove unused member 'camera_state' (#25736) 2022-09-16 20:11:46 -07:00