Lines Matching refs:expected_size

2225 static unsigned zlib_decompress(unsigned char** out, size_t* outsize, size_t expected_size,  in zlib_decompress()  argument
2238 if(expected_size) { in zlib_decompress()
2240 ucvector_resize(&v, *outsize + expected_size); in zlib_decompress()
2308 static unsigned zlib_decompress(unsigned char** out, size_t* outsize, size_t expected_size, in zlib_decompress() argument
2311 LV_UNUSED(expected_size); in zlib_decompress()
4768 size_t scanlines_size = 0, expected_size = 0; in decodeGeneric() local
4923 expected_size = lodepng_get_raw_size_idat(*w, *h, bpp); in decodeGeneric()
4927 expected_size = 0; in decodeGeneric()
4928 expected_size += lodepng_get_raw_size_idat((*w + 7) >> 3, (*h + 7) >> 3, bpp); in decodeGeneric()
4929 if(*w > 4) expected_size += lodepng_get_raw_size_idat((*w + 3) >> 3, (*h + 7) >> 3, bpp); in decodeGeneric()
4930 expected_size += lodepng_get_raw_size_idat((*w + 3) >> 2, (*h + 3) >> 3, bpp); in decodeGeneric()
4931 if(*w > 2) expected_size += lodepng_get_raw_size_idat((*w + 1) >> 2, (*h + 3) >> 2, bpp); in decodeGeneric()
4932 expected_size += lodepng_get_raw_size_idat((*w + 1) >> 1, (*h + 1) >> 2, bpp); in decodeGeneric()
4933 if(*w > 1) expected_size += lodepng_get_raw_size_idat((*w + 0) >> 1, (*h + 1) >> 1, bpp); in decodeGeneric()
4934 expected_size += lodepng_get_raw_size_idat((*w + 0), (*h + 0) >> 1, bpp); in decodeGeneric()
4937 …state->error = zlib_decompress(&scanlines, &scanlines_size, expected_size, idat, idatsize, &state-… in decodeGeneric()
4939 …if(!state->error && scanlines_size != expected_size) state->error = 91; /*decompressed size doesn'… in decodeGeneric()