|
vdr-plugin-softhddevice-drm-gles 1.6.7
|
Grabbing Buffer. More...
#include <grab.h>
Public Member Functions | |
| cGrabBuffer (const char *identifier) | |
| void | FreeInput (void) |
| Free the grab input buffer. | |
| void | Clear (void) |
| Clear the grab buffer (input and output data) | |
| void | Set (cDrmBuffer *) |
| Set the grab buffer and the dimensions how it is presented on the screen. | |
| bool | IsSet (void) |
| uint8_t * | ConvertToRgb (int *) |
| Convert a grabbed buffer to rgb format image. | |
| void | SetOutputData (uint8_t *result) |
| uint8_t * | GetOutputData (void) |
| void | SetOutputSize (int size) |
| int | GetOutputSize (void) |
| int | GetOutputX (void) |
| int | GetOutputY (void) |
| int | GetOutputWidth (void) |
| int | GetOutputHeight (void) |
Private Attributes | |
| uint8_t * | m_pOutputData = nullptr |
| pointer to grabbed image | |
| int | m_outputSize = 0 |
| size of grabbed data | |
| cRect | m_outputRect |
| rect of the grabbed data | |
| uint32_t | m_width = 0 |
| uint32_t | m_height = 0 |
| uint32_t | m_pixFmt = 0 |
| uint64_t | m_modifier = 0 |
| int | m_numPlanes = 0 |
| uint8_t * | m_pPlane [4] = {} |
| uint32_t | m_offset [4] = {} |
| uint32_t | m_pitch [4] = {} |
| uint32_t | m_size [4] = {} |
| const char * | m_identifier |
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.
Clear the grab buffer (input and output data)
Definition at line 429 of file grab.cpp.
References FreeInput(), m_outputRect, m_outputSize, and m_pOutputData.
Referenced by cVideoRender::ClearGrabBuffers().
Convert a grabbed buffer to rgb format image.
Conversion is done with ffmpegs swscale
| [out] | size | size of the return data |
Definition at line 523 of file grab.cpp.
References DrmFormatToAVFormat(), GetOutputHeight(), GetOutputWidth(), L_GRAB, LOGDEBUG2, LOGERROR, m_height, m_identifier, m_modifier, m_numPlanes, m_offset, m_pitch, m_pixFmt, m_pPlane, m_width, Sand128ToPlanarY8(), Sand30ToPlanarC16(), and Sand30ToPlanarY16().
Free the grab input buffer.
Definition at line 397 of file grab.cpp.
References L_GRAB, LOGDEBUG2, m_height, m_identifier, m_modifier, m_numPlanes, m_offset, m_outputRect, m_pitch, m_pixFmt, m_pPlane, m_size, m_width, and plane.
Referenced by Clear().
Definition at line 44 of file grab.h.
References m_pOutputData.
Definition at line 46 of file grab.h.
References m_outputSize.
Definition at line 47 of file grab.h.
References m_outputRect.
Definition at line 48 of file grab.h.
References m_outputRect.
Definition at line 39 of file grab.h.
References m_outputRect.
| void cGrabBuffer::Set | ( | cDrmBuffer * | src | ) |
Set the grab buffer and the dimensions how it is presented on the screen.
| src | original drm buffer, where the parameters and data is copied from |
Definition at line 443 of file grab.cpp.
References L_GRAB, LOGDEBUG2, LOGERROR, m_height, m_identifier, m_modifier, m_numPlanes, m_offset, m_outputRect, m_pitch, m_pixFmt, m_pPlane, m_size, m_width, and plane.
Referenced by cVideoRender::CreateGrabBuffers().
Definition at line 43 of file grab.h.
References m_pOutputData.
Definition at line 45 of file grab.h.
References m_outputSize.
|
private |
Definition at line 60 of file grab.h.
Referenced by ConvertToRgb(), FreeInput(), and Set().
Definition at line 69 of file grab.h.
Referenced by ConvertToRgb(), FreeInput(), and Set().
|
private |
Definition at line 62 of file grab.h.
Referenced by ConvertToRgb(), FreeInput(), and Set().
|
private |
Definition at line 63 of file grab.h.
Referenced by ConvertToRgb(), FreeInput(), and Set().
|
private |
Definition at line 65 of file grab.h.
Referenced by ConvertToRgb(), FreeInput(), and Set().
|
private |
rect of the grabbed data
Definition at line 56 of file grab.h.
Referenced by Clear(), FreeInput(), GetOutputHeight(), GetOutputWidth(), GetOutputX(), GetOutputY(), IsSet(), and Set().
|
private |
size of grabbed data
Definition at line 55 of file grab.h.
Referenced by Clear(), GetOutputSize(), and SetOutputSize().
|
private |
Definition at line 66 of file grab.h.
Referenced by ConvertToRgb(), FreeInput(), and Set().
|
private |
Definition at line 61 of file grab.h.
Referenced by ConvertToRgb(), FreeInput(), and Set().
pointer to grabbed image
Definition at line 54 of file grab.h.
Referenced by Clear(), GetOutputData(), and SetOutputData().
|
private |
Definition at line 64 of file grab.h.
Referenced by ConvertToRgb(), FreeInput(), and Set().
|
private |
Definition at line 67 of file grab.h.
Referenced by FreeInput(), and Set().
|
private |
Definition at line 59 of file grab.h.
Referenced by ConvertToRgb(), FreeInput(), and Set().