Lines Matching full:bit_depth
829 switch (png_ptr->bit_depth)
1046 double m = (double)(((png_uint_32)1 << png_ptr->bit_depth) - 1);
1214 info_ptr->bit_depth = 8;
1224 if (info_ptr->bit_depth < 8)
1225 info_ptr->bit_depth = 8;
1253 if ((png_ptr->transformations & PNG_16_TO_8) && (info_ptr->bit_depth == 16))
1254 info_ptr->bit_depth = 8;
1272 png_ptr->palette_lookup && info_ptr->bit_depth == 8)
1280 if ((png_ptr->transformations & PNG_PACK) && (info_ptr->bit_depth < 8))
1281 info_ptr->bit_depth = 8;
1318 if (info_ptr->bit_depth < png_ptr->user_transform_depth)
1319 info_ptr->bit_depth = png_ptr->user_transform_depth;
1326 info_ptr->bit_depth);
1565 /* png_byte bit_depth; bit depth of samples */
1571 png_ptr->row_info.bit_depth = png_ptr->user_transform_depth;
1575 png_ptr->row_info.pixel_depth = (png_byte)(png_ptr->row_info.bit_depth *
1597 if (row != NULL && row_info != NULL && row_info->bit_depth < 8)
1599 if (row_info->bit_depth < 8)
1605 switch (row_info->bit_depth)
1671 row_info->bit_depth = 8;
1703 shift[channels++] = row_info->bit_depth - sig_bits->red;
1704 shift[channels++] = row_info->bit_depth - sig_bits->green;
1705 shift[channels++] = row_info->bit_depth - sig_bits->blue;
1709 shift[channels++] = row_info->bit_depth - sig_bits->gray;
1713 shift[channels++] = row_info->bit_depth - sig_bits->alpha;
1727 switch (row_info->bit_depth)
1800 if (row != NULL && row_info != NULL && row_info->bit_depth == 16)
1802 if (row_info->bit_depth == 16)
1844 row_info->bit_depth = 8;
1865 if (row_info->bit_depth == 8)
1907 if (row_info->bit_depth == 8)
1958 if (row_info->bit_depth == 8)
2007 if (row_info->bit_depth == 8)
2063 if (row_info->bit_depth == 8)
2095 else if (row_info->bit_depth == 16)
2135 if (row_info->bit_depth == 8)
2171 else if (row_info->bit_depth == 16)
2230 if (row_info->bit_depth >= 8 &&
2238 if (row_info->bit_depth == 8)
2266 if (row_info->bit_depth == 8)
2298 row_info->bit_depth);
2349 if (row_info->bit_depth == 8)
2393 else /* RGB bit_depth == 16 */
2455 if (row_info->bit_depth == 8)
2491 else /* RGBA bit_depth == 16 */
2556 row_info->bit_depth);
2563 /* Build a grayscale palette. Palette is assumed to be 1 << bit_depth
2569 png_build_grayscale_palette(int bit_depth, png_colorp palette)
2581 switch (bit_depth)
2836 switch (row_info->bit_depth)
3057 if (row_info->bit_depth == 8)
3098 else /* if (row_info->bit_depth == 16) */
3162 if (row_info->bit_depth == 8)
3221 else /* if (png_ptr->bit_depth == 16) */
3305 if (row_info->bit_depth == 8)
3378 else /* if (row_info->bit_depth == 16) */
3490 row_info->bit_depth);
3519 ((row_info->bit_depth <= 8 && gamma_table != NULL) ||
3520 (row_info->bit_depth == 16 && gamma_16_table != NULL)))
3526 if (row_info->bit_depth == 8)
3539 else /* if (row_info->bit_depth == 16) */
3565 if (row_info->bit_depth == 8)
3579 else /* if (row_info->bit_depth == 16) */
3603 if (row_info->bit_depth == 8)
3612 else /* if (row_info->bit_depth == 16) */
3628 if (row_info->bit_depth == 2)
3647 if (row_info->bit_depth == 4)
3661 else if (row_info->bit_depth == 8)
3671 else if (row_info->bit_depth == 16)
3710 if (row_info->bit_depth < 8)
3712 switch (row_info->bit_depth)
3782 row_info->bit_depth = 8;
3786 switch (row_info->bit_depth)
3806 row_info->bit_depth = 8;
3825 row_info->bit_depth = 8;
3859 if (row_info->bit_depth < 8)
3861 switch (row_info->bit_depth)
3936 row_info->bit_depth = 8;
3943 if (row_info->bit_depth == 8)
3958 else if (row_info->bit_depth == 16)
3983 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 1);
3990 if (row_info->bit_depth == 8)
4008 else if (row_info->bit_depth == 16)
4045 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 2);
4068 palette_lookup && row_info->bit_depth == 8)
4099 row_info->pixel_depth = row_info->bit_depth;
4103 palette_lookup != NULL && row_info->bit_depth == 8)
4128 row_info->pixel_depth = row_info->bit_depth;
4132 dither_lookup && row_info->bit_depth == 8)
4187 if (png_ptr->bit_depth <= 8)
4417 if (row_info->bit_depth == 8)
4437 else if (row_info->bit_depth == 16)