Visible to Intel only — GUID: GUID-194B18EE-A6A5-4313-817F-42D10D616DFA
Visible to Intel only — GUID: GUID-194B18EE-A6A5-4313-817F-42D10D616DFA
ResizeSuper
Changes an image size using the super sampling interpolation method.
Syntax
IppStatus ippiResizeSuper_<mod>(const Ipp<datatype>* pSrc, Ipp32s srcStep, Ipp<datatype>* pDst, Ipp32s dstStep, IppiPoint dstOffset, IppiSize dstSize, const IppiResizeSpec_32f* pSpec, Ipp8u* pBuffer);
Supported values for mod:
8u_C1R |
16u_C1R |
16s_C1R |
32f_C1R |
8u_C3R |
16u_C3R |
16s_C3R |
32f_C3R |
8u_C4R |
16u_C4R |
16s_C4R |
32f_C4R |
Platform-aware functions
IppStatus ippiResizeSuper_<mod>_L(const Ipp<datatype>* pSrc, IppSizeL srcStep, Ipp<datatype>* pDst, IppSizeL dstStep, IppiPointL dstOffset, IppiSizeL dstSize, const IppiResizeSpec* pSpec, Ipp8u* pBuffer);
Supported values for mod:
8u_C1R |
16u_C1R |
16s_C1R |
32f_C1R |
8u_C3R |
16u_C3R |
16s_C3R |
32f_C3R |
8u_C4R |
16u_C4R |
16s_C4R |
32f_C4R |
Threading layer (TL) functions
IppStatus ippiResizeSuper_<mod>_LT(const Ipp<datatype>* pSrc, IppSizeL srcStep, Ipp<datatype>* pDst, IppSizeL dstStep, const IppiResizeSpec_LT* pSpec, Ipp8u* pBuffer);
Supported values for mod:
8u_C1R |
16u_C1R |
16s_C1R |
32f_C1R |
8u_C3R |
16u_C3R |
16s_C3R |
32f_C3R |
8u_C4R |
16u_C4R |
16s_C4R |
32f_C4R |
Include Files
ippi.h
Flavors with the _LT suffix: ippi_tl.h
Flavors with the _L suffix: ippi_l.h
Domain Dependencies
Flavors declared in ippi.h:
Headers: ippcore.h, ippvm.h, ipps.h
Libraries: ippcore.lib, ippvm.lib, ipps.lib
Flavors declared in ippi_tl.h:
Libraries: ippcore.lib, ippvm.lib, ipps.lib, ippi.lib, ippcore_tl.lib, ippi_tl.lib
Parameters
pSrc |
Pointer to the source image. |
srcStep |
Distance, in bytes, between the starting points of consecutive lines in the source image buffer. |
pDst |
Pointer to the destination image. |
dstStep |
Distance, in bytes, between the starting points of consecutive lines in the destination image buffer. |
dstOffset |
Offset of the tiled destination image with respect to the destination image origin. |
dstSize |
Size of the destination image in pixels. |
pSpec |
Pointer to the specification structure for the resize filter. |
pBuffer |
Pointer to the work buffer. |
Description
This function changes an image size using the super sampling interpolation method. This method only reduces the image size.
This function operates with ROI. It resizes the source image ROI origin to the destination image ROI origin. You need to define the destination image ROI origin by the following parameters: the offset of the tiled destination image with respect to the destination image origin and the destination image size. The source image ROI origin is defined automatically. To obtain the source image ROI, use the ippiResizeGetSrcRoi function with the corresponding mod value. To obtain the source image ROI origin offset, call the ippiResizeGetSrcOffset function with the corresponding mod value. Parameters pSrc and pDst must point to the processed source and destination image ROI origins, respectively.
The interpolation algorithm applied uses only pixels of the source image origin that are inside of the image boundaries.
Before using the ippiResizeLinear function, you need to initialize the resize structure using the ippiResizeSuperInit function and compute the size of the external buffer pBuffer using the ippiResizeGetBufferSize function for the corresponding flavor.
You can get better performance if you use the following scaling factors along the x and y axes: 1/2, 2/3, 3/4, 4/5, 5/6, 8/9, 1/3, 2/5, 3/5, 3/7, 4/9, 7/10, 1/4, 2/7, 3/8, 1/8.
Return Values
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when one of the specified pointers is NULL. |
ippStsNoOperation |
Indicates a warning when width or height of the destination image is equal to zero. |
ippStsContextMatchErr |
Indicates an error when pointer to the spec structure is invalid. |
ippStsStepErr |
Indicates an error when the step value is not data type multiple. |
ippStsOutOfRangeErr |
Indicates an error when the destination image offset point is outside the destination image origin. |
ippStsSizeWrn |
Indicates a warning when the destination image size is more that the destination image origin size. |