hbVPPyrDown
Pym configuration parameter structure.
-
Member
Note
When using a bilinear pyramid, the size of the input image must be within the range of [64, 4096], and the size of the output image of each layer must be within the range of [32, 4096]. When using a bilinear pyramid to process 10-bit or 12-bit images, please note that 10-bit or 12-bit is only the pixel width of the y channel; the uv channel remains 8 bits. Furthermore, the y data of 10-bit or 12-bit images must be stored as 16 bits with the MSB being the most significant bit, meaning that one pixel occupies two bytes.
The API for calling the PyrDown.
- Parameter
- [out]
taskHandleTask handles are responsible for the interaction of the operator with the UCP architecture. - [out]
dstImgsOutputs 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]
srcImgInput picture, type supports U8C1, Gaussian pyramid format supports Y and nv12. The bilinear pyramid format supports nv12, nv12_y10c8_msb and nv12_y12c8_msb. When using the bilinear pyramid for 10-bit or 12-bit image processing, you need to set the image format to HB_VP_IMAGE_FORMAT_NV12_Y10C8_MSB or HB_VP_IMAGE_FORMAT_NV12_Y12C8_MSB and the type to HB_VP_IMAGE_TYPE_U16C1 for processing. - [in]
pymCfgInput pyramid configuration structures, pyramid supports 1 to 5 levels of computation. On J6B, HB_UCP_PYRAMID_CORE_0 supports 1 to 4 layers of computing, and HB_UCP_PYRAMID_CORE_1 supports 1 to 3 layers of computing.
- [out]
- Return Value
- Return
0means the API was successfully executed, otherwise the execution failed.
- Return
