vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
cGrabBuffer Class Reference

cGrabBuffer - Grab buffer class More...

#include <grab.h>

Public Member Functions

 cGrabBuffer (void)=default
 
void FreeDrmBuf (void)
 Free the grab 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_t * GetData (void)
 
int GetSize (void)
 
cDrmBufferGetDrmBuf (void)
 

Private Attributes

uint8_t * m_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

cGrabBuffer - Grab buffer class

Class to hold 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 52 of file grab.h.

Constructor & Destructor Documentation

◆ cGrabBuffer()

cGrabBuffer::cGrabBuffer ( void  )
default

Member Function Documentation

◆ FreeDrmBuf()

void cGrabBuffer::FreeDrmBuf ( void  )

Free the grab buffer.

Definition at line 293 of file grab.cpp.

References L_GRAB, LOGDEBUG2, m_pBuf, cDrmBuffer::NumPlanes(), cDrmBuffer::Plane(), and cDrmBuffer::Size().

Referenced by cVideoRender::ClearGrabBuffers(), and cSoftHdGrab::GetGrab().

◆ GetData()

uint8_t * cGrabBuffer::GetData ( void  )
inline

Definition at line 68 of file grab.h.

References m_pResult.

Referenced by cSoftHdGrab::GetGrab().

◆ GetDrmBuf()

cDrmBuffer * cGrabBuffer::GetDrmBuf ( void  )
inline

Definition at line 70 of file grab.h.

References m_pBuf.

Referenced by cVideoRender::ClearGrabBuffers(), and cSoftHdGrab::GetGrab().

◆ GetHeight()

int cGrabBuffer::GetHeight ( void  )
inline

Definition at line 67 of file grab.h.

References m_rect.

Referenced by cSoftHdGrab::GetGrab().

◆ GetSize()

int cGrabBuffer::GetSize ( void  )
inline

Definition at line 69 of file grab.h.

References m_size.

Referenced by cSoftHdGrab::GetGrab().

◆ GetWidth()

int cGrabBuffer::GetWidth ( void  )
inline

Definition at line 66 of file grab.h.

References m_rect.

Referenced by cSoftHdGrab::GetGrab().

◆ GetX()

int cGrabBuffer::GetX ( void  )
inline

Definition at line 64 of file grab.h.

References m_rect.

Referenced by cSoftHdGrab::GetGrab().

◆ GetY()

int cGrabBuffer::GetY ( void  )
inline

Definition at line 65 of file grab.h.

References m_rect.

Referenced by cSoftHdGrab::GetGrab().

◆ SetData()

void cGrabBuffer::SetData ( uint8_t *  result)
inline

Definition at line 61 of file grab.h.

References m_pResult.

Referenced by cSoftHdGrab::GetGrab().

◆ SetDrmBuf()

void cGrabBuffer::SetDrmBuf ( cDrmBuffer buf)

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

Definition at line 312 of file grab.cpp.

References cDrmBuffer::GetScreenRect(), 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.

Referenced by cSoftHdGrab::GetGrab().

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: