Home
last modified time | relevance | path

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

/OK3568_Linux_fs/external/rknpu2/examples/librknn_api_android_demo/include/stb/
H A Dstb_image.h4703 static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n) in stbi__expand_png_palette() argument
4708 p = (stbi_uc *) stbi__malloc_mad2(pixel_count, pal_img_n, 0); in stbi__expand_png_palette()
4714 if (pal_img_n == 3) { in stbi__expand_png_palette()
4800 stbi_uc palette[1024], pal_img_n=0; in stbi__parse_png_file() local
4832 … if (color == 3) pal_img_n = 3; else if (color & 1) return stbi__err("bad ctype","Corrupt PNG"); in stbi__parse_png_file()
4837 if (!pal_img_n) { in stbi__parse_png_file()
4868 if (pal_img_n) { in stbi__parse_png_file()
4872 pal_img_n = 4; in stbi__parse_png_file()
4890 if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG"); in stbi__parse_png_file()
4891 if (scan == STBI__SCAN_header) { s->img_n = pal_img_n; return 1; } in stbi__parse_png_file()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/stb/
H A Dstb_image.h4703 static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n) in stbi__expand_png_palette() argument
4708 p = (stbi_uc *) stbi__malloc_mad2(pixel_count, pal_img_n, 0); in stbi__expand_png_palette()
4714 if (pal_img_n == 3) { in stbi__expand_png_palette()
4800 stbi_uc palette[1024], pal_img_n=0; in stbi__parse_png_file() local
4832 … if (color == 3) pal_img_n = 3; else if (color & 1) return stbi__err("bad ctype","Corrupt PNG"); in stbi__parse_png_file()
4837 if (!pal_img_n) { in stbi__parse_png_file()
4868 if (pal_img_n) { in stbi__parse_png_file()
4872 pal_img_n = 4; in stbi__parse_png_file()
4890 if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG"); in stbi__parse_png_file()
4891 if (scan == STBI__SCAN_header) { s->img_n = pal_img_n; return 1; } in stbi__parse_png_file()
[all …]