[feat] support getting codec name

This commit is contained in:
dijunkun
2024-09-23 14:14:45 +08:00
parent 5eb455b6c8
commit c7b934026b
11 changed files with 38 additions and 0 deletions

View File

@@ -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;