Using Intel IPL (OpenCV) to convert an image from RGB to RGBA

I have been trying to convert a MemoryBlock that contains RGB values into an picture using OpenCV.
OpenCV as distributed for Xojo makes use of Intel’s Image Processing Libraries … IPP Intel Performance Primatives.

I post a question on their forum as I was unable to get my code to work in Xojo…

The answer from the intel forum was

IPP has special function for this purpose:

IPPAPI( IppStatus, ippiCopy_8u_C3AC4R,
( const Ipp8u* pSrc, int srcStep,
Ipp8u* pDst, int dstStep, IppiSize roiSize ))

Which I understand in C … but i don’t see that in that method or constants in the OpenCV distribution that has been mentioned on this forum.