Commit Graph

13 Commits

Author SHA1 Message Date
Adeeb Shihadeh
3be0bf50c8 rename headers: hpp -> h 2021-05-03 20:40:36 -07:00
Joost Wooning
957147cb84 some fixes and small changes for locationd in c++ (#135)
* Added getters

* extra service to ack messages in process replay

* fix allAliveAndValid ignoring ignoreValid services

* check if readers are updated

* default message valid true
2021-04-19 17:28:06 +02:00
Willem Melching
a9290aa1d0 msgq: fixup larger queue size for frames 2021-02-22 10:12:04 +01:00
Willem Melching
95e32803cd Visionipc v2.0 (#101)
* add visionbuf

make static

ignore that

* Needs decleration

* add test binary

* c++

* create some structure

* some impl

* socket stuff

* Accept socket connection

* Alloc some buffers

* Create pub sockets and send buffer id

* make listener private

* Implement receive

* use error check macros in cl_helpers

* constructors to pass in opencl context

* add some convenience values in struct

* refactor creating buffers

* rgb is not so simple

* add fake stride and expose buffers

* add comment

* add extra data struct

* support conflate

* init opencl on all buffers

* make ion compile

* fix qcom2

* correctly setup yuv pointers when importing buffer

* also included from c

* Remove send print statements

* send metadata

* reveive metadata

* also used in c code

* dont start listener automatically

* Was started in 2 places

* set 100ms timeout on socket

* verify server id to detect reconnects

* handle reconnect

* buffer cleanup

* let user handle opencl creation

* add default values

* Add support for aligned rgb buffers

* add align macro

* dont use namespace

* use poller

* apple ifdef in ipc.cc

* VisionBuf is C++ class

* Install opencl headers

* cppcheck c++

* remove c header guard

* fix mac build

* simplify constructors

* Update visionipc/visionipc.h

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update visionipc/visionbuf_ion.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* add brackets

* s/VIPCBufExtra/VisionIpcBufExtra/g

* Add unittesting harness

* remove vipc demo

* very basic tests

* add conflate test

* Install opencl

* suppress msgq warnings

* Make it work using zmq

* cl in qcom replay

* run unittests in zmq mode as well

* non blocking connect

* always larger frame queues

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-08 14:54:41 +01:00
Willem Melching
78b8887198 larger shared memory size on computer for frames 2020-08-28 13:16:12 +02:00
Paweł Goliński
c1a6d75d1d Fix potential segfault in MSGQPubSocket::connect (#45) 2020-05-20 16:12:44 -07:00
Willem Melching
c6b5c73b0b Switch default to msgq (#21)
* switch default to msgq

* SIGUSR1 is already used by the apks

* Don't return message upstream when exiting

* Remove debug print

* Remove more debug print
2020-01-13 09:47:03 -08:00
Willem Melching
3b753be905 Implement error handling and exceptions (#18)
* implement error handling and exceptions

* Add test for MultiplePublisherError

* add some more tests
2019-12-04 23:05:20 +01:00
Comma Device
84b3af535e comment out the debugging 2019-11-21 21:02:12 +00:00
Willem Melching
30aaaddc78 msgq: try again when no timeout on poll but also no message 2019-11-18 13:27:56 -08:00
Willem Melching
4e513a855e msgq: dont clean up uninitialized sockerts 2019-11-15 15:42:55 -08:00
Willem Melching
ef64eb27d7 MSGQ stability improvements when opening and closing lots of queues 2019-11-15 14:37:58 -08:00
Willem Melching
d35515a225 add all msgq files, but dont use as default 2019-11-04 16:15:19 -08:00