Lines Matching refs:depth
472 BMP_DEBUG(printf("Depth: %d\n", info->depth)); in gdImageCreateFromBmpCtx()
475 if (info->depth >= 16) { in gdImageCreateFromBmpCtx()
487 switch (info->depth) { in gdImageCreateFromBmpCtx()
576 !gdGetWordLSB(&info->depth, infile) || in bmp_read_windows_v3_info()
597 info->depth <= 0 || info->numcolors < 0 || info->mincolors < 0) { in bmp_read_windows_v3_info()
610 !gdGetWordLSB(&info->depth, infile) in bmp_read_os2_v1_info()
618 info->numcolors = 1 << info->depth; in bmp_read_os2_v1_info()
622 info->depth <= 0 || info->numcolors < 0) { in bmp_read_os2_v1_info()
636 !gdGetWordLSB(&info->depth, infile) || in bmp_read_os2_v2_info()
662 info->depth <= 0 || info->numcolors < 0 || info->mincolors < 0) { in bmp_read_os2_v2_info()
682 if (info->depth == 24) { in bmp_read_direct()
691 if (info->depth != 8) { in bmp_read_direct()
697 if (info->depth != 4) { in bmp_read_direct()
718 padding = ((int)(info->depth / 8) * info->width) % 4; in bmp_read_direct()
732 if (info->depth == 16) { in bmp_read_direct()
741 } else if (info->depth == 24) { in bmp_read_direct()
1023 int pixels_per_byte = 8 / info->depth; in bmp_read_rle()
1038 …index = (rle_data & (((1 << info->depth) - 1) << (8 - (j * info->depth)))) >> (8 - (j * info->dept… in bmp_read_rle()
1061 int temp = (index >> (8 - (j * info->depth))) & ((1 << info->depth) - 1); in bmp_read_rle()