Allow DRMRenderer to be used for indirect rendering
This commit is contained in:
parent
1e31f6fe77
commit
6a66b462ce
2 changed files with 57 additions and 23 deletions
|
|
@ -14,6 +14,8 @@ public:
|
|||
virtual void renderFrame(AVFrame* frame) override;
|
||||
virtual enum AVPixelFormat getPreferredPixelFormat(int videoFormat) override;
|
||||
virtual int getRendererAttributes() override;
|
||||
virtual bool needsTestFrame() override;
|
||||
virtual bool isDirectRenderingSupported() override;
|
||||
#ifdef HAVE_EGL
|
||||
virtual bool canExportEGL() override;
|
||||
virtual bool initializeEGL(EGLDisplay dpy, const EGLExtensions &ext) override;
|
||||
|
|
@ -25,6 +27,7 @@ private:
|
|||
AVBufferRef* m_HwContext;
|
||||
int m_DrmFd;
|
||||
bool m_SdlOwnsDrmFd;
|
||||
bool m_SupportsDirectRendering;
|
||||
uint32_t m_CrtcId;
|
||||
uint32_t m_PlaneId;
|
||||
uint32_t m_CurrentFbId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue