Use STB image by default.

Add buffer object, try to reduce binary size.
This commit is contained in:
castano
2011-04-02 07:41:55 +00:00
parent ad7a618222
commit 43b16d85f4
7 changed files with 906 additions and 859 deletions

View File

@ -667,7 +667,7 @@ FloatImage * FloatImage::resize(const Filter & filter, uint w, uint h, WrapMode
float * dst_channel = dst_image->channel(c);
for (uint x = 0; x < w; x++) {
tmp_image->applyKernelVertical(ykernel, x, c, wm, tmp_column.mutableBuffer());
tmp_image->applyKernelVertical(ykernel, x, c, wm, tmp_column.buffer());
for (uint y = 0; y < h; y++) {
dst_channel[y * w + x] = tmp_column[y];
@ -741,7 +741,7 @@ FloatImage * FloatImage::resize(const Filter & filter, uint w, uint h, WrapMode
float * dst_channel = dst_image->channel(c);
for (uint x = 0; x < w; x++) {
tmp_image->applyKernelVertical(ykernel, x, c, wm, tmp_column.mutableBuffer());
tmp_image->applyKernelVertical(ykernel, x, c, wm, tmp_column.buffer());
for (uint y = 0; y < h; y++) {
dst_channel[y * w + x] = tmp_column[y];

File diff suppressed because it is too large Load Diff