- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am wondering whether I could setscaleFactor to be negative integer in the function
IppStatus ippsMul_16s_ISfs(const Ipp16s * pSrc, Ipp16s * pSrcDst, int len, int scaleFactor);
Thanks.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Yes. The scale factor can be negative, positive, or zero. Scaling of an integer result is done by multiplying the output vector values by 2** (-scaleFactor ) before the function returns.
if (scaleFactor > 0) pDst = output >> scaleFactor
if (scaleFactor < 0) pDst = output<< ( - scaleFactor)
Thanks

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