MythTV  master
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
MythEGLDMABUF Class Reference

#include <mythegldmabuf.h>

Inheritance diagram for MythEGLDMABUF:
Inheritance graph
[legend]

Public Member Functions

 MythEGLDMABUF (MythRenderOpenGL *Context)
 
 ~MythEGLDMABUF ()=default
 
std::vector< MythVideoTexture * > CreateTextures (AVDRMFrameDescriptor *Desc, MythRenderOpenGL *Context, MythVideoFrame *Frame, bool UseSeparate, FrameScanType Scan=kScan_Progressive)
 

Static Public Member Functions

static bool HaveDMABuf (MythRenderOpenGL *Context)
 
static void ClearDMATextures (MythRenderOpenGL *Context, std::vector< MythVideoTexture * > &Textures)
 

Private Member Functions

std::vector< MythVideoTexture * > CreateComposed (AVDRMFrameDescriptor *Desc, MythRenderOpenGL *Context, MythVideoFrame *Frame, FrameScanType Scan) const
 Create a single RGBA32 texture using the provided AVDRMFramDescriptor. More...
 
std::vector< MythVideoTexture * > CreateSeparate (AVDRMFrameDescriptor *Desc, MythRenderOpenGL *Context, MythVideoFrame *Frame) const
 Create multiple textures that represent the planes for the given AVDRMFrameDescriptor. More...
 
std::vector< MythVideoTexture * > CreateSeparate2 (AVDRMFrameDescriptor *Desc, MythRenderOpenGL *Context, MythVideoFrame *Frame) const
 Create multiple textures that represent the planes for the given AVDRMFrameDescriptor. More...
 

Private Attributes

bool m_useModifiers { false }
 

Detailed Description

Definition at line 15 of file mythegldmabuf.h.

Constructor & Destructor Documentation

◆ MythEGLDMABUF()

MythEGLDMABUF::MythEGLDMABUF ( MythRenderOpenGL Context)
explicit

Definition at line 16 of file mythegldmabuf.cpp.

◆ ~MythEGLDMABUF()

MythEGLDMABUF::~MythEGLDMABUF ( )
default

Member Function Documentation

◆ HaveDMABuf()

bool MythEGLDMABUF::HaveDMABuf ( MythRenderOpenGL Context)
static

◆ CreateTextures()

std::vector< MythVideoTexture * > MythEGLDMABUF::CreateTextures ( AVDRMFrameDescriptor *  Desc,
MythRenderOpenGL Context,
MythVideoFrame Frame,
bool  UseSeparate,
FrameScanType  Scan = kScan_Progressive 
)

◆ ClearDMATextures()

void MythEGLDMABUF::ClearDMATextures ( MythRenderOpenGL Context,
std::vector< MythVideoTexture * > &  Textures 
)
static

◆ CreateComposed()

std::vector< MythVideoTexture * > MythEGLDMABUF::CreateComposed ( AVDRMFrameDescriptor *  Desc,
MythRenderOpenGL Context,
MythVideoFrame Frame,
FrameScanType  Scan 
) const
inlineprivate

Create a single RGBA32 texture using the provided AVDRMFramDescriptor.

Note
This assumes one layer with multiple planes, typically where the layer is a YUV format.

Definition at line 62 of file mythegldmabuf.cpp.

Referenced by CreateTextures().

◆ CreateSeparate()

std::vector< MythVideoTexture * > MythEGLDMABUF::CreateSeparate ( AVDRMFrameDescriptor *  Desc,
MythRenderOpenGL Context,
MythVideoFrame Frame 
) const
inlineprivate

Create multiple textures that represent the planes for the given AVDRMFrameDescriptor.

Note
This assumes multiple layers each with one plane.

Definition at line 179 of file mythegldmabuf.cpp.

Referenced by CreateTextures().

◆ CreateSeparate2()

std::vector< MythVideoTexture * > MythEGLDMABUF::CreateSeparate2 ( AVDRMFrameDescriptor *  Desc,
MythRenderOpenGL Context,
MythVideoFrame Frame 
) const
inlineprivate

Create multiple textures that represent the planes for the given AVDRMFrameDescriptor.

Note
This assumes one layer with multiple planes that represent a YUV format.

It is used where the OpenGL DMA BUF implementation does not support composing YUV formats. It offers better feature support (as we can enable colour controls, shader deinterlacing etc) but may not be as fast on low end hardware; it might not use hardware accelerated paths and shader deinterlacing may not be as fast as the simple EGL based onefield/bob deinterlacer. It is essentially the same as CreateSeparate but the DRM descriptor uses a different layout and we have to 'guess' the correct DRM_FORMATs for each plane.

Todo:
Add support for simple onefield/bob with YUV textures.

Definition at line 269 of file mythegldmabuf.cpp.

Referenced by CreateTextures().

Member Data Documentation

◆ m_useModifiers

bool MythEGLDMABUF::m_useModifiers { false }
private

Definition at line 40 of file mythegldmabuf.h.

Referenced by CreateComposed(), CreateSeparate(), CreateSeparate2(), and MythEGLDMABUF().


The documentation for this class was generated from the following files: