VpcResize

Function Usage

Implements image resizing. Before calling this API, call Init() or Init(MxbaseDvppChannelMode dvppChannelMode) to initialize this function.

Prototype

APP_ERROR VpcResize ( 
    DvppDataInfo& inputDataInfo ,  
    DvppDataInfo& outputDataInfo ,  
    ResizeConfig& resizeConfig 
 );

Parameter Description

Parameter

Input/Output

Description

inputDataInfo

Input

Data to be scaled

  • The value range of inputDataInfo.width is [10, 8192].
  • The value range of inputDataInfo.height is [6, 8192].
  • The value range of inputDataInfo.heightStride is [6, 8192].
  • The value range of inputDataInfo.widthStride is defined by the image format.

outputDataInfo

Output

Scaled data

resizeConfig

Input

Scaling configuration

  • The value range of resizeConfig.width is [32, 8192].
  • The value range of resizeConfig.height is [6, 8192].

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.