mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 18:42:07 +08:00
9909060b4d
old-commit-hash: a1c7f19fe46fe79d84543a9388f4b131fc42051b
19 lines
466 B
C++
19 lines
466 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
#include <mutex>
|
|
|
|
#include "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,
|
|
int *frame_segment, VisionIpcBufExtra *extra) = 0;
|
|
virtual void encoder_open(const char* path, int segment) = 0;
|
|
virtual void encoder_close() = 0;
|
|
};
|