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

Cannot open big images, size limitet of LongInt, not Int64 #38

Open
jonyrh-td-sever opened this issue Apr 2, 2024 · 2 comments
Open

Comments

@jonyrh-td-sever
Copy link

Cannot open big images, size limitet of LongInt, not Int64..

May bi, add compile defines for CPU x86_64 to use big images?
And open images in stream as TFileStream for not use RAM?

@galfar
Copy link
Owner

galfar commented Apr 24, 2024

That's right, size in TImageData should be Int64 or NativeInt rather.
More troubles would be with some IO functions and some image format loaders/savers.
What are you most interested in?

I used memory mapped files as Bits in TImageData for big images in a project using Imaging many years ago - I'll see if it could be resurrected (at least as a demo).

@jonyrh-td-sever
Copy link
Author

jonyrh-td-sever commented Apr 24, 2024

I think NativeInt will be more compatible, since you won't have to create separate code for different compiler directives like {$DEFINE CPUX86_64}. And thanks for the answer! :-)

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

2 participants