mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-18 02:22:52 +00:00
19 lines
505 B
C++
19 lines
505 B
C++
#pragma once
|
|
|
|
#include "renderer.h"
|
|
|
|
class CUDARenderer : public IFFmpegRenderer {
|
|
public:
|
|
CUDARenderer();
|
|
virtual ~CUDARenderer() override;
|
|
virtual bool initialize(PDECODER_PARAMETERS) override;
|
|
virtual bool prepareDecoderContext(AVCodecContext* context, AVDictionary** options) override;
|
|
virtual void renderFrame(AVFrame* frame) override;
|
|
virtual bool needsTestFrame() override;
|
|
virtual bool isDirectRenderingSupported() override;
|
|
|
|
private:
|
|
AVBufferRef* m_HwContext;
|
|
};
|
|
|