Commit Graph

167 Commits

Author SHA1 Message Date
Dean Lee 9faffa817b camerad: fix thumbnail cnt (#20236)
old-commit-hash: d3a71dcf65722b80b6f08acb4a371b138436a495
2021-03-03 20:14:37 -08:00
ZwX1616 a899ac0de6 clean up tici camera registers (#20209)
* clean up registers

* clean up more

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ab87aa1da8c2ac381786a53537dc98e1189a3c8e
2021-03-03 19:29:08 -08:00
Comma Device 633687e43a force same gamma
old-commit-hash: a5e9c603bda12733b543fa40369239b84b90b88c
2021-03-03 14:28:58 -08:00
Dean Lee d70fa59acb cameras_qcom: use std::mutex (#20181)
old-commit-hash: f5109d920715b694b04b339ebf1f9556593e79da
2021-03-03 11:48:49 +01:00
Dean Lee a2f41becf0 num_cids should be 1 (#20190)
old-commit-hash: 824e4531d7bc2b0901dbc7a554b5fc968e11d103
2021-03-03 11:42:49 +01:00
robbederks 3ca728b1f4 Tici MIPI config (#20205)
* remove non-default mipi timings and preamble lengths

* actual correct settle count
old-commit-hash: 491309b6393cb4fbf0bbdf21f84de24596f1307c
2021-03-02 14:10:32 +01:00
Adeeb Shihadeh 6dbc7c6d92 oneplus cleanup (#20200)
* start cleanup

* cleanup camerad

* remove unused

* little more

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 07ab081a42e4c383bd0fbd3e7e5723a126c8da12
2021-03-01 17:14:03 -08:00
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: dd2bba0b4294ca62416f57ad342f0dfb459b790e
2021-03-01 16:35:43 -08:00
Dean Lee 9f05976c62 camera_qcom.h: regroup variables by usage (#20196)
old-commit-hash: afcbf60cadfac614228d8b0c24e311a71475ea22
2021-03-01 14:49:04 +01:00
Dean Lee ca8207b5c0 (msm_sensor_power_setting*) type conversions are not required (#20191)
old-commit-hash: e6c47916a2bd67032956137449389cd11c1a5e43
2021-03-01 12:17:30 +01:00
Dean Lee 726a8a71a2 Move duplicate function declarations to camera_common.h (#20176)
old-commit-hash: 468dc3f5a4c5053c61b51bf217db5888079dbb6f
2021-02-26 20:35:21 -08:00
Dean Lee 0ea334ca6f camerad: remove param pix_ptr from set_exposure_target (#20157)
old-commit-hash: 2f718d28e4d04e174530c983800da9c6e052ca7a
2021-02-26 14:42:27 +01:00
Comma Device 98395e1909 gamma last and only one ccm
old-commit-hash: e3afd72265c825c862d719b7ab91661a8a305982
2021-02-25 16:37:28 -08:00
Comma Device 7a639b692d better gain values
old-commit-hash: ab694dbace795a6b9cafc2e68793dbb8f0857349
2021-02-25 16:34:15 -08:00
ZwX1616 7c29a5541f tici camerart 3.1 (#20143)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 28b80844c9c1f12f6f969019bd3d051793917bba
2021-02-23 14:05:09 -08:00
ZwX1616 8148ae3805 tici camerart III: prehistoric visuals (#20012)
* reworked

* add ref

* f16

* faster

* extended tm

* fix hdr

* Revert "extended tm"

This reverts commit 55ba3ae3205f7e962bf2f36634b23a595700c9a8.

* 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: d8ddc1208ebe60c4f51c3c2fb669ad21c3aa6d12
2021-02-21 23:23:40 -08:00
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: e7906fb446f164065088be20f9385300ef91edc3
2021-02-19 13:13:21 -08:00
Dean Lee 68c20b1f74 replace sleep with util::sleep_for (#20108)
old-commit-hash: ad88e62a8d4670cf24f00793c423c816629f9ec5
2021-02-19 11:27:54 +01:00
Adeeb Shihadeh 05eb44115e cereal cleanup part 2 (#20092)
* car stuff

* thermal

* Revert "car stuff"

This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.

* 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: 312b681a46b8153314a8420611b6479dd6f70dfc
2021-02-16 21:39:32 -08:00
Dean Lee 29d994027f camera_qcom: cleanup main() (#19805)
* cleanup main

* continue

* remove last_t from CameraState

* cleanup
old-commit-hash: 139470f033f4498aacd5dc1c2e5a3ab5731767f5
2021-02-16 16:25:46 -08:00
Willem Melching 6f66d5d3e6 camerad fixes for updated agnos kernel (#20062)
* set size

* whitespace

* more cleanup
old-commit-hash: af8eff4610c68e16bac2628ccf78728ed0c27add
2021-02-11 23:42:20 -08:00
ZwX1616 b7245e4cf5 tici fcam vignette compensation (#19971)
* simple model

* fix api

* this too
old-commit-hash: 8824966aad4da328cc393cda26dd80d5bbcd7265
2021-02-01 15:06:15 -08:00
Dean Lee a64b230637 get_frame_image: moved the global variables into function static (#19982)
old-commit-hash: 7f5a1ce02d83f3413137b6c9cb5534c1b787a712
2021-01-31 18:16:12 -08:00
ZwX1616 2dca9b49c7 tici dcam AE (#19970)
* tici_ae_front

* not const
old-commit-hash: 6d16bfab8243b7b320ac4ef20c98ddfc5ba6bfce
2021-01-29 19:11:27 -08:00
ZwX1616 099a5a21e2 camerad frame lag/drop jenkins tests (#19945)
* clean up test

* not needed for now

* this be enough

* comment this out

* clean up

* adjust tolerance

* use sof on tici

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1a95127b0ef62fd744b2f9277b86d130020f5bde
2021-01-28 14:21:59 -08:00
Dean Lee da9b0e8baa 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
old-commit-hash: e6783f4d9f10a256a4c301eb1d1843d9e2a17ab6
2021-01-28 15:12:45 +01:00
Dean Lee 8dfd6dce43 CameraBuf::acquire : release on failure (#19935)
old-commit-hash: 064bcbe80b90dc8dabb36c713964d6834b81c7c0
2021-01-27 12:08:38 +01:00
Dean Lee bed2eb58c1 fill_frame_data: remove unused paramater cnt (#19936)
old-commit-hash: 80799c7272a35d69e508d724a4f95c44b61a3ec0
2021-01-27 12:03:12 +01:00
Dean Lee bf95f37eba cameras_qcom: fix dangling pointer in fill_frame_image (#19891)
old-commit-hash: cbd08d6f0c95089e89b268c76fb4054443730c5e
2021-01-26 17:19:06 +01:00
Dean Lee 8e0dc47f2e camera_common: rename create_thumbnail to publish_thumbnail (#19920)
* rename create_thumbnail to publish_thumbnail

* check pm
old-commit-hash: 90994baab00ab59428768a4b8841a14452d88248
2021-01-26 17:06:03 +01:00
Dean Lee 37d0943201 camera_webcam: add "thumbnail" to Pubmaster (#19919)
old-commit-hash: 6b245b5b0c2b998e166a03064eafa6d2157d5755
2021-01-25 20:30:02 -08:00
ZwX1616 7e383c881f fill sof
old-commit-hash: 2b6149572a78874176340a9363db9e50f4839811
2021-01-22 13:24:51 -08:00
robbederks 46191df6bb Change qcom2 fserial and readout timing (#19820)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5eb16b11932c6fc6fc57eab1464eba141172089a
2021-01-20 12:54:20 +01:00
Adeeb Shihadeh a30859cf12 camera frame stream cleanup (#19741)
* clean up

* more clean up first
old-commit-hash: eae7a6ed22a96f792a5b6ca187a309505c3f249c
2021-01-19 14:40:47 -08:00
Adeeb Shihadeh c3783d5005 camerad: remove duplicate set_realtime_priority
old-commit-hash: 5cb6e69a78c9dadf0b12102e049fdb1feefa0295
2021-01-19 14:35:46 -08:00
Dean Lee 09a9eba635 CameraBuf: private variables (#19811)
old-commit-hash: aaac63689ddfd31c94ec490ef52faaa792ef3cb7
2021-01-19 14:28:40 -08:00
Adeeb Shihadeh 6a01983000 few fixes from LGTM
old-commit-hash: 758794dec5a886a8c3704d9e2ac191f8c208cc7e
2021-01-16 14:23:06 -08:00
Dean Lee 4eebd421a5 CameraBuf::acquire : using a scoped lock (#19764)
* Using a scoped lock

* Trigger Build
old-commit-hash: 20726997199aedea1ee40e6891a450ae70d56717
2021-01-15 12:09:18 +01:00
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: c804059641d16dbb4d41b36afae1ba3ccc8a2dcc
2021-01-15 12:05:31 +01:00
Dean Lee b5d575eb9f fill_frame_image: reduce function parameters (#19736)
* reduce function paramaters

* add assert

* Trigger Build
old-commit-hash: ea9835f293e9c59715f794cd82474469965c1710
2021-01-15 11:12:56 +01:00
Dean Lee 8b2b835e62 camerad use std::thread (#19771)
old-commit-hash: 1b3c93813d37e09b0c695a9974cfc8789373352c
2021-01-15 11:10:52 +01:00
Dean Lee b1ccf416c7 CameraBuf: removed unused variables (#19735)
old-commit-hash: c28ba97e67f55a8a5f9e7d8baa6030d6b36cd44a
2021-01-14 18:49:52 +01:00
ZwX1616 3d3c77423c fix tici debayer GPU page faults
old-commit-hash: f0cc78ea9294ecbfc2a351cd38398e4a1ab31a86
2021-01-12 20:53:51 -08:00
Willem Melching 6f417e0051 CameraBuf::stop() is not used
old-commit-hash: 0b79d0e12d5da68c0d0985916b78e888d3fbdcb7
2021-01-12 15:28:30 +01:00
Dean Lee 7ea7f097c4 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
old-commit-hash: 660abb79dc925427ae96e5bf03fb5635061cc919
2021-01-12 15:27:20 +01:00
Dean Lee 4c1919f41e merge utilpp.h into util.h (#19710)
old-commit-hash: 595830135bb79c8b23eb8339ae768ca7b6a822f8
2021-01-10 14:57:32 -08:00
Dean Lee 50da200b5a create_thumbnail in camera_common (#19553)
old-commit-hash: cefdca2fd67ed7cef1e536504ac71e631b7608ab
2021-01-08 14:31:21 -08:00
Dean Lee 46bd840be6 cleanup (#19564)
old-commit-hash: 621dcf8aa17ffe6342b6dbd660a8b24c1433f7d2
2021-01-08 14:07:33 -08:00
Willem Melching 3f950832b9 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
old-commit-hash: fb496c692a9ebdcda15069a8d4eb95734b587d68
2021-01-08 14:54:25 +01:00
Dean Lee 5e557ed96d 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
old-commit-hash: 86fe2d1697531bebdf5d0d83609e91ed4006f54b
2021-01-05 20:19:53 -08:00