* rgb to nv12
* nv12 works (w memcpy)
* correct now
* no copy
* fix nv12 with fast debayer
* reverts of unused stuff
* ui use nv12
* comment out thumbnails for now
* rebase fix
* dm read nv12
* model read nv12
* fix ffmpeg encoder
* thumbnails from nv12
* replay to nv12
* python framereader support nv12
* remove hardcoded frame/buffer sizes
* fix build
* ffmpeg encoder fix buffers
* small cleanup
* reduce power usage test
* fix cpu usage test
* fix snapshot
* fix loggerd test
* bump cereal
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Joost Wooning <jwooning@gmail.com>
old-commit-hash: ea5b8cdfb1
* pixclk 88mhz but frame time the same
* scale integration time
* 22.8 ms
* 15.18 ms
* fix exposure
* fix glitching, 18.9 ms
* set both to min
* faster pixclk = more power
* should pass CI
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 7c74ab8992
* remove local caching
* remove local caching
* reduce camerad power
* break stupid imx390 black level support
* handle edges
* now 13ms, vignetting is 'slightly' less correct
* halfs->floats and inlines, down to 12.9ms
* oops, fix float
* val from 12 is ushort
* don't decide vignetting in the debayer kernel
* 7.77 ms
* adding back black level support was free
* Revert "adding back black level support was free"
This reverts commit a841d17727.
* minor
* rip out unused gain and black level, remove print
* save 150mW
* fix replay test
* fix top/bottom rows
* lame left right edge fix
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Joost Wooning <jwooning@gmail.com>
old-commit-hash: 72b52f8b7d
* camerad: combine debayering and rgb_to_yuv opencl kernels
* fix border
* fix snapshot
* rename function
* update camerad cpu usage
* update camerad power draw
* vignetting equal to previously
* test other local worksize
* use less floats
* reduce amount of code
* move barrier back
* make faster
* fix corners
* cleanup
* cleanup
* allow more jitter on driverState timing
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 489fbb74b0
* camerad: log raw camera frames with env var
* dont qlog
* cleaner
* only road camera
* use vision buf len
* use static counter to handle frame skips
* we already have cnt
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 05f606c812
* 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
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD
VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD
VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER
* little more
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 57b6fdc17a
* 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
* fast debayer on c2 dcam
* add casts
* 128 local worksize on HDR debayer, 8 ms -> 3.5 ms
* width instead of saving rgb_width
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 92e9823cc0