|
vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
|
DRM Buffer Pool. More...
#include <drmbuffer.h>
Public Member Functions | |
| cDrmBufferPool () | |
| cDrmBuffer * | FindUninitilized (void) |
| Find a clean drm buffer from the buffer pool. | |
| cDrmBuffer * | FindNoPresentationPending (void) |
| Find a dirty drm buffer from the buffer pool which presentation has finished. | |
| cDrmBuffer * | FindByDmaBufHandle (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 |
DRM Buffer Pool.
Definition at line 139 of file drmbuffer.h.
|
inline |
Definition at line 141 of file drmbuffer.h.
| void cDrmBufferPool::DestroyAllExcept | ( | cDrmBuffer * | exceptBuf | ) |
Destroy all drm buffers except the given one.
| exceptBuf | the 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().
| 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.
| 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.
| 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.
number of render video buffers
Definition at line 147 of file drmbuffer.h.