I am a newcomer to the Intel IPP world. I am working in Visual C++. The code I'm working on performs certain manipulations on C++ arrays. After performing all these manipulations which use many IPP functions like FFT, Convert and so on, I'd like to write the array as an image to file. So far, I've succeeded in using ippiEncodeLoadCodeBlock_JPEG2K_32s_C1R and ippiEncodeStoreBits_JPEG2K_1u to encode the array to jpeg. The example in the IPP documentation illustrates that the encoded array can be written to file thus
fwrite(pDst, sizeof(Ipp8u), sizeof(pDst), FILE* file);
However, though the imagefile is created on disk and it has a non-zero size(some 60KB), I'm not able to view the image.
Can somebody please tell me what is wrong and how to correct it?