OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:pal_img_n
(Results
1 - 1
of
1
) sorted by relevancy
/src/sys/dev/stbi/
stb_image.c
2865
static int expand_palette(png *a, uint8 *palette, int len, int
pal_img_n
)
2870
p = MALLOC(pixel_count *
pal_img_n
);
2876
if (
pal_img_n
== 3) {
2958
uint8 palette[1024],
pal_img_n
=0;
local in function:parse_png_file
2984
if (color == 3)
pal_img_n
= 3; else if (color & 1) return e("bad ctype","Corrupt PNG");
2989
if (!
pal_img_n
) {
3020
if (
pal_img_n
) {
3024
pal_img_n
= 4;
3039
if (
pal_img_n
&& !pal_len) return e("no PLTE","Corrupt PNG");
3040
if (scan == SCAN_header) { s->img_n =
pal_img_n
; return 1;
[
all
...]
Completed in 20 milliseconds
Indexes created Sat Oct 25 10:09:55 GMT 2025