Skip to content

GXF Tensor to VideoBuffer Converter#

Authors: Holoscan Team (NVIDIA)
Supported platforms: x86_64, aarch64
Language: C++, Python
Last modified: March 9, 2026
Latest version: 1.0
Minimum Holoscan SDK version: 0.5.0
Tested Holoscan SDK versions: 0.5.0
Contribution metric: Level 1 - Highly Reliable

The tensor_to_video_buffer converts GXF Tensor to VideoBuffer.

holoscan::ops::TensorToVideoBufferOp#

Operator class to convert GXF Tensor to VideoBuffer. This operator is required for data transfer between Holoscan operators that output GXF Tensor and the other Holoscan Wrapper Operators that understand only VideoBuffer. It receives GXF Tensor as input and outputs GXF VideoBuffer created from it.

Parameters#

  • data_in: Data in GXF Tensor format
  • type: holoscan::IOSpec*
  • data_out: Data in GXF VideoBuffer format
  • type: holoscan::IOSpec*
  • in_tensor_name: Name of the input tensor
  • type: std::string
  • video_format: The video format, supported values: "yuv420", "rgb"
  • type: std::string

API Reference#

Python#

TensorToVideoBufferOp#

Operator class to convert Tensor to VideoBuffer.

==Named Inputs==

in_tensor : gxf::Entity

==Named Outputs==

out_video_buffer : gxf::Entity

Parameters#

fragment : Fragment The fragment that the operator belongs to. in_tensor_name: str Input tensor name. video_format_: str Video format. name : str, optional The name of the operator.