You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
402 B
13 lines
402 B
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include "cereal/visionipc/visionipc.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, VisionIpcBufExtra *extra) = 0;
|
|
virtual void encoder_open(const char* path) = 0;
|
|
virtual void encoder_close() = 0;
|
|
};
|
|
|