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

fix FASTOCTREE quantizer for large images (>16MP) #334

Merged
merged 1 commit into from
Sep 26, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions libImaging/QuantOctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
typedef struct _ColorBucket{
/* contains palette index when used for look up cube */
uint32_t count;
uint32_t r;
uint32_t g;
uint32_t b;
uint32_t a;
uint64_t r;
uint64_t g;
uint64_t b;
uint64_t a;
} *ColorBucket;

typedef struct _ColorCube{
Expand Down Expand Up @@ -262,7 +262,7 @@ set_lookup_value(const ColorCube cube, const Pixel *p, long value) {
bucket->count = value;
}

uint32_t
uint64_t
lookup_color(const ColorCube cube, const Pixel *p) {
ColorBucket bucket = color_bucket_from_cube(cube, p);
return bucket->count;
Expand Down