Adeeb Shihadeh
cf6d133638
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
4 years ago
Dean Lee
7222d0f20d
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>
4 years ago
Willem Melching
ab319d4f54
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>
4 years ago
Willem Melching
3a95d3ccaa
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 757d2923d2
.
4 years ago
Dean Lee
757d2923d2
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
4 years ago
Dean Lee
f0a1a6e4d6
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>
4 years ago
Dean Lee
5a3c22d804
camerad: refactor RGBToYUVState into a class ( #20310 )
...
* struct RGBToYUVState to class Rgb2Yuv
* clFinish
* blank line
* rebase master
* use event
4 years ago
Adeeb Shihadeh
4e03e37381
Revert "CameraBuf: avoid busy waiting on safe_queue ( #20643 )"
...
This reverts commit e562a69a4d
.
4 years ago
Dean Lee
e562a69a4d
CameraBuf: avoid busy waiting on safe_queue ( #20643 )
...
* 20ms timeout
* Update camera_common.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Dean Lee
4e68bab6f6
refactor set_driver_exposure_target ( #20327 )
...
* driver_cam_set_exp_target
* rebase master
* rebase master
* rename to driver_cam_auto_exposure
4 years ago
Dean Lee
98e55996f6
Params: python-like interface ( #20506 )
...
* rebase master
* delete outdated test_params.c
* putBool & more robust getBool
* putBool(SshEnabled)
4 years ago
Dean Lee
dd4fa036e9
CameraBuf: remove class variable yuv_metas ( #20376 )
4 years ago
Dean Lee
9df3bab96a
CameraBuf::acquire: remove reference frame_data, use cur_frame_data to keep consistency ( #20361 )
4 years ago
ZwX1616
65bb979c34
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>
4 years ago
ZwX1616
b734647fb7
only destroy if inited ( #20317 )
4 years ago
Comma Device
bcbcc03dc7
revert to divide first
4 years ago
Dean Lee
80cc0eefc9
modeldata.h: new function get_model_yuv_transform ( #20257 )
4 years ago
Comma Device
0d036de205
better transition
4 years ago
Dean Lee
d3a71dcf65
camerad: fix thumbnail cnt ( #20236 )
4 years ago
Dean Lee
2f718d28e4
camerad: remove param pix_ptr from set_exposure_target ( #20157 )
4 years ago
ZwX1616
d8ddc1208e
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>
4 years ago
Dean Lee
e7906fb446
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
4 years ago
Adeeb Shihadeh
312b681a46
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
4 years ago
ZwX1616
8824966aad
tici fcam vignette compensation ( #19971 )
...
* simple model
* fix api
* this too
4 years ago
Dean Lee
7f5a1ce02d
get_frame_image: moved the global variables into function static ( #19982 )
4 years ago
ZwX1616
6d16bfab82
tici dcam AE ( #19970 )
...
* tici_ae_front
* not const
4 years ago
Dean Lee
e6783f4d9f
remove cqueue, use class SafeQueue ( #19774 )
...
* 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
4 years ago
Dean Lee
064bcbe80b
CameraBuf::acquire : release on failure ( #19935 )
4 years ago
Dean Lee
80799c7272
fill_frame_data: remove unused paramater cnt ( #19936 )
4 years ago
Dean Lee
cbd08d6f0c
cameras_qcom: fix dangling pointer in fill_frame_image ( #19891 )
4 years ago
Dean Lee
90994baab0
camera_common: rename create_thumbnail to publish_thumbnail ( #19920 )
...
* rename create_thumbnail to publish_thumbnail
* check pm
4 years ago
ZwX1616
2b6149572a
fill sof
4 years ago
Adeeb Shihadeh
eae7a6ed22
camera frame stream cleanup ( #19741 )
...
* clean up
* more clean up first
4 years ago
Adeeb Shihadeh
758794dec5
few fixes from LGTM
4 years ago
Dean Lee
2072699719
CameraBuf::acquire : using a scoped lock ( #19764 )
...
* Using a scoped lock
* Trigger Build
4 years ago
Dean Lee
ea9835f293
fill_frame_image: reduce function parameters ( #19736 )
...
* reduce function paramaters
* add assert
* Trigger Build
4 years ago
Dean Lee
c28ba97e67
CameraBuf: removed unused variables ( #19735 )
4 years ago
Willem Melching
0b79d0e12d
CameraBuf::stop() is not used
4 years ago
Dean Lee
595830135b
merge utilpp.h into util.h ( #19710 )
4 years ago
Dean Lee
cefdca2fd6
create_thumbnail in camera_common ( #19553 )
4 years ago
Willem Melching
fb496c692a
VisionIPC 2.0 ( #19641 )
...
* 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
4 years ago
Dean Lee
86fe2d1697
common exit handler ( #19661 )
...
* common signal handle
* fix typo
* rename to ExitHandler
* remove include signal.h
* remove include csignal
* rename variable exit to v
* rebase master
4 years ago
Adeeb Shihadeh
87950eb312
setup clang tidy ( #19533 )
...
* setup clang tidy
* config
* some cleanup
* little more
* remove that
* fix qcom build
4 years ago
Adeeb Shihadeh
15cd71707d
camerad: revert tbuffer dispatch change ( #19589 )
4 years ago
Dean Lee
9890f958d9
cameras: use common transform ( #19552 )
5 years ago
Dean Lee
bc1cfa6d4f
cleanup qcom2 ( #19506 )
...
* cleanup qcom2
* define DEBAYER_LOCAL_WORKSIZE in camera_qcom2.h
5 years ago
Adeeb Shihadeh
c57ee16e86
Set GPU priorities + improved modeld priorities ( #2691 )
...
* give gpu threads rt priority
* modeld gets highest prio on core 2
* fix frame stream
* lower prio of cal thread
Co-authored-by: Comma Device <device@comma.ai>
5 years ago
Dean Lee
3c08d0f1f7
clutil refactor ( #2733 )
...
* cleaup clutil.h
* clutil.c -> clutil.cc
* std::hash
* try simplify functions
* using namespace group help functions
* continue
* add function get_platform_info
* continue
* remove caching
* struct CLContext
* std::cout & CL_ERR_TO_STR
* remove CLU_NO_CACHE
* Revert "struct CLContext"
This reverts commit 882e413f22
.
* cl_get_error_string : remove undefied error codes
* replace all printf with std::cout
* util::read_file
* cleanup
* revert CL_ERR_TO_STR
* simplify
* add macro CL_ERR_TO_STR
* cl_get_error_string: fix undeclared errors
* log_size should not +1
* use std::stirng log
* apply review
5 years ago
Dean Lee
f0d240a7e3
camerad: fix memory leak in create_thumbnail ( #2743 )
...
* fix memory leak in create_thumbnail
* free memory returned from jpeg_mem_dest
* OMG
5 years ago
Dean Lee
1e9e31d6e1
destroy rgb_to_yuv_state ( #2702 )
5 years ago