Commit Graph

10 Commits

Author SHA1 Message Date
Adeeb Shihadeh 6e58b293ee
include from project root (#402) 2022-12-31 14:19:29 -08:00
Willem Melching c3a50a3a5d fix shadow in visionbuf_ion 2021-11-02 17:15:06 +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
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
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
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