- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page