mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-22 04:53:53 +08:00
* 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>
14 lines
388 B
C++
14 lines
388 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include "selfdrive/loggerd/loggerd.h"
|
|
|
|
class VideoEncoder {
|
|
public:
|
|
virtual ~VideoEncoder() {}
|
|
virtual int encode_frame(const uint8_t *y_ptr, const uint8_t *u_ptr, const uint8_t *v_ptr,
|
|
int in_width, int in_height, uint64_t ts) = 0;
|
|
virtual void encoder_open(const char* path) = 0;
|
|
virtual void encoder_close() = 0;
|
|
};
|