-
Notifications
You must be signed in to change notification settings - Fork 12
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
First set of NGFF optimizations #83
First set of NGFF optimizations #83
Conversation
Currently a work in progress. There will likely be a few more to come. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really have any objection to the getBytes
changes, but I'm not sure they will prevent any copying from taking place. I think once we call array.read(...)
the data is put in memory and then is just passed around.
int sizeX = pixels.getSizeX(); | ||
int sizeY = pixels.getSizeY(); | ||
for (int i = 0; i < resolutionLevels; i++) { | ||
double scale = Math.pow(2, i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the resolution levels always successive powers of 2 from each other?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, at least as far as we use them. It's not explicitly defined but should be in the future:
Depending on the exact implementation I was concerned about |
Optimizations for the NGFF image and thumbnail rendering workflows consisting of: