Commit Graph

15 Commits

Author SHA1 Message Date
Kacper Rączy 6f7102581f
visionipc: support OPENPILOT_PREFIX (#497)
* OPENPILOT_PREFIX support in visionipc

* Use prefix as filename prefix

* Remove unnecessary import
2023-07-17 19:17:09 -07:00
Dean Lee a3e66d284e
VisionIpcServer: unlink path after closing socket (#457) 2023-06-05 15:21:00 -07:00
Adeeb Shihadeh 959ff79963
add cpplint (#401)
* add cpplint

* include what you use

* whitespace fixes

* passes
2022-12-31 16:33:09 -08:00
Dean Lee da48ed5b54
vipc: add function to get available streams (#400)
* add function to get available streams

* add test case

* cleanup

* use set

* public type

* Update visionipc_server.cc

* apply review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-12-31 14:59:24 -08:00
Adeeb Shihadeh 6e58b293ee
include from project root (#402) 2022-12-31 14:19:29 -08:00
Joost Wooning bf4960f83c
use nv12 for visionipc (#308)
* use nv12 for visionipc

* add uv_offet to python

* add more visionipc python functions

Co-authored-by: Comma Device <device@comma.ai>
2022-06-01 17:16:56 +02:00
Willem Melching 28d458a9af visionipc: navd is valid name 2022-02-23 14:02:53 +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 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 9c7dbf81e9
Always free ION buffer (#183)
* always free ION buffer

* remove unused owner field
2021-07-26 14:49:22 +02:00
Dean Lee fe5690347e
cleanup include paths (#165)
cleanup
2021-06-10 11:44:59 -07:00
Adeeb Shihadeh 3be0bf50c8 rename headers: hpp -> h 2021-05-03 20:40:36 -07:00
Robbe Derks 2547d3348e don't crash on invalid buffer type 2021-01-19 15:28:50 +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