mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-21 11:13:53 +08:00
* 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>
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); |