Lines Matching refs:bit_depth
130 int bit_depth, color_type, interlace_type, unit_type; in gdImageCreateFromPngCtx() local
199 …png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, &interlace_type, NULL, N… in gdImageCreateFromPngCtx()
213 if (bit_depth == 16) { in gdImageCreateFromPngCtx()
215 } else if (bit_depth < 8) { in gdImageCreateFromPngCtx()
282 if (bit_depth < 8) { in gdImageCreateFromPngCtx()
283 num_palette = 1 << bit_depth; in gdImageCreateFromPngCtx()
296 if (bit_depth == 16) { /* png_set_strip_16() not yet in effect */ in gdImageCreateFromPngCtx()
326 if (bit_depth == 16) { /* png_set_strip_16() not yet in effect */ in gdImageCreateFromPngCtx()
491 int i, j, bit_depth = 0, interlace_type; in gdImagePngCtxEx() local
591 bit_depth = 1; in gdImagePngCtxEx()
593 bit_depth = 2; in gdImagePngCtxEx()
595 bit_depth = 4; in gdImagePngCtxEx()
597 bit_depth = 8; in gdImagePngCtxEx()
612 png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth, PNG_COLOR_TYPE_PALETTE, interlace_type, in gdImagePngCtxEx()