Add EGLImage export support to DRMRenderer

This commit is contained in:
Cameron Gutman committed 2021-01-30 17:52:23 -06:00
1 parent 243ba371b3
commit ac947d3bda
2 files changed
+85

No files matched your search

@@ -14,6 +14,12 @@ public:
virtual void renderFrame(AVFrame* frame) override;
virtual enum AVPixelFormat getPreferredPixelFormat(int videoFormat) override;
virtual int getRendererAttributes() override;
#ifdef HAVE_EGL
virtual bool canExportEGL() override;
virtual bool initializeEGL(EGLDisplay dpy, const EGLExtensions &ext) override;
virtual ssize_t exportEGLImages(AVFrame *frame, EGLDisplay dpy, EGLImage images[EGL_MAX_PLANES]) override;
virtual void freeEGLImages(EGLDisplay dpy, EGLImage[EGL_MAX_PLANES]) override;
#endif
private:
AVBufferRef* m_HwContext;