Commit Graph

25 Commits

Author SHA1 Message Date
Dean Lee
d6f233bf7b rename yuv streams (#226) 2021-11-29 18:12:50 -08:00
Willem Melching
8cbd71836e vipc_client: zero buffers is fine 2021-11-26 14:48:58 +01:00
Willem Melching
5edffa0f49 Add stream type for maps (#221) 2021-11-16 14:21:48 +01:00
Willem Melching
c3a50a3a5d fix shadow in visionbuf_ion 2021-11-02 17:15:06 +01:00
Mayfield
d46f37c314 fix wshadow errors (#214)
* fix wshadow errors

* ignore cython
2021-11-02 14:23:08 +01:00
Willem Melching
7ae52a7d83 Add frame id into VisionIPC image buffer (#210)
* wip: add frame id to vipc

* set pointer and add test

* fix frameid on import
2021-10-26 15:23:30 +02:00
Dean Lee
d5a85fe5d7 VisionIpcClient: add function is_connected (#203) 2021-10-05 09:42:21 +02:00
Dean Lee
af1f366527 VisionIPC: close socket_fd after connected (#201) 2021-09-28 11:13:11 +02:00
Willem Melching
d5758b71b0 fix buid: include errno.h 2021-09-14 18:32:03 -07:00
Dean Lee
dff95acd10 retry ioctls while errno == EINTR (#191) 2021-09-13 12:21:29 -07:00
Adeeb Shihadeh
aa38a5fe34 expose stride in cython vipc 2021-09-01 15:13:05 -07:00
Adeeb Shihadeh
77142a4e7a visionipc: add cython client (#193) 2021-08-29 22:00:09 -07:00
Willem Melching
e137c5731e Less open file permissions (#187) 2021-08-28 18:20:54 -07:00
Willem Melching
aa2a1e9d80 Improve VisionIPC error handling (#184)
* add return values to visionbuf

* add mock logger and log prints

* add logging to server

* unused

* link in common
2021-07-29 10:32:29 +02:00
Willem Melching
487ec1a6a4 ignore failures on ION buffer free 2021-07-28 14:35:59 +02:00
Willem Melching
9c7dbf81e9 Always free ION buffer (#183)
* always free ION buffer

* remove unused owner field
2021-07-26 14:49:22 +02:00
Adeeb Shihadeh
e68da2f7d6 visionipc: increase max fds to 128 2021-07-10 14:30:59 -07:00
Dean Lee
fe5690347e cleanup include paths (#165)
cleanup
2021-06-10 11:44:59 -07:00
Adeeb Shihadeh
d87e7e56d9 fix cython visionipc for qcom 2021-05-28 20:34:11 -07:00
Adeeb Shihadeh
3be0bf50c8 rename headers: hpp -> h 2021-05-03 20:40:36 -07:00
Willem Melching
dc406553eb Cython wrapper for VisionIpc server (#117)
* vipc cython wrapper

* send some data

* start listener

* fix extra datatype
2021-02-09 17:15:18 +01:00
Robbe Derks
2547d3348e don't crash on invalid buffer type 2021-01-19 15:28:50 +01:00
Willem Melching
610fa77bc4 visionipc add timeout param 2021-01-19 14:45:59 +01:00
Willem Melching
38f12b99e0 only free ION buffer in server 2021-01-11 16:07:31 +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