Changeset 529 for trunk/src/image/png_writer.cc
- Timestamp:
- 01/05/17 13:50:41 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/image/png_writer.cc
r520 r529 47 47 48 48 // initialize a callback-based context 49 static void stbi__start_write_callbacks( stbi__write_context *s, stbi_write_func *c, void *context )50 {51 s->func = c;52 s->context = context;53 }49 // static void stbi__start_write_callbacks( stbi__write_context *s, stbi_write_func *c, void *context ) 50 // { 51 // s->func = c; 52 // s->context = context; 53 // } 54 54 55 55 typedef unsigned int stbiw_uint32; … … 65 65 #define stbi__errpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL)) 66 66 67 /* 67 68 static void stbiw__writefv( stbi__write_context *s, const char *fmt, va_list v ) 68 69 { … … 139 140 break; 140 141 } 141 / * FALLTHROUGH */142 // FALLTHROUGH 142 143 case 3: 143 144 stbiw__write3( s, d[1 - rgb_dir], d[1], d[1 + rgb_dir] ); … … 188 189 } 189 190 } 190 191 */ 191 192 192 193 static unsigned int stbiw__crc32( unsigned char *buffer, int len ) … … 253 254 } 254 255 255 unsigned char * stbi_zlib_compress( unsigned char *data, int data_len, int *out_len, int quality)256 unsigned char * stbi_zlib_compress( unsigned char *data, int data_len, int *out_len, int /*quality*/ ) 256 257 { 257 258 unsigned long expected = nv::miniz_bound( data_len );
Note: See TracChangeset
for help on using the changeset viewer.