About HGLOBAL

About HGLOBAL

I am using HGLOBAL for storage BMP image
I want use ippiConvValid with HGLOBAL
For example:

HGLOBAL hKern = ::GlobalAlloc(GMEM_FIXED, sizeof(Ipp32f)*9);

.....
Ipp32f* pKern = (Ipp32f*)GlobalLock(hKern);

ippiConvValid_32f_C3R(
(Ipp32f*)phDIBS, ..., ...,
(Ipp32f*)pKern, ..,..
(Ipp32f*)phDIBD);

GlobalUnlock(hKern);
Whether there will be any problems if i use for work HGLOBAL

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hello, there should not be any problems if you calculate size of needed memory correctly

Regards,
Vladimir

Leave a Comment

Please sign in to add a comment. Not a member? Join today