mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-23 16:15:02 +00:00
Require a test frame for Vulkan video decoding
This commit is contained in:
parent
7d51a4b67d
commit
8aeb976128
2 changed files with 7 additions and 0 deletions
|
@ -684,6 +684,12 @@ int PlVkRenderer::getDecoderCapabilities()
|
|||
CAPABILITY_REFERENCE_FRAME_INVALIDATION_AV1;
|
||||
}
|
||||
|
||||
bool PlVkRenderer::needsTestFrame()
|
||||
{
|
||||
// We need a test frame to verify that Vulkan video decoding is working
|
||||
return true;
|
||||
}
|
||||
|
||||
bool PlVkRenderer::isPixelFormatSupported(int videoFormat, AVPixelFormat pixelFormat)
|
||||
{
|
||||
if (m_Backend) {
|
||||
|
|
|
@ -18,6 +18,7 @@ public:
|
|||
virtual void setHdrMode(bool enabled) override;
|
||||
virtual int getRendererAttributes() override;
|
||||
virtual int getDecoderCapabilities() override;
|
||||
virtual bool needsTestFrame() override;
|
||||
virtual bool isPixelFormatSupported(int videoFormat, enum AVPixelFormat pixelFormat) override;
|
||||
virtual AVPixelFormat getPreferredPixelFormat(int videoFormat) override;
|
||||
virtual RendererType getRendererType() override;
|
||||
|
|
Loading…
Reference in a new issue