Abstract base class for video frame implementation used by VideoFrame.
More...
#include <vart_videoframe_impl_base.hpp>
Abstract base class for video frame implementation used by VideoFrame.
- Note
- Applications should use vart::VideoFrame rather than this type directly, unless extending or implementing a new backend.
◆ VideoFrameImplBase() [1/2]
| vart::VideoFrameImplBase::VideoFrameImplBase |
( |
| ) |
|
|
delete |
◆ VideoFrameImplBase() [2/2]
| vart::VideoFrameImplBase::VideoFrameImplBase |
( |
std::shared_ptr< Device > |
dev | ) |
|
|
inline |
◆ ~VideoFrameImplBase()
| virtual vart::VideoFrameImplBase::~VideoFrameImplBase |
( |
| ) |
|
|
inlinevirtual |
Virtual destructor to ensure proper cleanup of derived implementations.
◆ export_buffer()
| virtual int vart::VideoFrameImplBase::export_buffer |
( |
| ) |
const |
|
pure virtual |
export_buffer() - Export the video frame buffer as a dma-buf file descriptor.
- Returns
- File descriptor representing the exported buffer. Implementations may return -1 to indicate that exporting is not supported for this memory type.
◆ get_device_handle()
| virtual std::shared_ptr<Device> vart::VideoFrameImplBase::get_device_handle |
( |
| ) |
|
|
pure virtual |
get_device_handle() - Retrieves the device handle associated with the current frame
- Returns
- Returns the device handle associated with the current frame.
◆ get_video_info()
| virtual const VideoInfo& vart::VideoFrameImplBase::get_video_info |
( |
| ) |
|
|
pure virtual |
get_video_info() - Retrieves the video frame information from the current frame
- Returns
- Returns information related to video frame
◆ map()
map() - Maps video frame data to user space
- Parameters
-
| [in] | map_flags | Flag used to indicate mode of memory mapping. May combine bits from DataMapFlags. |
- Returns
- Const reference to the cached
VideoFrameMapInfo. Implementations should refresh vmap_info on each successful call.
◆ unmap()
| virtual void vart::VideoFrameImplBase::unmap |
( |
| ) |
|
|
pure virtual |
unmap() - Unmaps video frame data from user space.
◆ device
| std::shared_ptr<Device> vart::VideoFrameImplBase::device |
|
protected |
◆ vinfo
◆ vmap_info
The documentation for this class was generated from the following file: