Optimize CUDA support to avoid roundtrip to CPU memory

This commit is contained in:
Cameron Gutman
2021-12-06 18:22:39 -06:00
parent f0c292f508
commit 3e9aea1f7a
5 changed files with 141 additions and 8 deletions
@@ -12,6 +12,9 @@ public:
virtual bool needsTestFrame() override;
virtual bool isDirectRenderingSupported() override;
// Helper function used by SDLRenderer to read our CUDA frame
static bool copyCudaFrameToBoundTexture(AVFrame* frame);
private:
AVBufferRef* m_HwContext;
};