24 #include <xrt/xrt_bo.h>
37 class VideoFrameImplBase;
91 std::vector<uint8_t*>& data_vec,
93 std::shared_ptr<Device> device);
119 std::vector<xrt::bo*>& bo_vec,
121 std::shared_ptr<Device> device);
211 std::shared_ptr<VideoFrameImplBase> pimpl;
This module simplifies the management of video frame memory and provides APIs for mapping and unmappi...
Definition: vart_videoframe.hpp:48
VideoFrame(VideoFrameImplType type, size_t size, uint8_t mbank_idx, VideoInfo &vinfo, std::shared_ptr< Device > device)
VideoFrame() - Constructor for creating video frame instance using implementation specific method bas...
VideoFrame(VideoFrameImplType type, int dma_buf_fd, VideoInfo &vinfo, std::shared_ptr< Device > device)
VideoFrame() - Constructor to create VideoFrame from a dma-buf fd.
VideoFrame(VideoFrameImplType type, std::vector< uint8_t * > &data_vec, VideoInfo &vinfo, std::shared_ptr< Device > device)
VideoFrame() - Constructor for creating video frame instance using input data pointers.
int export_buffer() const
export_buffer() - Export the video frame buffer as a dma-buf file descriptor.
const std::shared_ptr< VideoFrameImplBase > & get_pimpl_handle() const
get_pimpl_handle() - Retrieves pointer to implementation class.
VideoFrame(VideoFrameImplType type, uint8_t mbank_idx, std::vector< xrt::bo * > &bo_vec, VideoInfo &vinfo, std::shared_ptr< Device > device)
VideoFrame() - Constructor for creating video frame instance using input XRT Buffer object(BO)
std::shared_ptr< Device > get_device_handle() const
get_device_handle() - Retrieves the device handle associated with the current frame
const VideoFrameMapInfo & map(DataMapFlags map_flags)
map() - Maps video frame data to user space
void unmap()
unmap() - Unmaps video frame data from user space
const VideoInfo & get_video_info() const
get_video_info() - Retrieves the video frame information from video frame.
VART (Vitis AI Runtime) public API namespace.
DataMapFlags
Definition: vart_memory_types.hpp:30
VideoFrameImplType
Video Frame implementation type.
Definition: vart_videoframe_types.hpp:38
Structure encapsulating details of a video frame after a map operation.
Definition: vart_videoframe_types.hpp:214
Contains information related to a video frame.
Definition: vart_videoframe_types.hpp:144
Device module managing hardware context and xclbin loading.
Type definitions for the VideoFrame module.