mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[feat] support getting codec name
This commit is contained in:
@@ -11,15 +11,20 @@
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
#include "video_frame.h"
|
||||
|
||||
class VideoDecoder {
|
||||
public:
|
||||
virtual int Init() = 0;
|
||||
|
||||
virtual int Decode(
|
||||
const uint8_t *data, int size,
|
||||
std::function<void(VideoFrame)> on_receive_decoded_frame) = 0;
|
||||
|
||||
virtual std::string GetDecoderName() = 0;
|
||||
|
||||
VideoDecoder() = default;
|
||||
virtual ~VideoDecoder() {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user