FreeImage icon indicating copy to clipboard operation
FreeImage copied to clipboard

FreeImage_LockPage 的效率非常慢,能否提高他的效率?

Open XieTieqiang opened this issue 6 months ago • 0 comments

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); } } }

10262577ed05414099833a85c9ac1962

XieTieqiang avatar Aug 10 '24 08:08 XieTieqiang