hbVPPyrDown

typedef struct { int8_t levels; hbVPInterpolationType interpolation; } hbVPPymParam;

Pym configuration parameter structure.

  • Member

    Member NameDescription
    levelsSelect the number of pyramid activation layers.
    interpolationSelects a pyramid interpolation method that supports the GAUSSIAN and LINEAR types in hbVPInterpolationType.
int32_t hbVPPyrDown(hbUCPTaskHandle_t *taskHandle, hbVPImage *dstImgs, hbVPImage const *srcImg hbVPPymParam const *pymCfg);
Note

When using the bilinear pyramid, the size of the input image and the size of each layer of the output image are required to meet the range limit of [32, 4096].

The API for calling the PyrDown.

  • Parameter
    • [out] taskHandle Task handles are responsible for the interaction of the operator with the UCP architecture.
    • [out] dstImgs Outputs an array of pictures, with the type and format of each layer consistent with the input pictures, and the width and height of each layer being half of the previous picture,respectively. The rounding strategies are: upward rounding for Gaussian pyramids and downward rounding for bilinear pyramids.
    • [in] srcImg Input picture, type supports U8C1, Gaussian pyramid format supports Y and nv12, bilinear pyramid format supports nv12.
    • [in] pymCfg Input Pyramid Configuration Structures, Gaussian Pyramid supports 1 level of computation and Bilinear Pyramid supports 1 to 5 levels of computation.
  • Return Value
    • Return 0 means the API was successfully executed, otherwise the execution failed.