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

Grabbing Buffer. More...

#include <grab.h>

Public Member Functions

 cGrabBuffer (void)=default
 
void FreeDrmBuf (void)
 Free the grabbed drm buffer.
 
void SetDrmBuf (cDrmBuffer *)
 Set the grab buffer and the dimensions how it is presented on the screen.
 
void SetData (uint8_t *result)
 
void SetSize (int size)
 
int GetX (void)
 
int GetY (void)
 
int GetWidth (void)
 
int GetHeight (void)
 
uint8_tGetData (void)
 
int GetSize (void)
 
cDrmBufferGetDrmBuf (void)
 

Private Attributes

uint8_tm_pResult = nullptr
 pointer to grabbed image
 
struct cDrmBufferm_pBuf = nullptr
 pointer to original buffer
 
int m_size = 0
 size of grabbed data
 
cRect m_rect
 rect of the grabbed data
 

Detailed Description

Grabbing Buffer.

Holds the data for a grabbed buffer. The grab is triggered by VDR/ cSoftHdDevice, data is set by the renderer and composed by cSoftHdDevice again.

Definition at line 53 of file grab.h.

Constructor & Destructor Documentation

◆ cGrabBuffer()

cGrabBuffer::cGrabBuffer ( void  )
default

Member Function Documentation

◆ FreeDrmBuf()

void cGrabBuffer::FreeDrmBuf ( void  )

Free the grabbed drm buffer.

Definition at line 301 of file grab.cpp.

References L_GRAB, LOGDEBUG2, m_pBuf, and plane.

Referenced by cVideoRender::ClearGrabBuffers().

◆ GetData()

uint8_t * cGrabBuffer::GetData ( void  )
inline

Definition at line 68 of file grab.h.

References m_pResult.

◆ GetDrmBuf()

cDrmBuffer * cGrabBuffer::GetDrmBuf ( void  )
inline

Definition at line 70 of file grab.h.

References m_pBuf.

Referenced by cVideoRender::ClearGrabBuffers().

◆ GetHeight()

int cGrabBuffer::GetHeight ( void  )
inline

Definition at line 67 of file grab.h.

References m_rect.

◆ GetSize()

int cGrabBuffer::GetSize ( void  )
inline

Definition at line 69 of file grab.h.

References m_size.

◆ GetWidth()

int cGrabBuffer::GetWidth ( void  )
inline

Definition at line 66 of file grab.h.

References m_rect.

◆ GetX()

int cGrabBuffer::GetX ( void  )
inline

Definition at line 64 of file grab.h.

References m_rect.

◆ GetY()

int cGrabBuffer::GetY ( void  )
inline

Definition at line 65 of file grab.h.

References m_rect.

◆ SetData()

void cGrabBuffer::SetData ( uint8_t result)
inline

Definition at line 61 of file grab.h.

References m_pResult.

◆ SetDrmBuf()

void cGrabBuffer::SetDrmBuf ( cDrmBuffer buf)

Set the grab buffer and the dimensions how it is presented on the screen.

Definition at line 320 of file grab.cpp.

References m_pBuf, and m_rect.

Referenced by cVideoRender::CreateGrabBuffers().

◆ SetSize()

void cGrabBuffer::SetSize ( int  size)
inline

Definition at line 62 of file grab.h.

References m_size.

Member Data Documentation

◆ m_pBuf

struct cDrmBuffer* cGrabBuffer::m_pBuf = nullptr
private

pointer to original buffer

Definition at line 73 of file grab.h.

Referenced by FreeDrmBuf(), GetDrmBuf(), and SetDrmBuf().

◆ m_pResult

uint8_t* cGrabBuffer::m_pResult = nullptr
private

pointer to grabbed image

Definition at line 72 of file grab.h.

Referenced by GetData(), and SetData().

◆ m_rect

cRect cGrabBuffer::m_rect
private

rect of the grabbed data

Definition at line 75 of file grab.h.

Referenced by GetHeight(), GetWidth(), GetX(), GetY(), and SetDrmBuf().

◆ m_size

int cGrabBuffer::m_size = 0
private

size of grabbed data

Definition at line 74 of file grab.h.

Referenced by GetSize(), and SetSize().


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