Commit Graph

49 Commits

Author SHA1 Message Date
Harald Schäfer 381fc3d9df
Restructure package (#622)
* Move around

* rename messaging to ipc

* More renames

* refactor visionipc ipc

* more movement

* compiles

* works well

* update workflow

* Update

* test fake

* fix names

* Fix test

* exclude library

* exclude from lint too

* Rm dir

* rm this wayu

* Try again

* mv logger

* delete old

* HAX

* Move logger down

* add warning abck
2024-06-09 17:17:12 -07:00
Adeeb Shihadeh 16cc134f60
pre-commit: autoupdate hooks (#605)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-05-11 13:10:41 -07:00
Adeeb Shihadeh 29fa8d572c
pre-commit: autoupdate hooks (#603)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-03-20 13:23:29 -07:00
Adeeb Shihadeh 53af1649c5
pre-commit: autoupdate hooks (#601)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-03-12 23:55:56 -07:00
Adeeb Shihadeh e1e100824b
pre-commit: autoupdate hooks (#597)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-03-07 13:56:46 -08:00
Adeeb Shihadeh ce2a5033c6
pre-commit: autoupdate hooks (#591)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-02-20 15:02:05 -08:00
Adeeb Shihadeh e45e3869d1
pre-commit: autoupdate hooks (#568)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-02-09 19:43:23 -08:00
Adeeb Shihadeh e29625c30b
pre-commit: autoupdate hooks (#566)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-12-26 20:30:26 -08:00
Adeeb Shihadeh bceb8b942d
pre-commit: autoupdate hooks (#565)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-12-21 21:46:37 -08:00
Adeeb Shihadeh d11688a90a
pre-commit: autoupdate hooks (#559)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-12-09 12:52:05 -08:00
Adeeb Shihadeh 204a117763
pre-commit: autoupdate hooks (#555)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-11-28 14:21:42 -08:00
Adeeb Shihadeh 2cb2bfb015
pre-commit: autoupdate hooks (#554)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-11-21 15:10:09 -08:00
Adeeb Shihadeh 5b8413efb1
pre-commit: autoupdate hooks (#553)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-11-18 22:54:03 -08:00
Adeeb Shihadeh 3acaeee6de
pre-commit: autoupdate hooks (#551)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-11-07 10:58:38 -08:00
Adeeb Shihadeh 1b43e697e5
pre-commit: autoupdate hooks (#549)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-31 11:34:20 -07:00
Adeeb Shihadeh c83ed64440
pre-commit: autoupdate hooks (#547)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-24 14:37:55 -07:00
Adeeb Shihadeh bc382148d0
pre-commit: autoupdate hooks (#542)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-19 11:29:26 -07:00
Adeeb Shihadeh 4a07275487
pre-commit: autoupdate hooks (#541)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-03 11:34:38 -07:00
Adeeb Shihadeh 457255840c
pre-commit: autoupdate hooks (#538)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-26 14:10:03 -07:00
Adeeb Shihadeh 25cfa642e6
pre-commit: autoupdate hooks (#535)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-19 16:16:39 -07:00
Adeeb Shihadeh e342bc4888
pre-commit: autoupdate hooks (#532)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-12 16:30:48 +01:00
Justin Newberry d469732b3b
Precommit: ensure executable bit is set (#530)
precommit ensure executable
2023-09-05 15:35:01 -07:00
Adeeb Shihadeh a283061ab7
pre-commit: autoupdate hooks (#528)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-05 17:51:52 +01:00
Adeeb Shihadeh cdd76b2972
pre-commit: autoupdate hooks (#525)
* Update pre-commit hook versions

* Update test_visionipc.py

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-08-31 14:38:04 -07:00
Dean Lee bf8db88407
cpplint: more filters (#522)
more filters
2023-08-24 11:31:53 -07:00
Adeeb Shihadeh ac0fb38e24
pre-commit: autoupdate hooks (#518)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-08-22 10:40:06 -07:00
Adeeb Shihadeh 938eaaae81
pre-commit: autoupdate hooks (#514)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-08-15 10:29:44 -07:00
Justin Newberry f01d677e1d
CI: pylint to ruff (#512)
* pylint to ruff

* fix ruff
2023-08-07 15:55:35 -07:00
Adeeb Shihadeh 48cc1c2fc6
pre-commit: autoupdate hooks (#508)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-08-01 11:10:07 -07:00
Adeeb Shihadeh e557427630
pre-commit: autoupdate hooks (#490)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-06-29 11:10:51 -07:00
Adeeb Shihadeh 1ea038f5de
pre-commit: autoupdate hooks (#477)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-06-20 16:29:51 -07:00
Adeeb Shihadeh 88a586e671
pre-commit: autoupdate hooks (#446)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-05-16 11:49:47 -07:00
Adeeb Shihadeh 6e32e417db pre-commit update 2023-04-15 16:29:35 -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
Adeeb Shihadeh c4cc38c468 pre-commit: add codespell 2022-08-26 16:27:58 -07:00
Adeeb Shihadeh 8ada2a75b3 fix suppression for older cppcheck 2022-03-13 22:22:32 -07:00
Adeeb Shihadeh 8486fbb874 pin pre-commit hook versions 2022-03-13 22:08:19 -07:00
Adeeb Shihadeh 74f429ac23 fix cppcheck 2022-03-13 22:07:31 -07:00
Adeeb Shihadeh 7053ad1f57 fix flake8 2021-10-11 16:02:08 -07: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
grekiki adcbc666b6
cython scons builder (#100)
* improve building

* numpy will probably not be needed

* remove unnedded lines

* guessing what static analysis wants to pass

* fix the test by removing it

* Update __init__.py

* Update SConstruct

* Update SConscript

* style

* pre commit

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-11-25 17:14:50 -08:00
Adeeb Shihadeh 99289eb559 increase max line length 2020-07-26 19:34:41 -07:00
Adeeb Shihadeh fc811ece0b update flake8 config to match openpilot 2020-07-26 18:49:10 -07:00
Adeeb Shihadeh 1aaf1bfd7c fix dereferencing of full_path after free 2020-06-08 12:21:07 -07:00
Adeeb Shihadeh 1acd80064d run cppcheck in CI 2020-06-04 20:13:59 -07:00
Willem Melching 978ffda405 stricter pylint 2020-06-02 15:22:28 -07:00
Adeeb Shihadeh 3ad1ac096b enable almost all flake8 checks 2020-06-01 01:55:43 -07:00
Willem Melching c8be73d10c use github url instead of gitlab mirror 2020-05-28 17:47:09 -07:00
Willem Melching 8e2d212a3d
add pre-commit static analysis (#48) 2020-05-28 16:04:53 -07:00