Lines Matching refs:depth
474 BMP_DEBUG(printf("Depth: %d\n", info->depth)); in gdImageCreateFromBmpCtx()
477 if (info->depth >= 16) { in gdImageCreateFromBmpCtx()
489 switch (info->depth) { in gdImageCreateFromBmpCtx()
578 !gdGetWordLSB(&info->depth, infile) || in bmp_read_windows_v3_info()
599 info->depth <= 0 || info->numcolors < 0 || info->mincolors < 0) { in bmp_read_windows_v3_info()
612 !gdGetWordLSB(&info->depth, infile) in bmp_read_os2_v1_info()
620 info->numcolors = 1 << info->depth; in bmp_read_os2_v1_info()
624 info->depth <= 0 || info->numcolors < 0) { in bmp_read_os2_v1_info()
638 !gdGetWordLSB(&info->depth, infile) || in bmp_read_os2_v2_info()
664 info->depth <= 0 || info->numcolors < 0 || info->mincolors < 0) { in bmp_read_os2_v2_info()
684 if (info->depth == 24) { in bmp_read_direct()
693 if (info->depth != 8) { in bmp_read_direct()
699 if (info->depth != 4) { in bmp_read_direct()
720 padding = ((int)(info->depth / 8) * info->width) % 4; in bmp_read_direct()
734 if (info->depth == 16) { in bmp_read_direct()
743 } else if (info->depth == 24) { in bmp_read_direct()
1025 int pixels_per_byte = 8 / info->depth; in bmp_read_rle()
1040 …index = (rle_data & (((1 << info->depth) - 1) << (8 - (j * info->depth)))) >> (8 - (j * info->dept… in bmp_read_rle()
1063 int temp = (index >> (8 - (j * info->depth))) & ((1 << info->depth) - 1); in bmp_read_rle()