Add support for rendering software decoded frames with Vulkan

This commit is contained in:
Cameron Gutman
2024-07-06 16:49:35 -05:00
parent d085722911
commit b5b2731d5f
3 changed files with 85 additions and 21 deletions
+2 -1
View File
@@ -12,7 +12,7 @@
class PlVkRenderer : public IFFmpegRenderer {
public:
PlVkRenderer(IFFmpegRenderer* backendRenderer);
PlVkRenderer(bool hwaccel = false, IFFmpegRenderer *backendRenderer = nullptr);
virtual ~PlVkRenderer() override;
virtual bool initialize(PDECODER_PARAMETERS params) override;
virtual bool prepareDecoderContext(AVCodecContext* context, AVDictionary** options) override;
@@ -47,6 +47,7 @@ private:
// The backend renderer if we're frontend-only
IFFmpegRenderer* m_Backend;
bool m_HwAccelBackend;
// SDL state
SDL_Window* m_Window = nullptr;