#include <CpuVideoFramePool.h>
Public Member Functions | |
| FrameMapping ()=default | |
| ~FrameMapping () | |
| FrameMapping (const FrameMapping &)=delete | |
| FrameMapping & | operator= (const FrameMapping &)=delete |
| bool | mapFrame (GstBuffer *buffer, const GstVideoInfo &info, GstMapFlags flags=GST_MAP_READ) |
Maps buffer with flags on the first call; false when that fails. | |
| const GstVideoFrame & | frame () const |
| The mapped frame; valid while mapFrame() succeeded and unmap() hasn't run. | |
| QAbstractVideoBuffer::MapData | map (GstBuffer *buffer, const GstVideoInfo &info) |
| mapFrame() for reading, as Qt map data; empty when the map fails. | |
| void | unmap () noexcept |
A buffer's gst_video_frame_map, held until unmap() or destruction: the CPU view behind a buffer's QAbstractVideoBuffer::map(), or any other scoped frame map.
Definition at line 59 of file CpuVideoFramePool.h.
|
default |
Referenced by FrameMapping(), and operator=().
|
inline |
Definition at line 64 of file CpuVideoFramePool.h.
References unmap().
|
delete |
References FrameMapping().
|
inline |
The mapped frame; valid while mapFrame() succeeded and unmap() hasn't run.
Definition at line 73 of file CpuVideoFramePool.h.
Referenced by CpuVideoFramePool::copyFromBuffer().
| QAbstractVideoBuffer::MapData CpuVideoFramePool::FrameMapping::map | ( | GstBuffer * | buffer, |
| const GstVideoInfo & | info ) |
mapFrame() for reading, as Qt map data; empty when the map fails.
Definition at line 157 of file CpuVideoFramePool.cc.
References CpuVideoFramePool::mapDataFor(), and mapFrame().
| bool CpuVideoFramePool::FrameMapping::mapFrame | ( | GstBuffer * | buffer, |
| const GstVideoInfo & | info, | ||
| GstMapFlags | flags = GST_MAP_READ ) |
Maps buffer with flags on the first call; false when that fails.
Definition at line 149 of file CpuVideoFramePool.cc.
Referenced by CpuVideoFramePool::copyFromBuffer(), and map().
|
delete |
References FrameMapping().
|
noexcept |
Definition at line 165 of file CpuVideoFramePool.cc.
Referenced by ~FrameMapping().