Lines Matching refs:bit_depth
124 int bit_depth, color_type, interlace_type; in gdImageCreateFromPngCtx() local
192 …png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, &interlace_type, NULL, N… in gdImageCreateFromPngCtx()
206 if (bit_depth == 16) { in gdImageCreateFromPngCtx()
208 } else if (bit_depth < 8) { in gdImageCreateFromPngCtx()
261 if (bit_depth < 8) { in gdImageCreateFromPngCtx()
262 num_palette = 1 << bit_depth; in gdImageCreateFromPngCtx()
275 if (bit_depth == 16) { /* png_set_strip_16() not yet in effect */ in gdImageCreateFromPngCtx()
305 if (bit_depth == 16) { /* png_set_strip_16() not yet in effect */ in gdImageCreateFromPngCtx()
464 int i, j, bit_depth = 0, interlace_type; in gdImagePngCtxEx() local
558 bit_depth = 1; in gdImagePngCtxEx()
560 bit_depth = 2; in gdImagePngCtxEx()
562 bit_depth = 4; in gdImagePngCtxEx()
564 bit_depth = 8; in gdImagePngCtxEx()
579 png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth, PNG_COLOR_TYPE_PALETTE, interlace_type, in gdImagePngCtxEx()