mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-21 06:03:55 +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>
old-commit-hash: dab978083b
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;
|
|
};
|