Add CUDA acceleration support
This commit is contained in:
parent
20a4dfa6d6
commit
87356ef594
3 changed files with 77 additions and 0 deletions
18
app/streaming/video/ffmpeg-renderers/cuda.h
Normal file
18
app/streaming/video/ffmpeg-renderers/cuda.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include "renderer.h"
|
||||
|
||||
class CUDARenderer : public IFFmpegRenderer {
|
||||
public:
|
||||
CUDARenderer();
|
||||
virtual ~CUDARenderer() override;
|
||||
virtual bool initialize(PDECODER_PARAMETERS) override;
|
||||
virtual bool prepareDecoderContext(AVCodecContext* context) override;
|
||||
virtual void renderFrame(AVFrame* frame) override;
|
||||
virtual bool needsTestFrame() override;
|
||||
virtual bool isDirectRenderingSupported() override;
|
||||
|
||||
private:
|
||||
AVBufferRef* m_HwContext;
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue