George Hotz
b872fe92ab
loggerd: Separate writer from encoder ( #24257 )
...
* seperate writer from encoder
* video writer in release
* confirm loggerd on PC works, add YUV option to compressed_vipc
* make raw_logger use video_writer
* put this back to master
* close codec
* put this back
* use unique_ptr
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 8d24655787
2022-04-20 14:51:24 -07:00
George Hotz
d73af8d298
C2: remove some dead code ( #24256 )
...
* remove some dead code
* still needed
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 1795a2ac03
2022-04-18 20:38:03 -07:00
George Hotz
6dde52671b
loggerd: prereqs for deanlee loggerd omx encoder (try 2) ( #24252 )
...
* refactor encoders
* fix pc build
* buf_info
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 0ac35a656a
2022-04-18 18:21:46 -07:00
Comma Device
d9d3f9a8ee
encodeData: add flags support
...
old-commit-hash: df7275f1f7
2022-04-16 15:54:22 -07:00
George Hotz
751615c99c
loggerd: add qcam broadcast support, don't recreate pubmaster ( #24226 )
...
* add qcam broadcast support, don't recreate pubmaster
* fixed
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 35e776d2fd
2022-04-16 14:42:36 -07:00
George Hotz
9720bb37b5
loggerd: broadcast encoder data ( #24177 )
...
* encode data try 1
* fix pc build
* low quality compressed streamer with pyav
* nvidia streamer
* timestamp support
* fix latency measurement
* refactor
* camerastream updates
* fix linter
* compressed to vipc, clean
* remove print
* touchups
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: dab978083b
2022-04-12 12:08:50 -07:00
Willem Melching
5517800a59
omx encoder: move writing into thread ( #23771 )
...
* omx encoder: move writing to separate thread
* fix include
* pop
* log buffers sizes
* split copy and write
old-commit-hash: 2f00271ce6
2022-02-22 13:02:50 +01:00
Willem Melching
19deb98bc3
wshadow: fix comma three build
...
old-commit-hash: 45c506bb17
2021-11-02 17:27:34 +01:00
Dean Lee
ebffd5f3ad
util: add safe write functions ( #22160 )
...
* add safe write functions
* log error
* bzfile safe_fopen&safe_flush
* update test_case
* trigger ci
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: 652c42da2c
2021-10-29 13:23:31 +02:00
Adeeb Shihadeh
b773f6711c
loggerd: always run encoders ( #22649 )
...
* loggerd: always run encoders
* fix raw logger
* bump loggerd cpu usage
old-commit-hash: 76bd932cf5
2021-10-21 16:37:03 -07:00
Dean Lee
4c17c06799
Handle EINTR for all syscalls that can return it ( #21948 )
...
old-commit-hash: f02c8d0e2c
2021-08-31 16:22:56 -07:00
Willem Melching
6f92abc815
Less open file permissions ( #21922 )
...
* Less open file permissions
* add test back
* remove params test for permissions
* remove umask
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: dddab597bc
2021-08-28 18:25:05 -07:00
Dean Lee
aff7f0b1f3
enclose macro arguments in parentheses ( #21947 )
...
* macro argument should be enclosed in parentheses
* CL_CHECK
old-commit-hash: 4625098a79
2021-08-18 10:56:37 +02:00
Dean Lee
f70a79b838
Use C++ header files instead of C header files. ( #21192 )
...
* use cstring instead of string.h
* use cstdio instead of stdio.h
* remove inttypes.h
* use cstdlib instead of stdlib.h
* use cstdint instead of stdint.h
* #include <cstddef>
* cstdlib
* use cmath
* remove stddef.h
* use cassert
* use csignal
* use ctime
* use cerror
* rebase master
old-commit-hash: c53cb5d570
2021-06-08 13:46:22 -07:00
Dean Lee
5609f32cee
Cleanup includes ( #20925 )
...
* remove #include <pthread.h>
* remove #include<stdbool.h> for cc files
* remove #include<iostream>
old-commit-hash: 0495426535
2021-05-17 10:31:31 +02:00
Dean Lee
e333e4f189
Cleanup selfdrive/ includes ( #20822 )
...
* cleanup include path
* continue
* format includes
* fix testraw.cc
* remove include path from SConstruct
* regroup
* rebase master
* almost done
* apply review
* rename FileReader.xx to filereader.xx
* rename Unlogger.x->unlogger.x
* rename FrameReader.xx -> framereader.xx
* apply reviews
* ui.h
* continue
* fix framebuffer.cc build error:mv util.h up
* full path to msm_media_info
* fix qcom2 camerad
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 7222d0f20d
2021-05-08 22:15:17 -07:00
Dean Lee
21346b0980
fix Fix problematic realloc ( #19812 )
...
old-commit-hash: e736029235
2021-03-12 19:57:07 -08:00
Greg Hogan
d59a13e22a
adjust qcamera quality ( #20066 )
...
* better ts
* fix test
old-commit-hash: 1cd9105e96
2021-02-11 17:55:00 -08:00
Dean Lee
6e63be3a01
loggerd: remove the segment variable from encoders ( #20034 )
...
old-commit-hash: 1fad5216ea
2021-02-07 17:48:46 -08:00
Dean Lee
ab24d18c43
OmxEncoder: use c++ mutex&condition_variable ( #19786 )
...
* use c++ mutex&condition_variable
* rebase
* cleanup includes&use while
* remove include pthread.h
old-commit-hash: aa37e95341
2021-02-01 21:57:17 -08:00
Dean Lee
06ac698691
OMXEncoder: remove pthread_mutex_t lock from member variables ( #19948 )
...
* remove mutex
* rebase master
old-commit-hash: 9a9641a296
2021-01-30 19:11:03 -08:00
Adeeb Shihadeh
78b20a077f
Revert "OmxEncoder: new function set_state, set and wait state changed ( #19906 )"
...
This reverts commit fbc80f3131acd05e6473daa1682f017874b6f883.
old-commit-hash: 20a2bfdd31
2021-01-28 11:57:29 -08:00
Dean Lee
d7adc6ed49
OmxEncoder: new function set_state, set and wait state changed ( #19906 )
...
* free buffers after state is loaded
* set_data_blocking
* fix indentation
* Empty commit,trigger Build
old-commit-hash: 36a596eb1e
2021-01-28 11:45:44 -08:00
Dean Lee
da9b0e8baa
remove cqueue, use class SafeQueue ( #19774 )
...
* class SafeQueue
* cleanup includes
* space
* add timeout
use try_poll
* add function empty() & size()
* class SafeQueue
* add timeout
use try_poll
* add function empty() & size()
* rebase master
* rebase master
* for loop
* fix bug
old-commit-hash: e6783f4d9f
2021-01-28 15:12:45 +01:00
Adeeb Shihadeh
efb14fc172
Revert "OMXEncoder: add calls to OMX_Init()&OMX_Deinit() ( #19905 )"
...
This reverts commit 2b789323981058401a6c908ec674901ed2662f08.
old-commit-hash: ea74f558f4
2021-01-27 20:17:35 -08:00
Dean Lee
6bd65f558e
OMXEncoder: add calls to OMX_Init()&OMX_Deinit() ( #19905 )
...
* add calls to OMX_Init()&OMX_Deinit()
* fix indentation
old-commit-hash: 8f00813089
2021-01-27 13:37:42 -08:00
Adeeb Shihadeh
a65cef0b31
loggerd: remove vipc arg from encode frame
...
old-commit-hash: 1ed77847fe
2021-01-23 17:11:36 -08:00
Dean Lee
3a11061dce
OmxEncoder: set s->of to nullptr after close ( #19814 )
...
old-commit-hash: a5be02c2c7
2021-01-19 14:28:03 -08:00
Dean Lee
339cb7b353
OmxEncoder: use std::vector to keep buffer ( #19807 )
...
old-commit-hash: e04cecd169
2021-01-17 15:48:06 -08:00
Dean Lee
9eb6648ec5
OmxEncoder: use macro to check error ( #19785 )
...
old-commit-hash: 0592c326ed
2021-01-16 12:43:59 -08:00
Adeeb Shihadeh
9909060b4d
Video Encoder abstraction ( #19729 )
...
old-commit-hash: a1c7f19fe4
2021-01-12 00:03:31 -08:00