Optimize CUDA support to avoid roundtrip to CPU memory
This commit is contained in:
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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue