mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
22 lines
404 B
C++
22 lines
404 B
C++
/*
|
|
* @Author: DI JUNKUN
|
|
* @Date: 2023-11-24
|
|
* Copyright (c) 2023 by DI JUNKUN, All Rights Reserved.
|
|
*/
|
|
|
|
#ifndef _VIDEO_DECODER_H_
|
|
#define _VIDEO_DECODER_H_
|
|
|
|
#include <functional>
|
|
|
|
#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;
|
|
};
|
|
|
|
#endif |