FreeImage
FreeImage copied to clipboard
FreeImage_LockPage 的效率非常慢,能否提高他的效率?
FreeImage_LoadMultiBitmapFromMemory 函数flags参数设置GIF_PLAYBACK FreeImage_LockPage 某些GIF文件取得一帧的效率非常慢(比如附件的文件)。能否提它的高效率?
pfiMultiBitmap = FreeImage_LoadMultiBitmapFromMemory(FIF_GIF, pFiMemory, GIF_PLAYBACK); if (pfiMultiBitmap != NULL) { iFrameCount = FreeImage_GetPageCount(pfiMultiBitmap); for (int iFrameIndex = 0 iFrameIndex < iFrameCount ; iFrameIndex++) { pfiBitmap = FreeImage_LockPage(pfiMultiBitmap, iFrameIndex); if (pfiBitmap != NULL) { FreeImage_UnlockPage(pfiMultiBitmap, pfiBitmap, FALSE); } } }