VART-X  0.4.0
vart::PreProcessInfo Struct Reference

Structure storing pre-processing parameters. More...

#include <vart_preprocess_types.hpp>

Public Attributes

float qt_fctr = 1.0f
 
float mean_r = 0.0f
 
float mean_g = 0.0f
 
float mean_b = 0.0f
 
float scale_r = 1.0f
 
float scale_g = 1.0f
 
float scale_b = 1.0f
 
uint32_t height = 0
 
uint32_t width = 0
 
VideoFormat colour_format = VideoFormat::UNKNOWN
 
PreProcessType preprocess_type = PreProcessType::DEFAULT
 
bool maintain_aspect_ratio = false
 
bool symmetric_padding = false
 

Detailed Description

Structure storing pre-processing parameters.

Member Data Documentation

◆ colour_format

vart::PreProcessInfo::colour_format = VideoFormat::UNKNOWN

Colour format of the required output frame.

◆ height

vart::PreProcessInfo::height = 0

Height of the required output frame in pixels.

◆ maintain_aspect_ratio

vart::PreProcessInfo::maintain_aspect_ratio = false

When true and preprocess_type is DEFAULT, the output rect is shrunk to preserve the source aspect ratio. Default is false. Ignored for PANSCAN and LETTERBOX.

◆ mean_b

vart::PreProcessInfo::mean_b = 0.0f

Mean value for the blue channel, in [0.0, 128.0].

◆ mean_g

vart::PreProcessInfo::mean_g = 0.0f

Mean value for the green channel, in [0.0, 128.0].

◆ mean_r

vart::PreProcessInfo::mean_r = 0.0f

Mean value for the red channel, in [0.0, 128.0].

◆ preprocess_type

vart::PreProcessInfo::preprocess_type = PreProcessType::DEFAULT

Scaling policy. See PreProcessType.

◆ qt_fctr

vart::PreProcessInfo::qt_fctr = 1.0f

Quantization factor applied to the output values.

◆ scale_b

vart::PreProcessInfo::scale_b = 1.0f

Scale value for the blue channel, in [0.0, 1.0].

◆ scale_g

vart::PreProcessInfo::scale_g = 1.0f

Scale value for the green channel, in [0.0, 1.0].

◆ scale_r

vart::PreProcessInfo::scale_r = 1.0f

Scale value for the red channel, in [0.0, 1.0].

◆ symmetric_padding

vart::PreProcessInfo::symmetric_padding = false

When true and preprocess_type is DEFAULT with maintain_aspect_ratio enabled, padding is split equally on both sides (centered). Ignored for PANSCAN and LETTERBOX. Default is false.

◆ width

vart::PreProcessInfo::width = 0

Width of the required output frame in pixels.


The documentation for this struct was generated from the following file: