Home
last modified time | relevance | path

Searched refs:pal_img_n (Results 1 – 1 of 1) sorted by relevance

/third_party/astc-encoder/Source/
Dstb_image.h4894 static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n) in stbi__expand_png_palette() argument
4899 p = (stbi_uc *) stbi__malloc_mad2(pixel_count, pal_img_n, 0); in stbi__expand_png_palette()
4905 if (pal_img_n == 3) { in stbi__expand_png_palette()
5018 stbi_uc palette[1024], pal_img_n=0; in stbi__parse_png_file() local
5052 … if (color == 3) pal_img_n = 3; else if (color & 1) return stbi__err("bad ctype","Corrupt PNG"); in stbi__parse_png_file()
5057 if (!pal_img_n) { in stbi__parse_png_file()
5088 if (pal_img_n) { in stbi__parse_png_file()
5092 pal_img_n = 4; in stbi__parse_png_file()
5110 if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG"); in stbi__parse_png_file()
5111 if (scan == STBI__SCAN_header) { s->img_n = pal_img_n; return 1; } in stbi__parse_png_file()
[all …]