George Hotz
58a47e25bb
camerad: Out of bounds memory write ( #23534 )
...
* parens were totally wrong
* cleaner
old-commit-hash: 7e83d9a618
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
9b0fcaeb84
rename yuv streams ( #23071 )
...
* rename yuv streams
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 348d2d2b0d
4 years ago
Dean Lee
2f4b21b92f
camera_qcom2: cleanup camera_open ( #22085 )
...
* cleanup camera_open
* remove static
* apply review
old-commit-hash: 3d0246eed5
4 years ago
Willem Melching
19deb98bc3
wshadow: fix comma three build
...
old-commit-hash: 45c506bb17
4 years ago
Dean Lee
5e90a1bc79
config_isp: remove hardcoded buffer size ( #22119 )
...
old-commit-hash: b8be692c1a
4 years ago
Dean Lee
4c17c06799
Handle EINTR for all syscalls that can return it ( #21948 )
...
old-commit-hash: f02c8d0e2c
4 years ago
Dean Lee
94d1866ccd
camera_qcom2: new functions device_acquire & device_config ( #22077 )
...
* 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
4 years ago
Dean Lee
5f64289206
camera_qcom2: use macros for link control operations ( #22088 )
...
old-commit-hash: ee5ef4dab2
4 years ago
Dean Lee
7b9555df75
camera_qcom2: refactor open_v4l_by_name_and_index ( #22067 )
...
* refactor
* small cleanup
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: cf4ad99554
4 years ago
Dean Lee
073898d8fd
retry ioctls while errno == EINTR ( #22054 )
...
old-commit-hash: 31230e5b60
4 years ago
Dean Lee
6d054a0012
camera_qcom2: remove req_mgr_session_info from CameraState ( #22059 )
...
* remove req_mgr_session_info from CameraState
* handle should be int32_t
old-commit-hash: 37dda3d6bf
4 years ago
Dean Lee
92627760de
camera_qcom2: fix memory leaks in camera_open ( #22061 )
...
old-commit-hash: 7a80bf7fcc
4 years ago
Dean Lee
75f686f728
camera_qcom2.cc : fix wrong LOGD order ( #22072 )
...
old-commit-hash: 862f93f7f1
4 years ago
Dean Lee
88878cc2cd
qcom2/enqueue_buffer: use macro CAM_MEM_FLAG_HW_READ_WRITE ( #22060 )
...
old-commit-hash: 0f4227f42b
4 years ago
Dean Lee
2658ef5243
camera_qcom2.cc: use V4L_EVENT_CAM_REQ_MGR_EVENT ( #22057 )
...
old-commit-hash: ffb1dd019e
4 years ago
Dean Lee
5d77755f18
camerad: remove unused macros and global ( #21970 )
...
old-commit-hash: e646febaae
4 years ago
Dean Lee
f32b1655e4
cameras_qcom2.cc: add a missing newline ( #21956 )
...
old-commit-hash: 74ecbbed63
4 years ago
arfy slowy
63b3d6024b
fix: spelling typos ( #21861 )
...
* fix: typo spelling grammar
* revert
* Update selfdrive/locationd/calibrationd.py
* more revert
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d74def61f8
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
Willem Melching
d479b9a5de
Revert AE changes ( #21682 )
...
* Revert AE changes
* keep YUV buffer count
old-commit-hash: b6b0393e2d
4 years ago
Willem Melching
7a9659a9f7
AE: revert changes to min grey target ( #21648 )
...
old-commit-hash: b35f6871cb
4 years ago
Willem Melching
6dc20d7c75
tici: AE sane default values ( #21610 )
...
* tici: AE sane default values
* set exposure time
* remove comment
* set dc gain variable
* whitespace
old-commit-hash: 3ad40963cc
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
Maxime Desroches
426df0435b
Convert C++ while loops from int to bool ( #21214 )
...
old-commit-hash: 03df1b08bb
4 years ago
Adeeb Shihadeh
edd2f1c1a6
fix qcom and qcom2 builds
...
old-commit-hash: 9e94fb17cf
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
Dean Lee
3a698faadc
Use full include path ( #21194 )
...
old-commit-hash: b06b3ecb60
4 years ago
George Hotz
6922150ede
Move MCLK from 24 -> 19.2 mhz + Add accuracy in sidebar ( #20960 )
...
* wip
* one day i'll flip that right
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f43671c987
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
Dean Lee
7d5a53ccbe
Use std::size for element counts ( #20654 )
...
old-commit-hash: cf80675369
4 years ago
Dean Lee
42b4cb6c29
Added function power_set_wait, fix munmap invalid pointer error. ( #20189 )
...
* added function power_set_wait_cmd
* cleanup
* rename power_set_wait_cmd to power_set_wait
* rename delay to delay_ms
old-commit-hash: 9b9bdd3da5
4 years ago
Dean Lee
f8e04b7cf1
camera_qcom2: move the common file descriptors to MultiCameraState ( #20182 )
...
* 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
4 years ago
Dean Lee
8b0b3074bb
camera_qcom2: add std::mutex exp_lock ( #20183 )
...
* add std::mutex exp_lock
* auto &meta_data
old-commit-hash: 4c225c6e1d
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
Dean Lee
a61b248ba7
refactor function alloc ( #20192 )
...
old-commit-hash: 92e69e8b75
4 years ago
Comma Device
f68201e717
better transition
...
old-commit-hash: 0d036de205
4 years ago
robbederks
3ca728b1f4
Tici MIPI config ( #20205 )
...
* remove non-default mipi timings and preamble lengths
* actual correct settle count
old-commit-hash: 491309b639
4 years ago
ZwX1616
939d4f8dd2
Tici art4 ( #20210 )
...
* adjust gamma
* trust that light
* trust that chart
* unsrgb
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: dd2bba0b42
4 years ago
Dean Lee
726a8a71a2
Move duplicate function declarations to camera_common.h ( #20176 )
...
old-commit-hash: 468dc3f5a4
4 years ago
Dean Lee
0ea334ca6f
camerad: remove param pix_ptr from set_exposure_target ( #20157 )
...
old-commit-hash: 2f718d28e4
4 years ago
Comma Device
7a639b692d
better gain values
...
old-commit-hash: ab694dbace
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
Willem Melching
6f66d5d3e6
camerad fixes for updated agnos kernel ( #20062 )
...
* set size
* whitespace
* more cleanup
old-commit-hash: af8eff4610
4 years ago
Dean Lee
bed2eb58c1
fill_frame_data: remove unused paramater cnt ( #19936 )
...
old-commit-hash: 80799c7272
4 years ago
Dean Lee
bf95f37eba
cameras_qcom: fix dangling pointer in fill_frame_image ( #19891 )
...
old-commit-hash: cbd08d6f0c
4 years ago
Dean Lee
fbca888d7e
camera_qcom2: simplify camera_process_frame ( #19763 )
...
* simplify camera_process_frame
* Trigger Build
* Update selfdrive/camerad/cameras/camera_qcom2.cc
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: c804059641
4 years ago