vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
cDrmBufferPool Class Reference

DRM Buffer Pool. More...

#include <drmbuffer.h>

Public Member Functions

 cDrmBufferPool ()
 
cDrmBufferFindUninitilized (void)
 Find a clean drm buffer from the buffer pool.
 
cDrmBufferFindNoPresentationPending (void)
 Find a dirty drm buffer from the buffer pool which presentation has finished.
 
cDrmBufferFindByDmaBufHandle (int)
 Find a drm buffer from the buffer pool by a given prime handle.
 
void DestroyAllExcept (cDrmBuffer *)
 Destroy all drm buffers except the given one.
 
- Public Member Functions inherited from cPool< cDrmBuffer >
 cPool (size_t size)
 

Static Private Attributes

static constexpr int RENDERBUFFERS = 36
 number of render video buffers
 

Additional Inherited Members

- Protected Attributes inherited from cPool< cDrmBuffer >
std::vector< std::unique_ptr< cDrmBuffer > > buffer
 
size_t currentIndex
 

Detailed Description

DRM Buffer Pool.

Definition at line 139 of file drmbuffer.h.

Constructor & Destructor Documentation

◆ cDrmBufferPool()

cDrmBufferPool::cDrmBufferPool ( )
inline

Definition at line 141 of file drmbuffer.h.

Member Function Documentation

◆ DestroyAllExcept()

void cDrmBufferPool::DestroyAllExcept ( cDrmBuffer exceptBuf)

Destroy all drm buffers except the given one.

Parameters
exceptBufthe buffer, which should be kept alive if nullptr is given, all buffers are destroyed

Definition at line 468 of file drmbuffer.cpp.

References cPool< cDrmBuffer >::buffer.

Referenced by cVideoRender::ClearDecoderToDisplayQueue(), and cVideoRender::ClearPipDecoderToDisplayQueue().

◆ FindByDmaBufHandle()

cDrmBuffer * cDrmBufferPool::FindByDmaBufHandle ( int  primeFd)

Find a drm buffer from the buffer pool by a given prime handle.

Definition at line 423 of file drmbuffer.cpp.

References cPool< cDrmBuffer >::buffer.

◆ FindNoPresentationPending()

cDrmBuffer * cDrmBufferPool::FindNoPresentationPending ( void  )

Find a dirty drm buffer from the buffer pool which presentation has finished.

Definition at line 452 of file drmbuffer.cpp.

References cPool< cDrmBuffer >::buffer.

◆ FindUninitilized()

cDrmBuffer * cDrmBufferPool::FindUninitilized ( void  )

Find a clean drm buffer from the buffer pool.

Definition at line 436 of file drmbuffer.cpp.

References cPool< cDrmBuffer >::buffer.

Member Data Documentation

◆ RENDERBUFFERS

constexpr int cDrmBufferPool::RENDERBUFFERS = 36
staticconstexprprivate

number of render video buffers

Definition at line 147 of file drmbuffer.h.


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