holoscan::ops::BufferInfo

Beta
View as Markdown

Buffer information, can be initialized either with a tensor or a video buffer.

#include <holoscan/ops/buffer_info.hpp>

Methods

init

gxf_result_t holoscan::ops::BufferInfo::init(
const nvidia::gxf::Handle<nvidia::gxf::Tensor> &tensor,
HolovizOp::ImageFormat input_image_format = HolovizOp::ImageFormat::AUTO_DETECT
)

Initialize with tensor.

Returns: error code

Parameters

input_image_format
HolovizOp::ImageFormatDefaults to HolovizOp::ImageFormat::AUTO_DETECT

If HolovizOp::ImageFormat::AUTO_DETECT then auto detect the image format, else use the provided image format


Static methods

get_supported_tensor_formats_str

static std::string holoscan::ops::BufferInfo::get_supported_tensor_formats_str(
const std::vector<HolovizOp::ImageFormat> &device_image_formats
)

Returns: a string describing the supported tensor formats

get_supported_video_buffer_formats_str

static std::string holoscan::ops::BufferInfo::get_supported_video_buffer_formats_str(
const std::vector<HolovizOp::ImageFormat> &device_image_formats
)

Returns: a string describing the supported video buffer formats


Member variables

NameTypeDescription
rankuint32_t
componentsuint32_t
widthuint32_t
heightuint32_t
element_typenvidia::gxf::PrimitiveType
image_formatHolovizOp::ImageFormat
component_swizzleviz::ComponentSwizzle
namestd::string
buffer_ptrconst nvidia::byte *points to the memory owned by either a tensor or video buffer
storage_typenvidia::gxf::MemoryStorageType
bytes_sizeuint64_t
stridenvidia::gxf::Tensor::stride_array_t
color_planesstd::vector< nvidia::gxf::ColorPlane >plane information
yuv_model_conversionHolovizOp::YuvModelConversion
yuv_rangeHolovizOp::YuvRange