Rank: 467393 based on 0 downloads (last 30 days) and 0 file submitted
photo

Robert Oostenveld

E-mail
Company/University
Radboud University Nijmegen

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Robert Oostenveld View all
Updated File Comments Rating
20 Nov 2013 savepng savepng is a fast PNG image compression routine that outperforms MatLab's built-in imwrite Author: Stefan Slonevskiy

The compilation of the miniz mex file fails on MATLAB version 8.0.0.783 (R2012b) Mac OS X 10.6.8:

>> benchmark_savepng
In file included from savepng.c:35:
miniz.c:2759: error: conflicting types for 'tdefl_write_image_to_png_file_in_memory'
miniz.c:794: error: previous declaration of 'tdefl_write_image_to_png_file_in_memory' was here
savepng.c: In function 'mexFunction':
savepng.c:68: warning: comparison is always false due to limited range of data type
savepng.c:68: warning: comparison is always false due to limited range of data type
savepng.c:120: warning: 'return' with a value, in function returning void

mex: compile of ' "savepng.c"' failed.

Error using savepng (line 34)
Sorry, auto-compilation failed.

Changing line 794 in miniz.c from

void *tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h, int num_chans, size_t *pLen_out);

into

void *tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h, int max_probes, int num_chans, size_t *pLen_out);

solves the problem.

04 May 2009 How fast is your graphics card? Creates a challenging 3-d benchmark for graphics processing speed measurement. Author: Michael Kleder

0.42 - PowerBook G4 (1.33 GHz PowerPC G4, 1.25 GM RAM, GeForce FX Go5200 64MB, built in 1024 x 768 LCD)

Contact us