Fix more build errors.

pull/312/head
Ignacio 4 years ago
parent 504ecc8e10
commit 0b15c58692

@ -32,8 +32,8 @@ void nv::Quantize::BinaryAlpha( Image * image, int alpha_threshold /*= 127*/ )
{ {
nvCheck(image != NULL); nvCheck(image != NULL);
const uint w = image->width(); const uint w = image->width;
const uint h = image->height(); const uint h = image->height;
for(uint y = 0; y < h; y++) { for(uint y = 0; y < h; y++) {
for(uint x = 0; x < w; x++) { for(uint x = 0; x < w; x++) {
@ -76,8 +76,8 @@ void nv::Quantize::FloydSteinberg_BinaryAlpha( Image * image, int alpha_threshol
{ {
nvCheck(image != NULL); nvCheck(image != NULL);
const uint w = image->width(); const uint w = image->width;
const uint h = image->height(); const uint h = image->height;
// @@ Use fixed point? // @@ Use fixed point?
float * row0 = new float[(w+2)]; float * row0 = new float[(w+2)];
@ -130,8 +130,8 @@ void nv::Quantize::Truncate(Image * image, uint rsize, uint gsize, uint bsize, u
{ {
nvCheck(image != NULL); nvCheck(image != NULL);
const uint w = image->width(); const uint w = image->width;
const uint h = image->height(); const uint h = image->height;
for(uint y = 0; y < h; y++) { for(uint y = 0; y < h; y++) {
for(uint x = 0; x < w; x++) { for(uint x = 0; x < w; x++) {
@ -163,8 +163,8 @@ void nv::Quantize::FloydSteinberg(Image * image, uint rsize, uint gsize, uint bs
{ {
nvCheck(image != NULL); nvCheck(image != NULL);
const uint w = image->width(); const uint w = image->width;
const uint h = image->height(); const uint h = image->height;
Vector4 * row0 = new Vector4[w+2]; Vector4 * row0 = new Vector4[w+2];
Vector4 * row1 = new Vector4[w+2]; Vector4 * row1 = new Vector4[w+2];

Loading…
Cancel
Save