mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-22 16:42:07 +08:00
1f4628bad5
* don't use the codec in video_writer
* this produces broken videos for some reason
* bugfix
* refactor on the class
* works on device
* fix codec
* no codec enum
* fix pc
* move into dirs
* these includes also
* rename it ffmpegencoder
* add avcodec_close
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2008db47c2
11 lines
319 B
C++
11 lines
319 B
C++
#include "selfdrive/loggerd/encoder/video_writer.h"
|
|
|
|
struct RemoteEncoder {
|
|
std::unique_ptr<VideoWriter> writer;
|
|
int segment = -1;
|
|
std::vector<Message *> q;
|
|
int logger_segment = -1;
|
|
int dropped_frames = 0;
|
|
};
|
|
|
|
int handle_encoder_msg(LoggerdState *s, Message *msg, std::string &name, struct RemoteEncoder &re); |