Home
last modified time | relevance | path

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

/third_party/astc-encoder/Source/
H A Dstb_image.h4957 static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n) in stbi__expand_png_palette() argument
4962 p = (stbi_uc *) stbi__malloc_mad2(pixel_count, pal_img_n, 0); in stbi__expand_png_palette()
4968 if (pal_img_n == 3) { in stbi__expand_png_palette()
5081 stbi_uc palette[1024], pal_img_n=0; in stbi__parse_png_file() local
5115 if (color == 3) pal_img_n = 3; else if (color & 1) return stbi__err("bad ctype","Corrupt PNG"); in stbi__parse_png_file()
5120 if (!pal_img_n) { in stbi__parse_png_file()
5150 if (pal_img_n) { in stbi__parse_png_file()
5154 pal_img_n = 4; in stbi__parse_png_file()
5174 if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG"); in stbi__parse_png_file()
5177 if (pal_img_n) in stbi__parse_png_file()
[all...]

Completed in 10 milliseconds