Lines Matching defs:size

194 // loaders all have certain limits on image size; these differ somewhat
206 // larger than that, and it still fits in the overall size limit, you can
360 // than that size (in either width or height) without further processing.
411 int (*read) (void *user,char *data,int size); // fill 'data' with 'size' bytes. return number of bytes actually read
652 // should produce compiler error if size is wrong
848 static int stbi__stdio_read(void *user, char *data, int size)
850 return (int) fread(data,1,size,(FILE*) user);
983 static void *stbi__malloc(size_t size)
985 return STBI_MALLOC(size);
989 // therefore the largest decoded image size we can support with the
993 // we do, however, need to make sure our size calculations don't
994 // overflow. hence a few helper functions for size calculations that
1045 // mallocs with size overflow checking
1920 // - allocates lots of intermediate memory (full size of all components)
1942 stbi_uc size[257];
2005 // build size list for each symbol (from JPEG spec)
2008 h->size[k++] = (stbi_uc) (i+1);
2009 if(k >= 257) return stbi__err("bad size list","Corrupt JPEG");
2012 h->size[k] = 0;
2020 if (h->size[k] == j) {
2021 while (h->size[k] == j)
2025 // compute largest code + 1 for this size, preshifted as needed later
2034 int s = h->size[i];
2058 int len = h->size[fast];
2107 int s = h->size[k];
2138 STBI_ASSERT((((j->code_buffer) >> (32 - h->size[c])) & stbi__bmask[h->size[c]]) == h->code[c]);
4101 stbi_uc size[STBI__ZNSYMS];
4154 z->size [c] = (stbi_uc ) s;
4231 // code size is s, so:
4234 if (z->size[b] != s) return -1; // was originally an assert, but report failure instead.
5181 if (c.length > (1u << 30)) return stbi__err("IDAT size limit", "IDAT section larger than 2^30 bytes");
5203 // initial guess for decoded data size to avoid unnecessary reallocs
5521 stbi__get32le(s); // discard size of profile data
5568 int extra_data_limit = 256*4; // what ordinarily goes here is a palette; 256 entries*4 bytes is its max size.
5592 // sanity-check size
5800 // when using a colormap, tga_bits_per_pixel is the size of the indexes
5840 if ( (tga_color_type == 1) && (sz != 8) && (sz != 16) ) goto errorEnd; // for colormapped images, bpp is size of an index
6193 // Check size
6363 stbi_uc size,type,channel;
6405 packet->size = stbi__get8(s);
6412 if (packet->size != 8) return stbi__errpuc("bad format","packet isn't 8bpp");
7465 packet->size = stbi__get8(s);
7474 if (packet->size != 8) {