Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

ippsConvertUTF_8u16u

blono
Beginner
88 Views
It seems that ippsConvertUTF_8u16u returns wrong result when isBE flag is set to true.

__declspec(align(32)) const Ipp8u src[] = "\\xEF\\xBB\\xBF\\xE3\\x83\\x86\\xE3\\x82\\xB9\\xE3\\x83\\x88";
__declspec(align(32)) Ipp16u dst[4];
Ipp32u srcLen = 12;
Ipp32u dstLen = 4;
ippsConvertUTF_8u16u(src, &srcLen, dst, &dstLen, true);

While dstLen should be { 0xFFFE, 0xC630, 0xB930, 0xC830 }, it becomes { 0xFF00, 0xC600, 0xB900, 0xC800 }.
Is there something wrong with my code here?

Here is my environment:
MSVC2010
IPP7.0
Win7 64-bit
0 Kudos
2 Replies
Ying_H_Intel
Employee
88 Views
Hi Blono,

Thank you a lot for the report.I can reproduce the problem. There is a bug in the function. Our developer will fix it. I will notify you when the fix version is avaiable.

Thanks
Ying H.
Ying_H_Intel
Employee
88 Views
Hi Blono,

Sorry for the delay. I reviewed some previous issue recently and found this one. It should be fixed inlatest IPP 7.0 update 6 and update 7 version. You are welcomed to try it

Thanks
Ying
Reply