vdr-plugin-softhddevice-drm-gles 1.4.0
Public Member Functions | Private Attributes | List of all members
cSoftHdGrab Class Reference

cSoftHdGrab - Grabber class More...

#include <grab.h>

Collaboration diagram for cSoftHdGrab:
Collaboration graph
[legend]

Public Member Functions

 cSoftHdGrab (void)
 Grabber class constructor. More...
 
virtual ~cSoftHdGrab (void)
 Grabber class destructor. More...
 
void FreeBuf (void)
 Free the grab buffer. More...
 
void SetRect (int x, int y, int width, int height)
 
void SetData (uint8_t *result)
 
void SetSize (int size)
 
void SetBuf (cDrmBuffer *buf)
 
int GetX (void)
 
int GetY (void)
 
int GetWidth (void)
 
int GetHeight (void)
 
uint8_t * GetData (void)
 
int GetSize (void)
 
cDrmBufferGetBuf (void)
 

Private Attributes

uint8_t * m_pResult
 pointer to grabbed image More...
 
struct cDrmBufferm_pBuf
 pointer to original buffer More...
 
int m_size
 size of grabbed data More...
 
cRect m_rect
 rect of the grabbed data More...
 

Detailed Description

cSoftHdGrab - Grabber class

Class to hold the data for a grabbed buffer. Grab is triggered by VDR/ cSoftHdDevice, data is set by the renderer and composed by cSoftHdDevice again.

Definition at line 34 of file grab.h.

Constructor & Destructor Documentation

◆ cSoftHdGrab()

cSoftHdGrab::cSoftHdGrab ( void  )

Grabber class constructor.

Definition at line 33 of file grab.cpp.

References m_pBuf, m_pResult, m_rect, and m_size.

◆ ~cSoftHdGrab()

cSoftHdGrab::~cSoftHdGrab ( void  )
virtual

Grabber class destructor.

Definition at line 45 of file grab.cpp.

Member Function Documentation

◆ FreeBuf()

void cSoftHdGrab::FreeBuf ( void  )

◆ GetBuf()

cDrmBuffer * cSoftHdGrab::GetBuf ( void  )
inline

◆ GetData()

uint8_t * cSoftHdGrab::GetData ( void  )
inline

Definition at line 51 of file grab.h.

References m_pResult.

Referenced by cVideoRender::GetGrab(), and cSoftHdDevice::GrabImage().

◆ GetHeight()

int cSoftHdGrab::GetHeight ( void  )
inline

◆ GetSize()

int cSoftHdGrab::GetSize ( void  )
inline

Definition at line 52 of file grab.h.

References m_size.

Referenced by cVideoRender::GetGrab(), and cSoftHdDevice::GrabImage().

◆ GetWidth()

int cSoftHdGrab::GetWidth ( void  )
inline

◆ GetX()

int cSoftHdGrab::GetX ( void  )
inline

Definition at line 47 of file grab.h.

References m_rect.

Referenced by cVideoRender::GetGrab().

◆ GetY()

int cSoftHdGrab::GetY ( void  )
inline

Definition at line 48 of file grab.h.

References m_rect.

Referenced by cVideoRender::GetGrab().

◆ SetBuf()

void cSoftHdGrab::SetBuf ( cDrmBuffer buf)
inline

Definition at line 45 of file grab.h.

References m_pBuf.

Referenced by cVideoRender::Grab().

◆ SetData()

void cSoftHdGrab::SetData ( uint8_t *  result)
inline

◆ SetRect()

void cSoftHdGrab::SetRect ( int  x,
int  y,
int  width,
int  height 
)
inline

Definition at line 42 of file grab.h.

References m_rect.

Referenced by cVideoRender::Grab().

◆ SetSize()

void cSoftHdGrab::SetSize ( int  size)
inline

Member Data Documentation

◆ m_pBuf

struct cDrmBuffer* cSoftHdGrab::m_pBuf
private

pointer to original buffer

Definition at line 56 of file grab.h.

Referenced by cSoftHdGrab(), FreeBuf(), GetBuf(), and SetBuf().

◆ m_pResult

uint8_t* cSoftHdGrab::m_pResult
private

pointer to grabbed image

Definition at line 55 of file grab.h.

Referenced by cSoftHdGrab(), GetData(), and SetData().

◆ m_rect

cRect cSoftHdGrab::m_rect
private

rect of the grabbed data

Definition at line 58 of file grab.h.

Referenced by cSoftHdGrab(), GetHeight(), GetWidth(), GetX(), GetY(), and SetRect().

◆ m_size

int cSoftHdGrab::m_size
private

size of grabbed data

Definition at line 57 of file grab.h.

Referenced by cSoftHdGrab(), GetSize(), and SetSize().


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