Adeeb Shihadeh
a2bc5061e4
camerad: fix bps flush ( #34758 )
2 months ago
Adeeb Shihadeh
00e447bc30
Revert "camerad: make robust to introduced failures ( #34723 )"
...
This reverts commit c10abce1d5
.
2 months ago
Dean Lee
d9bc9be388
camerad: ensure sync objects are assigned only on successful creation ( #34731 )
...
ensure sync objects are assigned only on successful creation
2 months ago
Adeeb Shihadeh
c10abce1d5
camerad: make robust to introduced failures ( #34723 )
...
* camerad: make robust to introduced failures
* more test
* start here
---------
Co-authored-by: Comma Device <device@comma.ai>
2 months ago
Adeeb Shihadeh
937e2f7eb2
camerad: spectra stress test ( #34716 )
...
* cam stress
* lint fixes
---------
Co-authored-by: Comma Device <device@comma.ai>
2 months ago
Dean Lee
c3c878908d
camerad: Inline processing_time calculation during frame data initialization ( #34661 )
...
* Inline processing_time calculation during frame data initialization
* remove timestamp_end_of_isp
2 months ago
Dean Lee
839c8fbd6b
camerad/MemoryManager: remove lock and reduce redundant lookups ( #34656 )
...
remove lock and reduce redundant lookups
2 months ago
Dean Lee
47c04210e2
camerad: refactor frame processing to direct handling ( #34655 )
...
refactor frame processing
2 months ago
Dean Lee
2215abb762
camerad: use single instance of MemoryManager for all cameras ( #34654 )
...
use single instance of MemoryManager for all cameras
2 months ago
Adeeb Shihadeh
bdf0b7b42e
camerad: use full VIPC buffers for BPS cams ( #34641 )
2 months ago
Adeeb Shihadeh
52b66a1c0c
Stricter cam sync tests ( #34609 )
...
* strict
* fix that
---------
Co-authored-by: Comma Device <device@comma.ai>
2 months ago
Dean Lee
51d21f0113
camerad: fix crash during camera re-alignment ( #34630 )
...
fix crash during road camera re-alignment
2 months ago
Dean Lee
0f5f3c4cb2
camerad: cleanup syncFirstFrame ( #34626 )
...
* cleanup syncFirstFrame
* handle disabled camera
2 months ago
Dean Lee
acd00b9791
camerad: sync initial frame ID ( #34614 )
...
* sync initial frame ID
* count enabled cameras
* static function
* Replace std::abs with std::max/std::min to avoid overflow
* rebase master
* timeout
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai>
2 months ago
Adeeb Shihadeh
fb3f5dd169
camerad: make handle_camera_event readable ( #34620 )
...
* renames
* lil more
---------
Co-authored-by: Comma Device <device@comma.ai>
2 months ago
Dean Lee
1cff1a363e
camerad: simplify SpectraBuf::init by reducing redundant flags ( #34618 )
...
refactor init
2 months ago
Adeeb Shihadeh
efda24dbe1
camerad: match some BPS settings ( #34548 )
...
* start common
* fix bayer pattern
* lil more
* all 1q10
* cc en
* same pts?
* this is weird
* some cleanup
* less
* off
* clean up
---------
Co-authored-by: Comma Device <device@comma.ai>
2 months ago
Adeeb Shihadeh
d1b93287f2
camerad: flush BPS requests ( #34581 )
...
* repro
* cleanup
* flush bps
* cleanup
* revert that
---------
Co-authored-by: Comma Device <device@comma.ai>
2 months ago
Dean Lee
65e478f27f
camerad: simplify buffer indexing in enqueue_req_multi ( #34553 )
...
simplify buffer indexing in enqueue_req_multi
3 months ago
Adeeb Shihadeh
1090af6e3d
camerad: IFE register cleanup ( #34550 )
...
* start there
* lil more
* get camera num out of there
---------
Co-authored-by: Comma Device <device@comma.ai>
3 months ago
Adeeb Shihadeh
4066d49d70
camerad: debayer in the BPS ( #33763 )
...
* bps support
* cleanup with offsetof
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai>
3 months ago
Adeeb Shihadeh
5b870c6f92
camerad: simple BPS support ( #34538 )
...
* camerad: simple BPS support
* works
* cleanup
* lil more
---------
Co-authored-by: Comma Device <device@comma.ai>
3 months ago
Shane Smiskol
e3d83b4b13
camerad: fix tearing when hitting frame timeout ( #34514 )
...
* this works
* todo
3 months ago
Dean Lee
f98c6a7f8a
camerad: properly clean up sync objects after request flush ( #34418 )
...
destroy sync objects after re-align
3 months ago
ZwX1616
2290d2f2fb
camerad: ISP lsc buffers ( #34335 )
...
* luts
* assert sizeof
* remove 0s
---------
Co-authored-by: Comma Device <device@comma.ai>
4 months ago
Adeeb Shihadeh
4c27878f67
camerad: prep for the BPS ( #34244 )
...
prep
Co-authored-by: Comma Device <device@comma.ai>
4 months ago
Adeeb Shihadeh
7a2af78846
camerad: re-enable ISP debayer ( #34212 )
...
camerad: re-enable ISP debayer
Co-authored-by: Comma Device <device@comma.ai>
5 months ago
Adeeb Shihadeh
c4edfa8b25
camerad: fix running AR0231 in single road cam mode ( #34148 )
...
Co-authored-by: Comma Device <device@comma.ai>
5 months ago
Adeeb Shihadeh
556060f793
camerad: full buffer size for IFE processing ( #34141 )
...
* camerad: full buffer size for IFE processing
* assert
* revert
---------
Co-authored-by: Comma Device <device@comma.ai>
5 months ago
Adeeb Shihadeh
719c634668
Setup IFE vignetting correction ( #33853 )
...
* vignetting
* lil more
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai>
6 months ago
Adeeb Shihadeh
0466d111d2
camerad: set EOF based on readout time ( #33859 )
...
* camerad: set EOF based on readout time
* set ar
* debug
* set processing time
* set ox
---------
Co-authored-by: Comma Device <device@comma.ai>
6 months ago
Adeeb Shihadeh
cf420ed001
IFE register cleanup ( #33854 )
...
* remove first update
* no duplicates
* fix build
* lil more
* lil more
* lil more
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai>
6 months ago
Adeeb Shihadeh
fc5aed10d5
Enable IFE linearization ( #33852 )
...
* enable linearization
* fixup
* gate that
---------
Co-authored-by: Comma Device <device@comma.ai>
6 months ago
Adeeb Shihadeh
fc5f761fa8
camerad: setup IFE gamma correction ( #33837 )
...
* setup gamma
* ife happy
* config for sensor
* fill and clean up
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
6 months ago
Adeeb Shihadeh
f7f15d63dc
CSID cropping for IFE ( #33844 )
...
* ife csid crop
* fix reg processing
---------
Co-authored-by: Comma Device <device@comma.ai>
6 months ago
Adeeb Shihadeh
89d5761329
camerad: setup IFE black level and color correction ( #33834 )
...
* black level
* enable cc
* seems to work
* doesnt do anything
* sensorinfo
* this is fine
* cleanup
* disable
* cleanup os
* revert
---------
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
6 months ago
Adeeb Shihadeh
8e8f61ad35
camerad: IFE debayer support ( #33720 )
...
* ife is up
* split out cdm, bps needs this too
* straight to vipc buffer
* start reducing the diff
* support both
* disable for now
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai>
7 months ago
Adeeb Shihadeh
747acaac71
camerad: prep to unify IFE + BPS processing ( #33770 )
...
* unify
* fixup
* start porting over ife branch
* setup new bufs
---------
Co-authored-by: Comma Device <device@comma.ai>
7 months ago
Adeeb Shihadeh
50baf37ddd
camerad: fix CAM_SYNC requests ( #33757 )
...
* camerad: fix CAM_SYNC requests
* cast
---------
Co-authored-by: Comma Device <device@comma.ai>
7 months ago
Adeeb Shihadeh
62d044c794
camerad: IFE config definitions ( #33624 )
...
* camerad: more definitions for IFE config
* comment
7 months ago
Adeeb Shihadeh
d5039bcbbe
camerad: reduce internal ISP buffer count ( #33619 )
7 months ago
Dean Lee
07f3f93bd9
camerad: remove SpectraCamera inheritance from CameraState and simplify initialization ( #33611 )
...
remove inherit
Co-authored-by: Comma Device <device@comma.ai>
7 months ago
Adeeb Shihadeh
20c983897b
camerad: set patch_offset
7 months ago
Adeeb Shihadeh
bdb4b87fa5
rm debug print
7 months ago
Adeeb Shihadeh
df9b8f0222
camerad: final debayer prep ( #33598 )
...
* prep part 4?
* cleanup
* little less magic
* reorg
* final touches
---------
Co-authored-by: Comma Device <device@comma.ai>
7 months ago
Dean Lee
eaebea0968
camerad: cleanup includes ( #33600 )
...
cleanup includes
Co-authored-by: Comma Device <device@comma.ai>
7 months ago
Dean Lee
34f5ba46b3
camerad: move `handle_camera_event` to SpectraCamera class ( #33595 )
...
move handle event
Co-authored-by: Comma Device <device@comma.ai>
7 months ago
Adeeb Shihadeh
eea06b4c3e
camerad: camera_util is spectra ( #33597 )
...
* camerad: camera_util is spectra
* lil more
* mv that
* fix build
* runs on device
---------
Co-authored-by: Comma Device <device@comma.ai>
7 months ago
Adeeb Shihadeh
80013219fe
camerad: abstract out ISP handling ( #33583 )
...
* spectra and tici
* master
* move the rest
* rm stupid indirection
* start move
* multi cam state is dead
* rest is moved
* lil more
* mv that
* lil more
* fix pc build
* we haven't done rgb for a while
* bring this stuff back
* fix mac?
* no camera in ui!
* i remember why we always cut mac
* fix mac build
---------
Co-authored-by: Comma Device <device@comma.ai>
7 months ago
Adeeb Shihadeh
718835a825
camerad: prep part 2 ( #33584 )
...
* no camerastate in sensors
* bring this over
* and encoder
7 months ago