mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Use factory to create encoder/decoder
This commit is contained in:
16
src/media/video/decode/video_decoder.h
Normal file
16
src/media/video/decode/video_decoder.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef _VIDEO_DECODER_H_
|
||||
#define _VIDEO_DECODER_H_
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "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;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user