Files
moonlight-qt/app/streaming/video/ffmpeg-renderers/genhwaccel.h
Cameron Gutman d501a627f0 Test all renderers before use
Every renderer except SDL had opted-in for testing due to various
quirks discovered over the years, so just do away with this option
and test all renderers.
2025-12-22 23:58:26 -06:00

21 lines
604 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 isDirectRenderingSupported() override;
virtual int getDecoderCapabilities() override;
private:
AVHWDeviceType m_HwDeviceType;
AVBufferRef* m_HwContext;
};