Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
XieTieqiang opened this issue Aug 10, 2024 · 0 comments
Open

Comments

@XieTieqiang
Copy link

XieTieqiang commented Aug 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant