Searched refs:pal_len (Results 1 – 1 of 1) sorted by relevance
/third_party/astc-encoder/Source/ |
D | stb_image.h | 5021 stbi__uint32 ioff=0, idata_limit=0, i, pal_len=0; in stbi__parse_png_file() local 5074 pal_len = c.length / 3; in stbi__parse_png_file() 5075 if (pal_len * 3 != c.length) return stbi__err("invalid PLTE","Corrupt PNG"); in stbi__parse_png_file() 5076 for (i=0; i < pal_len; ++i) { in stbi__parse_png_file() 5090 if (pal_len == 0) return stbi__err("tRNS before PLTE","Corrupt PNG"); in stbi__parse_png_file() 5091 if (c.length > pal_len) return stbi__err("bad tRNS len","Corrupt PNG"); in stbi__parse_png_file() 5110 if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG"); in stbi__parse_png_file() 5158 if (!stbi__expand_png_palette(z, palette, pal_len, s->img_out_n)) in stbi__parse_png_file()
|