Commit Graph

22 Commits

Author SHA1 Message Date
Adeeb Shihadeh
76bd932cf5 loggerd: always run encoders (#22649)
* loggerd: always run encoders

* fix raw logger

* bump loggerd cpu usage
2021-10-21 16:37:03 -07:00
Dean Lee
f02c8d0e2c Handle EINTR for all syscalls that can return it (#21948) 2021-08-31 16:22:56 -07:00
Willem Melching
dddab597bc 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>
2021-08-28 18:25:05 -07:00
Dean Lee
4625098a79 enclose macro arguments in parentheses (#21947)
* macro argument should be enclosed in parentheses

* CL_CHECK
2021-08-18 10:56:37 +02:00
Dean Lee
c53cb5d570 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
2021-06-08 13:46:22 -07:00
Dean Lee
0495426535 Cleanup includes (#20925)
* remove #include <pthread.h>

* remove #include<stdbool.h> for cc files

* remove #include<iostream>
2021-05-17 10:31:31 +02:00
Dean Lee
7222d0f20d 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>
2021-05-08 22:15:17 -07:00
Dean Lee
e736029235 fix Fix problematic realloc (#19812) 2021-03-12 19:57:07 -08:00
Greg Hogan
1cd9105e96 adjust qcamera quality (#20066)
* better ts

* fix test
2021-02-11 17:55:00 -08:00
Dean Lee
1fad5216ea loggerd: remove the segment variable from encoders (#20034) 2021-02-07 17:48:46 -08:00
Dean Lee
aa37e95341 OmxEncoder: use c++ mutex&condition_variable (#19786)
* use c++ mutex&condition_variable

* rebase

* cleanup includes&use while

* remove include pthread.h
2021-02-01 21:57:17 -08:00
Dean Lee
9a9641a296 OMXEncoder: remove pthread_mutex_t lock from member variables (#19948)
* remove mutex

* rebase master
2021-01-30 19:11:03 -08:00
Adeeb Shihadeh
20a2bfdd31 Revert "OmxEncoder: new function set_state, set and wait state changed (#19906)"
This reverts commit 36a596eb1e.
2021-01-28 11:57:29 -08:00
Dean Lee
36a596eb1e 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
2021-01-28 11:45:44 -08:00
Dean Lee
e6783f4d9f 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
2021-01-28 15:12:45 +01:00
Adeeb Shihadeh
ea74f558f4 Revert "OMXEncoder: add calls to OMX_Init()&OMX_Deinit() (#19905)"
This reverts commit 8f00813089.
2021-01-27 20:17:35 -08:00
Dean Lee
8f00813089 OMXEncoder: add calls to OMX_Init()&OMX_Deinit() (#19905)
* add calls to OMX_Init()&OMX_Deinit()

* fix indentation
2021-01-27 13:37:42 -08:00
Adeeb Shihadeh
1ed77847fe loggerd: remove vipc arg from encode frame 2021-01-23 17:11:36 -08:00
Dean Lee
a5be02c2c7 OmxEncoder: set s->of to nullptr after close (#19814) 2021-01-19 14:28:03 -08:00
Dean Lee
e04cecd169 OmxEncoder: use std::vector to keep buffer (#19807) 2021-01-17 15:48:06 -08:00
Dean Lee
0592c326ed OmxEncoder: use macro to check error (#19785) 2021-01-16 12:43:59 -08:00
Adeeb Shihadeh
a1c7f19fe4 Video Encoder abstraction (#19729) 2021-01-12 00:03:31 -08:00