Changes a size of 4:2:0 two-plane image.
IppStatus ippiResizeYUV420_8u_P2R(const Ipp8u* pSrcY, int srcYStep, const Ipp8u* pSrcUV, int srcUVStep, IppiSize srcRoiSize, Ipp8u* pDstY, int dstYStep, Ipp8u* pDstUV, int dstUVStep, IppiSize dstRoiSize, int interpolation, Ipp8u* pBuffer);
pSrcY |
Pointer to the ROI in the luminance plane for a source image. |
||||
srcYStep |
Distance in bytes between starts of consecutive lines in the luminance plane of the source image. |
||||
pSrcUV |
Pointer to the ROI in the interleaved chrominance plane for a source image. |
||||
srcUVStep |
Distance in bytes between starts of consecutive lines in the interleaved chrominance plane of the source image. |
||||
srcRoiSize |
Size of the source image ROI in pixels. |
||||
pDstY |
Pointer to the ROI in the luminance plane for the destination image. |
||||
dstYStep |
Distance in bytes between starts of consecutive lines in the luminance plane of the destination image. |
||||
pDstUV |
Pointer to the ROI in the interleaved chrominance plane for the destination image. |
||||
dstUVStep |
Distance in bytes between starts of consecutive lines in the chrominance plane of a destination image. |
||||
dstRoiSize |
Size of the destination ROI in pixels. |
||||
interpolation |
Specifies the interpolation mode. Use one of the following values:
|
||||
pBuffer |
Pointer to the work buffer. |
The function ippiResizeYUV400 is declared in the ippi.h file. It operates with ROI (see ROI Processing in Geometric Transforms).
This function resizes the source image ROI to the destination image ROI using specified interpolation mode interpolation. The function requires the external buffer pBuffer, its size must be previously computed by calling the function ippiResizeYUV420GetBufSize.
The source image is a two-plane image in 4:2:0 sampling format in color spaces with decoupled luminance and chrominance components, for example, YUV420.
ippStsNoErr |
Indicates no error. Any other value indicates an error. |
ippStsNullPtrErr |
Indicates an error condition if one of the specified pointers is NULL. |
ippStsSizeErr |
Indicates an error condition if width or height of srcRoiSize or dstRoiSize is less than 2; or if width or height of the srcRoiSize is less than corresponding field of dstRoiSize for supersampling. |
ippStsInterpolationErr |
Indicates an error condition if interpolation has an illegal value. |
ippStsDoubleSize |
Indicates a warning if width or height of the srcRoiSize is odd. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.