NVIDIA DeepStream SDK API Reference

6.4 Release
nvdsinferserver::CropSurfaceConverter Class Reference

Detailed Description

Preprocessor for cropping, scaling and padding the inference input to required height, width.

Definition at line 113 of file infer_preprocess.h.

Inheritance diagram for nvdsinferserver::CropSurfaceConverter:
Collaboration diagram for nvdsinferserver::CropSurfaceConverter:

Public Types

using PreprocessDone = std::function< void(NvDsInferStatus, SharedBatchArray)>
 

Public Member Functions

 CropSurfaceConverter (int32_t convertPoolSize)
 
 ~CropSurfaceConverter () override
 
void setParams (int outW, int outH, InferMediaFormat outFormat, int maxBatchSize)
 
void setMaintainAspectRatio (bool enable)
 
void setSymmetricPadding (bool enable)
 
void setScalingHW (NvBufSurfTransform_Compute compute_hw)
 
void setScalingFilter (NvBufSurfTransform_Inter filter)
 
NvDsInferStatus transform (SharedBatchArray src, SharedCuStream mainStream, PreprocessDone done) override
 Perform the transformation on the input buffer from the buffer array, indexed using m_TransformIdx. More...
 

Member Typedef Documentation

◆ PreprocessDone

Definition at line 44 of file infer_iprocess.h.

Constructor & Destructor Documentation

◆ CropSurfaceConverter()

nvdsinferserver::CropSurfaceConverter::CropSurfaceConverter ( int32_t  convertPoolSize)
inline

Definition at line 115 of file infer_preprocess.h.

◆ ~CropSurfaceConverter()

nvdsinferserver::CropSurfaceConverter::~CropSurfaceConverter ( )
override

Member Function Documentation

◆ setMaintainAspectRatio()

void nvdsinferserver::CropSurfaceConverter::setMaintainAspectRatio ( bool  enable)
inline

Definition at line 120 of file infer_preprocess.h.

◆ setParams()

void nvdsinferserver::CropSurfaceConverter::setParams ( int  outW,
int  outH,
InferMediaFormat  outFormat,
int  maxBatchSize 
)

◆ setScalingFilter()

void nvdsinferserver::CropSurfaceConverter::setScalingFilter ( NvBufSurfTransform_Inter  filter)
inline

◆ setScalingHW()

void nvdsinferserver::CropSurfaceConverter::setScalingHW ( NvBufSurfTransform_Compute  compute_hw)
inline

Definition at line 122 of file infer_preprocess.h.

◆ setSymmetricPadding()

void nvdsinferserver::CropSurfaceConverter::setSymmetricPadding ( bool  enable)
inline

Definition at line 121 of file infer_preprocess.h.

◆ setTransformIdx()

void nvdsinferserver::BasePreprocessor::setTransformIdx ( int  idx)
inlineinherited

Definition at line 92 of file infer_iprocess.h.

◆ setUniqueId()

void nvdsinferserver::BasePreprocessor::setUniqueId ( int  id)
inlineinherited

Definition at line 90 of file infer_iprocess.h.

◆ transform()

NvDsInferStatus nvdsinferserver::BasePreprocessor::transform ( SharedBatchArray  src,
SharedCuStream  mainStream,
PreprocessDone  done 
)
inlineoverridevirtualinherited

Perform the transformation on the input buffer from the buffer array, indexed using m_TransformIdx.

Parameters
[in]srcThe input batch buffer array.
[in]mainStreamThe main processing CUDA stream.
[in]doneThe call function to be called after transformation.
Returns
NVDSINFER_SUCCESS or NVDSINFER_RESOURCE_ERROR.

Implements nvdsinferserver::IPreprocessor.

Definition at line 103 of file infer_iprocess.h.

References NVDSINFER_RESOURCE_ERROR, and NVDSINFER_SUCCESS.

◆ uniqueId()

int nvdsinferserver::BasePreprocessor::uniqueId ( ) const
inlineinherited

Definition at line 91 of file infer_iprocess.h.


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