Dean Lee
ae9305e7ff
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
4 years ago
Dean Lee
5f9e0f7869
webcam: add /usr/include/opencv4 to CPPPATH ( #22320 )
4 years ago
Willem Melching
8a836b7e1e
Script to extract thumbnails from segment ( #22294 )
...
* Script to extract thumnails from segment
* fix name
* whitespace
4 years ago
Dean Lee
9b302488f9
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
4 years ago
Dean Lee
e0b5b4573e
camerad: use the YUV buffer to create the jpeg thumbnail ( #21936 )
...
* yuv420_to_jpeg
continue
* add comments
* cleanup
* return ky::array
4 years ago
Dean Lee
f02c8d0e2c
Handle EINTR for all syscalls that can return it ( #21948 )
4 years ago
Dean Lee
0d3eec385c
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
4 years ago
Dean Lee
ee5ef4dab2
camera_qcom2: use macros for link control operations ( #22088 )
4 years ago
Dean Lee
d9baaf7eb9
loggerd: create encoder threads from cameras_logged ( #21875 )
4 years ago
Dean Lee
cf4ad99554
camera_qcom2: refactor open_v4l_by_name_and_index ( #22067 )
...
* refactor
* small cleanup
Co-authored-by: Willem Melching <willem.melching@gmail.com>
4 years ago
Dean Lee
31230e5b60
retry ioctls while errno == EINTR ( #22054 )
4 years ago
Dean Lee
37dda3d6bf
camera_qcom2: remove req_mgr_session_info from CameraState ( #22059 )
...
* remove req_mgr_session_info from CameraState
* handle should be int32_t
4 years ago
Dean Lee
7a80bf7fcc
camera_qcom2: fix memory leaks in camera_open ( #22061 )
4 years ago
Dean Lee
862f93f7f1
camera_qcom2.cc : fix wrong LOGD order ( #22072 )
4 years ago
Dean Lee
0f4227f42b
qcom2/enqueue_buffer: use macro CAM_MEM_FLAG_HW_READ_WRITE ( #22060 )
4 years ago
Dean Lee
ffb1dd019e
camera_qcom2.cc: use V4L_EVENT_CAM_REQ_MGR_EVENT ( #22057 )
4 years ago
Dean Lee
df6432c8cd
camera_qcom2: remove unused variables from MultiCameraState ( #22058 )
4 years ago
Adeeb Shihadeh
54a4eeb0fc
Revert "tici: give loggerd rt priority ( #21503 )"
...
This reverts commit 7e2752c878
.
4 years ago
Adeeb Shihadeh
7e2752c878
tici: give loggerd rt priority ( #21503 )
...
* give loggerd rt priority
* assert
* little more
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
e646febaae
camerad: remove unused macros and global ( #21970 )
4 years ago
Dean Lee
74ecbbed63
cameras_qcom2.cc: add a missing newline ( #21956 )
4 years ago
Willem Melching
a39873872d
refactor loggerd: trigger rotate in encoder thread ( #21860 )
...
* trigger rotate in eoncode thread
* rotate in time
* lgtm
* dcam trigger rotate on C3
* check trigger rotate field
* Use >=
* add rotator thread
* set cnt to 0
* test encodeIdx is increasing across segments
* test both segmentId and encodeId
* fix encodeIdx
* no thread needed
* add log for failed to encode
* stricter C3 test, dont check start encodeId on C2 dcam
* only update last_camera_seen_tms when considered for rotate
Co-authored-by: deanlee <deanlee3@gmail.com>
4 years ago
arfy slowy
d74def61f8
fix: spelling typos ( #21861 )
...
* fix: typo spelling grammar
* revert
* Update selfdrive/locationd/calibrationd.py
* more revert
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Willem Melching
25de93d133
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
4 years ago
Dean Lee
fefc70b4ca
hw.h: move Hardware-related paths to namespace Path ( #21826 )
...
* refactor getenv and path
* apply review
4 years ago
Adeeb Shihadeh
4c0caf7f7e
100 yuv buffers for all
4 years ago
Willem Melching
b6b0393e2d
Revert AE changes ( #21682 )
...
* Revert AE changes
* keep YUV buffer count
4 years ago
Willem Melching
b35f6871cb
AE: revert changes to min grey target ( #21648 )
4 years ago
Willem Melching
0d9e7ad241
only 100 yuv buffers on C2 ( #21622 )
4 years ago
Willem Melching
3ad40963cc
tici: AE sane default values ( #21610 )
...
* tici: AE sane default values
* set exposure time
* remove comment
* set dc gain variable
* whitespace
4 years ago
Willem Melching
63c9b56063
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
4 years ago
Adeeb Shihadeh
4738fe0e45
increase yuv buffer count to hold 5s ( #21528 )
...
* increase yuv buffer count to hold 5s
* bump cereal
4 years ago
Willem Melching
47be6c751e
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
4 years ago
Willem Melching
8d075048b3
tici: Switch to 1D dead pixel correction ( #21467 )
4 years ago
Dean Lee
73d741b7be
fix webcam crash when failed to read video frame ( #21272 )
4 years ago
Dean Lee
e4e669bb0f
add space after function name and if statement ( #21225 )
4 years ago
Maxime Desroches
03df1b08bb
Convert C++ while loops from int to bool ( #21214 )
4 years ago
Adeeb Shihadeh
9e94fb17cf
fix qcom and qcom2 builds
4 years ago
Dean Lee
c53cb5d570
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
4 years ago
Dean Lee
b06b3ecb60
Use full include path ( #21194 )
4 years ago
Dean Lee
65e0b1e699
Cleanup util.h ( #20849 )
...
* cleanup util.h
* fix build error:omx_encoder.cc:408: undefined reference to do_exit
* fix build error
* rebase master
* move helper functions back to util
* ExitHandleHelper->ExitHandlerHelper
* std::clamp
* struct ExitHandlerHelper to class
* rebase master
* cleanup
* restore ExitHandler
* prefer cassert
4 years ago
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
Adeeb Shihadeh
8fdbbdef73
remove oneplus camera params ( #21047 )
...
* remove oneplus camera params
* align
4 years ago
ShaneSmiskol
a457144357
Improve focus when using snapshot ( #21031 )
4 years ago
George Hotz
f43671c987
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>
4 years ago
Dean Lee
0495426535
Cleanup includes ( #20925 )
...
* remove #include <pthread.h>
* remove #include<stdbool.h> for cc files
* remove #include<iostream>
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