* ev has different scales
* fix initial gradient
* fix highlight weirdness
* try smooth set of gains
* delay
* add gain idx
* oops
* set different min dc
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c7a0f23b45
* 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: aea1a0d5e6
* support disabling the cameras
* disable instead of only. reduce camera startup time
* cleanups
* make all disables work
* add more logging to buffer creation
* make disable work
* disable on sensor probe failed
* tested, fix print
* tolerate sensor failure onroad
* enables should be honored in public methods only
* comments and whitespace
* debug starting sensor
* bring clear_req_queue into c++, add logging for error cases
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 10d4766f76
* something is output
* min stuff
* visible picture
* pics look good
* maybe
* whole sensor
* fix all cameras
* support both cameras
* autoexposure for imx390
* fix imx390 blacklevel
* touchups
* put gain in db scale
* inline and fix max exposure
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5a11101bcf
* convert camerastate to a class
* more refactor
* do the refactor in file
* put that one back
* those changes can wait
* very minor
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 0adfef0b34
* new class Debayer
* merge master
* pass in cl_event
* needs define, class is not the same
* match clEnqueueCopyBuffer api
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: f7461ed9fc
* new function device_acquire & device_config
* add space
* apply reviews
* use the specified struct for each command
* fix typo
* apply review
* remove static
* revert device_control
old-commit-hash: 0d3eec385c
* AE improvements
* boardd: also use gain to compute IR brightness
* use default rect for DM autoexposure
* more smooth
* whitespace
* camerad cpu usage
* hcg on is slightly better for noise
* hysteris around high conversion gain
* improve i2c timing
* use AB contexts
* HCG default off
* run at 10 hz
* stay in context A for now
* remove ae thread
* wait till next frame is started before sending i2c
* back at 20fps
* add comment and filter across 3 evs
* remove context switch code
* tuning
* recomened without HCG is 0.8x
old-commit-hash: 25de93d133
* simplify histogram calculation
* add debug prints
* faster AE
* revert that
* lower log level
* use minimum recomended gains from datasheet
* use define
* fix min gain
* dynamic grey target
* fix build
* add low pass
* more stable rounding
* increase max gain
* always enable HCG
* correctly set min ev
* fix analog gain
* remove unused variable
* fix build
* move recomended gain into cost function
* tweak cost function a bit
* small LPF on desired ev
* fix typo
* lower ts
* clean up defines
* that was used in common
* add cast
* less cost is fine
* fix tests
* whitespace
* filtering is broken
* put back
* clip gain changes instead
* cost function tweaking
* Only go below recomended gain when absolutely necessary
* small penalty on changing gains
old-commit-hash: 63c9b56063
* simplify gain logging
* clean up metadata
* log grey fractions
* those are not used
* set grey fracs in message
* fix qcom
old-commit-hash: 47be6c751e
* use cstring instead of string.h
* use cstdio instead of stdio.h
* remove inttypes.h
* use cstdlib instead of stdlib.h
* use cstdint instead of stdint.h
* #include <cstddef>
* cstdlib
* use cmath
* remove stddef.h
* use cassert
* use csignal
* use ctime
* use cerror
* rebase master
old-commit-hash: c53cb5d570
* move the common file descriptors to MultiCameraState
* use unique_fd for file descriptors
* done
* fix build
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
old-commit-hash: 5e6e9df407
* 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>
old-commit-hash: 65bb979c34
* 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
old-commit-hash: fb496c692a
* 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>
old-commit-hash: 6b020241c9
* 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>
old-commit-hash: 00b642146f
* 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>
old-commit-hash: 13588e4255
* capnparm
* building in progress
* scons build works
* that script fixes opencl
* start new camera code
* includes and more camera scripts
* control c works now
* no device control yet
* phy too
* just one camera for now
* fix capnparm
* hmm, the inits are needed
* more cameras
* link stop start
* doesn't work yet
* fix ion on qcom2
* start poll ish
* 4 pictures and done
* no jpeg
* it works to picture
* destroy sync obj
* both work for now
* defined QCOM2
* fix fd leak
* run modeld
* 10 bit mode
* real frame stride
* needs digital gain
* dnew
* no color correcting on new
* that snpe doesn't work
* qcom2 gate
* cleanups
* oops, fix aarch64 detector
* update cereal
* modeld works with SNPE
* fix driver monitoring model
Co-authored-by: Tici <robbe@comma.ai>
old-commit-hash: 8db0993663