@@ -2191,7 +2191,7 @@ stbi_inline static int stbi__extend_receive(stbi__jpeg * j, int n) {
2191
2191
if (j->code_bits < n)
2192
2192
stbi__grow_buffer_unsafe (j);
2193
2193
if (j->code_bits < n)
2194
- return 0 ; // ran out of bits from stream, return 0s intead of continuing
2194
+ return 0 ; // ran out of bits from stream, return 0s instead of continuing
2195
2195
2196
2196
sgn = j->code_buffer >> 31 ; // sign bit always in MSB; 0 if MSB clear (positive), 1 if MSB set (negative)
2197
2197
k = stbi_lrot (j->code_buffer , n);
@@ -2207,7 +2207,7 @@ stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg * j, int n) {
2207
2207
if (j->code_bits < n)
2208
2208
stbi__grow_buffer_unsafe (j);
2209
2209
if (j->code_bits < n)
2210
- return 0 ; // ran out of bits from stream, return 0s intead of continuing
2210
+ return 0 ; // ran out of bits from stream, return 0s instead of continuing
2211
2211
k = stbi_lrot (j->code_buffer , n);
2212
2212
j->code_buffer = k & ~stbi__bmask[n];
2213
2213
k &= stbi__bmask[n];
@@ -2220,7 +2220,7 @@ stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg * j) {
2220
2220
if (j->code_bits < 1 )
2221
2221
stbi__grow_buffer_unsafe (j);
2222
2222
if (j->code_bits < 1 )
2223
- return 0 ; // ran out of bits from stream, return 0s intead of continuing
2223
+ return 0 ; // ran out of bits from stream, return 0s instead of continuing
2224
2224
k = j->code_buffer ;
2225
2225
j->code_buffer <<= 1 ;
2226
2226
--j->code_bits ;
@@ -5015,13 +5015,13 @@ static int stbi__create_png_image_raw(stbi__png * a, stbi_uc * raw, stbi__uint32
5015
5015
5016
5016
// we make a separate pass to expand bits to pixels; for performance,
5017
5017
// this could run two scanlines behind the above code, so it won't
5018
- // intefere with filtering but will still be in the cache.
5018
+ // interfere with filtering but will still be in the cache.
5019
5019
if (depth < 8 ) {
5020
5020
for (j = 0 ; j < y; ++j) {
5021
5021
stbi_uc * cur = a->out + stride * j;
5022
5022
stbi_uc * in = a->out + stride * j + x * out_n - img_width_bytes;
5023
5023
// unpack 1/2/4-bit into a 8-bit buffer. allows us to keep the common 8-bit path optimal at minimal cost for
5024
- // 1/2/4-bit png guarante byte alignment, if width is not multiple of 8/4/2 we'll decode dummy trailing data that
5024
+ // 1/2/4-bit png guarantee byte alignment, if width is not multiple of 8/4/2 we'll decode dummy trailing data that
5025
5025
// will be skipped in the later loop
5026
5026
stbi_uc scale = (color == 0 ) ? stbi__depth_scale_table[depth] : 1 ; // scale grayscale values to 0..255 range
5027
5027
@@ -5215,7 +5215,7 @@ static int stbi__expand_png_palette(stbi__png * a, stbi_uc * palette, int len, i
5215
5215
if (p == NULL )
5216
5216
return stbi__err (" outofmem" , " Out of memory" );
5217
5217
5218
- // between here and free(out) below, exitting would leak
5218
+ // between here and free(out) below, exiting would leak
5219
5219
temp_out = p;
5220
5220
5221
5221
if (pal_img_n == 3 ) {
@@ -6281,7 +6281,7 @@ static void * stbi__tga_load(stbi__context * s, int * x, int * y, int * comp, in
6281
6281
if (tga_width > STBI_MAX_DIMENSIONS)
6282
6282
return stbi__errpuc (" too large" , " Very large image (corrupt?)" );
6283
6283
6284
- // do a tiny bit of precessing
6284
+ // do a tiny bit of processing
6285
6285
if (tga_image_type >= 8 ) {
6286
6286
tga_image_type -= 8 ;
6287
6287
tga_is_RLE = 1 ;
@@ -7213,7 +7213,7 @@ static stbi_uc * stbi__gif_load_next(stbi__context * s, stbi__gif * g, int * com
7213
7213
// 0: not specified.
7214
7214
}
7215
7215
7216
- // background is what out is after the undoing of the previou frame;
7216
+ // background is what out is after the undoing of the previous frame;
7217
7217
memcpy (g->background , g->out , 4 * g->w * g->h );
7218
7218
}
7219
7219
@@ -8277,7 +8277,7 @@ STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const * c, void * us
8277
8277
1.31 (2011-06-20)
8278
8278
a few more leak fixes, bug in PNG handling (SpartanJ)
8279
8279
1.30 (2011-06-11)
8280
- added ability to load files via callbacks to accomidate custom input streams (Ben Wenger)
8280
+ added ability to load files via callbacks to accommodate custom input streams (Ben Wenger)
8281
8281
removed deprecated format-specific test/load functions
8282
8282
removed support for installable file formats (stbi_loader) -- would have been broken for IO callbacks
8283
8283
anyway error cases in bmp and tga give messages and don't leak (Raymond Barbiero, grisha) fix inefficiency in
0 commit comments