I have an image stored in a pointer to char and I want to use on it ipp functions.
How do I build an Ipp8u* image in ipp from this pointer to char?
is this a heavy calculation (the construction)?
Can I do simple casting?
Thanks a lot
I have an image stored in a pointer to char and I want to
Share
Yes, all you need to do is cast the pointer:
or, if you prefer C-style casts for some reason:
As noted in the Intel documentation,
Ipp8uis equivalent to C’sunsigned char— at least in the typical implementation whereCHAR_BIT == 8. This isn’t required but I believe is the case for most (if not all) compilers/platforms supported by Intel-IPP.