Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.

Image resizing question

David_S_13
Beginner
114 Views
I was having difficulty resizing a YV12 image, but I found out (on the forums) that I need to use the following api for each of the planes:
ippiResizeSqrPixel_8u_C1R
It works, but I am curious as to what the following api does:
ippiResizeSqrPixel_8u_P3R
The def. in ippi.h is as follows:
IPPAPI(IppStatus, ippiResizeSqrPixel_8u_P3R, (
const Ipp8u* const pSrc[3],
IppiSize srcSize,
int srcStep,
IppiRect srcROI,
Ipp8u* const pDst[3],
int dstStep,
IppiRect dstROI,
double xFactor,
double yFactor,
double xShift,
double yShift,
int interpolation,
Ipp8u *pBuffer))
I originally tried to use this API but I could not get it to work. I am just looking for clarification as to when one would use this particular API.
Thanks for any info.
0 Kudos
1 Reply
Chao_Y_Intel
Employee
114 Views

Hi,

ippiResizeSqrPixel_8u_C1R could be a choice for your application. ippiResizeSqrPixel_8u_P3R function resize the images which has 3 separate planes. It requests3 planes data have the same size. ForYV12 data, the U/V data does not have same size with Y. so it can call ippiResizeSqrPixel_8u_C1R function for each image channel.

Thanks,
Chao

Reply