Willem Melching
dfd521325d
camerad: log debayer + yuv processing time ( #23894 )
...
* camerad: log debayer + yuv processing time
* bump cereal
old-commit-hash: aabd9a0dff
3 years ago
George Hotz
10be5aad7a
camerad: use open_v4l_by_name_and_index on c2 also ( #23794 )
...
* use open_v4l_by_name_and_index on c2 also
* remove open_v4l_by_name_and_index from qcom2
old-commit-hash: 51767c037b
3 years ago
George Hotz
5c766bea95
camerad: fast debayer on c2 cameras ( #23795 )
...
* 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
3 years ago
Adeeb Shihadeh
3e578e7409
camerad: adjust CL priority on comma three ( #23790 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c6e0f1d841
3 years ago
Dean Lee
384e46644d
camerad: cleanup main.cc ( #23593 )
...
* cleanup main.cc
* fix ae_gray_test build errors
old-commit-hash: 61383dcc42
3 years ago
Willem Melching
0574f0f774
comma two: remove lens sag compensation ( #23113 )
...
old-commit-hash: 36db473bab
3 years ago
Dean Lee
4754da9fbc
common_process_driver_camera: same parameters as process_thread_cb ( #23202 )
...
old-commit-hash: 5c6229f3df
3 years ago
Dean Lee
dd7c226097
util: move all functions into util namespace ( #23203 )
...
old-commit-hash: 9decd3d8a2
3 years ago
Adeeb Shihadeh
bef53929d7
camerad: lower YUV vipc buffer count to 40 on tici
...
old-commit-hash: 20d5c0c1cb
4 years ago
Mayfield
43e1903073
enable wshadow ( #22756 )
...
* enable wshadow (#22714 )
* fix replay
* more build fixes
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5246f0231e
4 years ago
Dean Lee
724fbebd42
camera_common: new class Debayer ( #21854 )
...
* 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
4 years ago
Willem Melching
0f77dd4506
loggerd: set encodeIdx.valid if frame id is correct ( #22634 )
...
* loggerd: set encodeIdx.valid if frame id is correct
* check valid flag in test
* test cleanup
* bump cereal
old-commit-hash: 89f311714c
4 years ago
Dean Lee
5f63a9339c
fix yuv420_to_jpeg: thumbnail_width & thumbnail_height must be aliged with 16 pixel. ( #22287 )
...
* aligned by 16px
* make buf big enough
* comment
* add comment
* comment
old-commit-hash: ae9305e7ff
4 years ago
Dean Lee
b7f3d92c9b
camerad: added replay camera ( #21241 )
...
* start refactor
* remove camera_frame_stream from files_common
* rename camera_pc to camera_replay
* continue
* loop one segment
* rename cam_frame_id to stream_frame_id
* apply review
* continue
* more
* publish camera state
* cleanup
* cleanup
* better comment
* delete s->pm in cameras_close()
* add function getFrameCount
* refactor loop
* fix typo
* restore freame stream
* disable roadcam
* dd
* move file
* merge master
* fix test case
* add todo
* white space
* remove from release files
* add files back to relase
* move framereader back to ui/replay
* merge master
test_replay
old-commit-hash: 9b302488f9
4 years ago
Dean Lee
cd4e070b47
camerad: use the YUV buffer to create the jpeg thumbnail ( #21936 )
...
* yuv420_to_jpeg
continue
* add comments
* cleanup
* return ky::array
old-commit-hash: e0b5b4573e
4 years ago
Willem Melching
9038e1b86f
C3 AE improvements ( #21698 )
...
* 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
4 years ago
Dean Lee
94d534afea
hw.h: move Hardware-related paths to namespace Path ( #21826 )
...
* refactor getenv and path
* apply review
old-commit-hash: fefc70b4ca
4 years ago
Adeeb Shihadeh
4d0543d92d
100 yuv buffers for all
...
old-commit-hash: 4c0caf7f7e
4 years ago
Willem Melching
d479b9a5de
Revert AE changes ( #21682 )
...
* Revert AE changes
* keep YUV buffer count
old-commit-hash: b6b0393e2d
4 years ago
Willem Melching
afd96fb083
only 100 yuv buffers on C2 ( #21622 )
...
old-commit-hash: 0d9e7ad241
4 years ago
Willem Melching
7198224cf2
tici: improve AE ( #21493 )
...
* 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
4 years ago
Willem Melching
e0378d41cb
Refactor camerad exposure logging ( #21506 )
...
* simplify gain logging
* clean up metadata
* log grey fractions
* those are not used
* set grey fracs in message
* fix qcom
old-commit-hash: 47be6c751e
4 years ago
Dean Lee
147b355dde
add space after function name and if statement ( #21225 )
...
old-commit-hash: e4e669bb0f
4 years ago
Dean Lee
f70a79b838
Use C++ header files instead of C header files. ( #21192 )
...
* 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
4 years ago
Adeeb Shihadeh
c7c49e8e35
fix up model tests + tools ( #21071 )
...
* unlogger: send yuv stream
* fix up model test tools
* fix unlogger
* rename model replay
* bump cereal
* test in actions
* no ci for now
old-commit-hash: cf6d133638
4 years ago
Dean Lee
e333e4f189
Cleanup selfdrive/ includes ( #20822 )
...
* cleanup include path
* continue
* format includes
* fix testraw.cc
* remove include path from SConstruct
* regroup
* rebase master
* almost done
* apply review
* rename FileReader.xx to filereader.xx
* rename Unlogger.x->unlogger.x
* rename FrameReader.xx -> framereader.xx
* apply reviews
* ui.h
* continue
* fix framebuffer.cc build error:mv util.h up
* full path to msm_media_info
* fix qcom2 camerad
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7222d0f20d
4 years ago
Willem Melching
78bf4f5867
Replace ifdef with hw abstraction layer ( #20843 )
...
* Replace ifdefs with hardware abstraction layer (#20801 )
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
* Fixes after ifdef clenaup (#20842 )
* inheritance doesnt work with static
* fix debayer
* small cleanup
* Update selfdrive/camerad/cameras/camera_common.cc
* Update selfdrive/ui/qt/offroad/settings.cc
* Update selfdrive/common/modeldata.h
* flip conditions
* fix comment
Co-authored-by: Dean Lee <deanlee3@gmail.com>
old-commit-hash: ab319d4f54
4 years ago
Willem Melching
39c18d4c5a
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 9f2ad462f39f4c880f283b71bffbc9248a2b577d.
old-commit-hash: 3a95d3ccaa
4 years ago
Dean Lee
e0282ced49
Replace ifdefs with hardware abstraction layer ( #20801 )
...
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
old-commit-hash: 757d2923d2
4 years ago
Dean Lee
2db11515bd
camerad: SubMaster never updated ( #20651 )
...
* fix sm has not been updated
* update submaster in processing driver cam thread
* move Subbmaster to driver camera thread
* cleanup
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f0a1a6e4d6
4 years ago
Dean Lee
3339cc01a6
camerad: refactor RGBToYUVState into a class ( #20310 )
...
* struct RGBToYUVState to class Rgb2Yuv
* clFinish
* blank line
* rebase master
* use event
old-commit-hash: 5a3c22d804
4 years ago
Adeeb Shihadeh
d339348895
Revert "CameraBuf: avoid busy waiting on safe_queue ( #20643 )"
...
This reverts commit e7db6f827d41b8c75579ccbfc2db20f93bd3f6c0.
old-commit-hash: 4e03e37381
4 years ago
Dean Lee
56d306c03b
CameraBuf: avoid busy waiting on safe_queue ( #20643 )
...
* 20ms timeout
* Update camera_common.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e562a69a4d
4 years ago
Dean Lee
2a535eed7e
refactor set_driver_exposure_target ( #20327 )
...
* driver_cam_set_exp_target
* rebase master
* rebase master
* rename to driver_cam_auto_exposure
old-commit-hash: 4e68bab6f6
4 years ago
Dean Lee
405df8b165
Params: python-like interface ( #20506 )
...
* rebase master
* delete outdated test_params.c
* putBool & more robust getBool
* putBool(SshEnabled)
old-commit-hash: 98e55996f6
4 years ago
Dean Lee
d4986abd9b
CameraBuf: remove class variable yuv_metas ( #20376 )
...
old-commit-hash: dd4fa036e9
4 years ago
Dean Lee
b8925e456a
CameraBuf::acquire: remove reference frame_data, use cur_frame_data to keep consistency ( #20361 )
...
old-commit-hash: 9df3bab96a
4 years ago
ZwX1616
d8c1e9a16e
set_exposure_target test ( #20318 )
...
* 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
4 years ago
ZwX1616
6e79d0d5dd
only destroy if inited ( #20317 )
...
old-commit-hash: b734647fb7
4 years ago
Comma Device
9360cf6509
revert to divide first
...
old-commit-hash: bcbcc03dc7
4 years ago
Dean Lee
bca42582d9
modeldata.h: new function get_model_yuv_transform ( #20257 )
...
old-commit-hash: 80cc0eefc9
4 years ago
Comma Device
f68201e717
better transition
...
old-commit-hash: 0d036de205
4 years ago
Dean Lee
9faffa817b
camerad: fix thumbnail cnt ( #20236 )
...
old-commit-hash: d3a71dcf65
4 years ago
Dean Lee
0ea334ca6f
camerad: remove param pix_ptr from set_exposure_target ( #20157 )
...
old-commit-hash: 2f718d28e4
4 years ago
ZwX1616
8148ae3805
tici camerart III: prehistoric visuals ( #20012 )
...
* reworked
* add ref
* f16
* faster
* extended tm
* fix hdr
* Revert "extended tm"
This reverts commit 55ba3ae320
.
* reduce static/temporal noise
* split kernels to sync max
* no print
* cleanup qcom2
* optimize
* tune DC
* doesnt work
* minor fix
* adaptive
* smoothen HCG switch
* t
* histogram ceiling
* recalulate params
* group_hold
* less contrast
* recalibrate ccm
* better ae
* better ae revised
* made some changes
* clean up
* midtones
* some improvements
* more
* cleanup
* remove more junk
* lgtm
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d8ddc1208e
4 years ago
Dean Lee
c89e98261b
camerad: rename variables&functions to follow new convention ( #20096 )
...
* rename CameraState variables to follow new convention
* continue
* rename camera_process functions
* qcom:rename exposure related variables
* continue
* update commments
* bool real -> bool is_road_cam
* rename sm_front -> sm
* remove paramater tname from start_process_thread
* rename rhd_front to is_rhd
* remove unused varialble name from struct CameraInfo
* rename env_send_xxx
* rename cap_front to cap_driver,cap_rear to cap_road
* rename xxx_camera_process to process_xxx_camera
* update snapshot.py
old-commit-hash: e7906fb446
4 years ago
Adeeb Shihadeh
05eb44115e
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65eb
.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
old-commit-hash: 312b681a46
4 years ago
ZwX1616
b7245e4cf5
tici fcam vignette compensation ( #19971 )
...
* simple model
* fix api
* this too
old-commit-hash: 8824966aad
4 years ago
Dean Lee
a64b230637
get_frame_image: moved the global variables into function static ( #19982 )
...
old-commit-hash: 7f5a1ce02d
4 years ago
ZwX1616
2dca9b49c7
tici dcam AE ( #19970 )
...
* tici_ae_front
* not const
old-commit-hash: 6d16bfab82
4 years ago