Files
sunnypilot/selfdrive/loggerd/encoder.h
George Hotz 9720bb37b5 loggerd: broadcast encoder data (#24177)
* 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
2022-04-12 12:08:50 -07:00

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;
};