mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-17 18:13:24 +00:00
This will get us limited hardware acceleration even for hwaccels that we don't know about yet.
22 lines
648 B
C++
22 lines
648 B
C++
#pragma once
|
|
|
|
#include "renderer.h"
|
|
|
|
class GenericHwAccelRenderer : public IFFmpegRenderer
|
|
{
|
|
public:
|
|
GenericHwAccelRenderer(AVHWDeviceType hwDeviceType);
|
|
virtual ~GenericHwAccelRenderer() 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;
|
|
virtual int getDecoderCapabilities() override;
|
|
|
|
private:
|
|
AVHWDeviceType m_HwDeviceType;
|
|
AVBufferRef* m_HwContext;
|
|
};
|
|
|