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:
@@ -13,9 +13,12 @@ class NvidiaVideoDecoder : public VideoDecoder {
|
||||
|
||||
public:
|
||||
int Init();
|
||||
|
||||
int Decode(const uint8_t* data, int size,
|
||||
std::function<void(VideoFrame)> on_receive_decoded_frame);
|
||||
|
||||
std::string GetDecoderName() { return "NvidiaH264"; }
|
||||
|
||||
private:
|
||||
NvDecoder* decoder = nullptr;
|
||||
bool get_first_keyframe_ = false;
|
||||
|
||||
Reference in New Issue
Block a user