Dean Lee
6b245b5b0c
camera_webcam: add "thumbnail" to Pubmaster ( #19919 )
4 years ago
ZwX1616
2b6149572a
fill sof
4 years ago
robbederks
5eb16b1193
Change qcom2 fserial and readout timing ( #19820 )
...
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
eae7a6ed22
camera frame stream cleanup ( #19741 )
...
* clean up
* more clean up first
4 years ago
Adeeb Shihadeh
5cb6e69a78
camerad: remove duplicate set_realtime_priority
4 years ago
Dean Lee
aaac63689d
CameraBuf: private variables ( #19811 )
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
c804059641
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>
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
1b3c93813d
camerad use std::thread ( #19771 )
4 years ago
Dean Lee
c28ba97e67
CameraBuf: removed unused variables ( #19735 )
4 years ago
ZwX1616
f0cc78ea92
fix tici debayer GPU page faults
4 years ago
Willem Melching
0b79d0e12d
CameraBuf::stop() is not used
4 years ago
Dean Lee
660abb79dc
FIX: It is not safe to call cameras_close before all threads are done. ( #19555 )
...
* call cameras_close after all threads exited
* stop buffer before join
* remove buf->stop
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
Dean Lee
621dcf8aa1
cleanup ( #19564 )
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
Dean Lee
c1cf0882bd
Replace usleep with util::sleep_for ( #19643 )
...
* replace usleep with sleep_for
* sleep microseconds
* sleep nanoseconds
* Trigger Build
4 years ago
Dean Lee
06e3b1e445
fix thread safety issue in camera focusing ( #19576 )
4 years ago
Dean Lee
37826c0032
should not break if poll timeout ( #19578 )
4 years ago
Adeeb Shihadeh
15cd71707d
camerad: revert tbuffer dispatch change ( #19589 )
4 years ago
Dean Lee
9890f958d9
cameras: use common transform ( #19552 )
4 years ago
Dean Lee
bc1cfa6d4f
cleanup qcom2 ( #19506 )
...
* cleanup qcom2
* define DEBAYER_LOCAL_WORKSIZE in camera_qcom2.h
4 years ago
Robbe Derks
91c760a9e5
Revert MCLK change
4 years ago
robbederks
18ab822213
Move MCLK freq on tici ( #19494 )
...
* Move MCLK freq
* change PLL settings to compensate
* messed that up
* undo extclk change, move the internal freq. Does mean pixclk is decreased from 88MHz to 80MHz though
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
8674b023ba
HW abstraction layer ( #19530 )
...
* start hw refactor
* move that
* pins
* put that back
4 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>
4 years ago
Dean Lee
d31a87cd21
qcom: make camera_process_frame more readable ( #2765 )
...
* more readable
* rgb_addr
* offset
* speed up if statement
* --self_recover
* rgb_addr_offset
* x_offset&y_offset
* static rgb_roi_buf & conv_result
* remove variables from struct
* simplify read sensorEvents
* use i for loop
* split to functions
* make it works
* y_offset should be ROI_Y_MAX-ROY_Y_MIN+1
* std::size is better than ARRAYSIZE
* rebase master
* shorter variable name
* Revert "shorter variable name"
This reverts commit 47612e3a74
.
* std::fill_n
* reday for merge
* Revert "y_offset should be ROI_Y_MAX-ROY_Y_MIN+0"
This reverts commit 1f8526fb1c
.
4 years ago
Comma Device
536a8c5876
fix camerad qcom2 build
4 years ago
Dean Lee
c1f3c3b2df
camera_qcom: read SensorEvents in op thread ( #2764 )
...
* get acceleration in op thread
* std::atomic last_sag_acc_z
* cleanup
4 years ago
Dean Lee
554ea8f54a
refactor imgproc/utils ( #2766 )
...
* refactor imgproc/utils
* const
* space
* return value
4 years ago
George Hotz
cb238fd2ee
Set camerad CL priority to 4 ( #2747 )
...
* priority 2 get
* add to files_common
* cl_ext_qcom
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
3d63b3d414
covert rgb_to_yuv.c to rgb_to_yuv.cc ( #2757 )
4 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
Willem Melching
7b998a7c21
Add thumbnails to camera_frame_stream
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
komma zwei
fef8d4093f
rhd dm AE sign flip
5 years ago
Comma Device
0e84e04539
make qcom2 robust to moving v4l-subdevs
5 years ago
Adeeb Shihadeh
90d7331312
fix camerad exiting on pc
5 years ago
Dean Lee
24a84b2aff
simplify common_camera_process_front ( #2470 )
...
* refactor camera_process_front
* improve
5 years ago
ZwX1616
d3387d540a
tici timing improvements ( #2613 )
...
* relocate
* impatience
* should be fine without
Co-authored-by: Comma Device <device@comma.ai>
5 years ago
Dean Lee
bd4f6650fa
simplify building capnp messages with arrays ( #2617 )
5 years ago
Dean Lee
42183d913f
Error checking macros for opencl ( #2615 )
...
* macro CL_CHECK&CL_CHECK_ERR
* trigger checks
5 years ago
ZwX1616
f244b7c7e1
tici front/wide encodeIdx msgs ( #2564 )
...
* different msgs
* also add timestamps
* keep impatient log, remove the other
* meaningless
5 years ago
Comma Device
b9b6ed2d52
underflew
5 years ago