* run camera in common function run_camera
continue
remove relase
clEnqueueReadBuffer
cleanup
blank line
remove cideo_cap.release
con tinue
* get camera id from env
* assert
* move the common file descriptors to MultiCameraState
* use unique_fd for file descriptors
* done
* fix build
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
* separate test
* send
* update test
* snapshot is rgb
* this does not belong here
* clean up
* tici
* no if
* no black frames
* flaky leds
* rename and cleanup
* should be stable and avoid lucky pass
* print
* logical and
* run in jenkins
* source profile on tici
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* move actuator_ringing_params from global to function actuator_move
* remove varaible infinity_dac from CameraState
* static actuator_ringing_params
* continue
* rebase master
* build
* remove junk
* clean up
* clean up rebase
* new patterns
* add gts
* add to jenkis
* this more useful
* typo
* test only
* Update Jenkinsfile
* test flag
* remove from jenkins
* these should all just be common:wq
* oops
* unigt
* add to unit tests?
* build all is fine
Co-authored-by: Comma Device <device@comma.ai>
* clean up test
* not needed for now
* this be enough
* comment this out
* clean up
* adjust tolerance
* use sof on tici
Co-authored-by: Comma Device <device@comma.ai>
* class SafeQueue
* cleanup includes
* space
* add timeout
use try_poll
* add function empty() & size()
* class SafeQueue
* add timeout
use try_poll
* add function empty() & size()
* rebase master
* rebase master
* for loop
* fix bug
* Squashed vipc
* Update release files
* Remove else
* add visionipc to release files
* use poller in vipc receive
* opencl framework instead of lib on macos
* Fix camera webcam
* Fix opencl on mac in ui
* more webcam fixes
* typo in ui sconsfile
* Use cur_yuv_buf
* visionbuf c++ class
* Camera qcom was still using visionbuf_allocate
* Turn loggerd back on
* fix snapshot
* No build needed
* update test camerad
* no more release callback
* make encoder c++
* Revert "no more release callback"
This reverts commit e5707b07002fee665d0483d90713154efc2d70d4.
* fix exit handlers
* No need to check errno
* move release callback call
* s/VIPCBufExtra/VisionIpcBufExtra/g
* use non blocking connect
* ui use non blocking connect
* Lower condition variable wait time
* Snapshot cleanup
* bump cereal
* bump cereal
* common signal handle
* fix typo
* rename to ExitHandler
* remove include signal.h
* remove include csignal
* rename variable exit to v
* rebase master
* Move MCLK freq
* change PLL settings to compensate
* messed that up
* undo extclk change, move the internal freq. Does mean pixclk is decreased from 88MHz to 80MHz though
Co-authored-by: Comma Device <device@comma.ai>
* more readable
* rgb_addr
* offset
* speed up if statement
* --self_recover
* rgb_addr_offset
* x_offset&y_offset
* static rgb_roi_buf & conv_result
* remove variables from struct
* simplify read sensorEvents
* use i for loop
* split to functions
* make it works
* y_offset should be ROI_Y_MAX-ROY_Y_MIN+1
* std::size is better than ARRAYSIZE
* rebase master
* shorter variable name
* Revert "shorter variable name"
This reverts commit 47612e3a74.
* std::fill_n
* reday for merge
* Revert "y_offset should be ROI_Y_MAX-ROY_Y_MIN+0"
This reverts commit 1f8526fb1c.
* switch build flags to use opengl framework rather than library for OSX
* little cleaner
* arch
Co-authored-by: thatsaboi <thatsa@boi.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* refactor
add function get_camerabuf_by_type
remove cl_free
use camera_id
move front stuff into frontview_thread
bigger refactor
more
typo
rename camerabuf *c to *b
cleanup header files
remove wideview_thread
camera_qcom.c to c++
fix SConscript
camera_process_buf
space
sendrgb same with before
do autoexposure in processing_thread
correct sendrgb
add camera_common.cc
move yuv_transform to CameraBuf
* use C to keep consitent
* rebase master
* rebase master
* continue refactor
* refactor all camera related data&function out of main
done
* cleanup
* -use buf.rgb_width&height
* remoe ,
* rebase master
* remove unused std::vector
* add func common_camera_process_front
* fix max
* fix sendrgb
* less crap being logged
* fix indents
* add back thumbnails
* thumbnail fixed on tici
* junk junk junk
* unify api
* fix ptr ref
* lol!
* cleanup
* more simplified
* typos
* remove terminate
* use standard polling
* ops_thread refactor, too much code!
* fix build
* ok
* assert
* listen
* incl more
* wq!
* fix more build
* macos
* fix exp targets
* front is different
* const
* bye
* remath
* remove irrelevant
* do ops in a thread
* fix init
* return null
* QCOM2 ops
* qcom2 build
* missing comma
Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
* always c++
* Create C++ params class
* get works
* tests hang now
* passes tests
* cleanup string formatting
* handle interrupt in blocking read
* fix memory leak
* remove unused constructor
* Use delete_db_value directly
* Rename put -> write_db_value
* filename cleanup
* no semicolons in cython
* Update common/SConscript
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* add std::string version of delete_db_value
* This is handled
* cleanup encoding
* Add clear method to clear all
* add persistent params
* fix android build
* Should be called clear_all
* only import params when needed
* set params path on manager import
* recusrively create directories
* Fix function order
* cleanup mkdirp
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
* remove unused junk
* check frame pkts
* from magic
* self
* cleanup
* add todo
* no opencv
* run in J
* fix conv
* make 250x faster
* abs
* should be +1
* depends on starting phase
* block on furniture refactor
* fixed
* restart test
* check ex
* need scaling
* protect highlights
* fix modeld scale factor
* rewrite logic for accurate and smooth AE
* fix condition
* tune speed
* move to qcom2
* not exactly 2x
* avoid hunting due to ettr policy
* tune to new curve
* gain kickdowns
* log params
* 4x legroom
* no limit needed here
* simple lowpass
* tweak
* pin to a remote core
* speedup AE and lower night exp
* this curve makes more sense
* tuning from fleet data
* fix ui
* only qcom2
Co-authored-by: Comma Device <device@comma.ai>
* loggerd:refactor rotate encoder
* change notify_all to notify_one
* finish
* cancelWait
* start front_encoder_thread on need
* rebase master to resolve conflict
* tici qcam works, but
* ifs are ugly
* synced rotate off frame ids
* only start counting frames after modeld alive
* typo
* fix some bugs
* never over rotate
* works
* missing space
* zero frame count tolerance
* lol
* add back omx race protection
* not need that
* not to confuse different locks
* playing with locks is playing with fire
* tici now has qcam
* size is overrated
* make cppcheck happy
* fall back if no camera
* warn
* missing condition
* first is freestyle
* no stream id before connecting
* wait for increment
* first will be imperfect
* wait is futile
* block frames when writing state
* just log write time
* exit loops when exit
* tici qcamera
* fixed
* add atomics
* incl
Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
* nerf highlights
* prioritize less noise
* no overhead
* make focus easier
* cant finetune under high gain
* add some comments
* inspired by xx mindset
Co-authored-by: Comma Device <device@comma.ai>
* fix setting core affinity
* dmonitoringd doesn't need rt priority
* android only gets two cores
* model and planner get core 2
* log missed cycle count
* neos update
* prod image
* revert NEOS changes
* still need this
* equalize performance on three threads
* need to request first
* clean up indexing
* obsolete
* handling skips and drops
* clean up repeated chunks
* use main frame id
* oneshot
* real skip check
* move to test
* should be cropped H here
Co-authored-by: Comma Device <device@comma.ai>
* use custom MessageBuilder from cereal
* use MesageBuilder.toBytes
* bump cereal
* unused
* another one
* fix ui msg
Co-authored-by: deanlee <deanlee3@gmail.com>
* read rhd from param
* don't need that anymore
* fix build
* bump cereal
* read param from camerad too
* add read_db_bool helper
* bump model replay ref commit, IsRHD wasn't set