Lines Matching defs:row_info

1194       if (png_ptr->row_info.color_type == PNG_COLOR_TYPE_PALETTE)
1196 png_do_expand_palette(&(png_ptr->row_info), png_ptr->row_buf + 1,
1202 png_do_expand(&(png_ptr->row_info), png_ptr->row_buf + 1,
1205 png_do_expand(&(png_ptr->row_info), png_ptr->row_buf + 1,
1213 png_do_strip_filler(&(png_ptr->row_info), png_ptr->row_buf + 1,
1221 png_do_rgb_to_gray(png_ptr, &(png_ptr->row_info), png_ptr->row_buf + 1);
1268 png_do_gray_to_rgb(&(png_ptr->row_info), png_ptr->row_buf + 1);
1275 png_do_background(&(png_ptr->row_info), png_ptr->row_buf + 1,
1295 png_do_gamma(&(png_ptr->row_info), png_ptr->row_buf + 1,
1302 png_do_chop(&(png_ptr->row_info), png_ptr->row_buf + 1);
1308 png_do_dither((png_row_infop)&(png_ptr->row_info), png_ptr->row_buf + 1,
1310 if(png_ptr->row_info.rowbytes == (png_uint_32)0)
1317 png_do_invert(&(png_ptr->row_info), png_ptr->row_buf + 1);
1322 png_do_unshift(&(png_ptr->row_info), png_ptr->row_buf + 1,
1328 png_do_unpack(&(png_ptr->row_info), png_ptr->row_buf + 1);
1333 png_do_bgr(&(png_ptr->row_info), png_ptr->row_buf + 1);
1338 png_do_packswap(&(png_ptr->row_info), png_ptr->row_buf + 1);
1345 png_do_gray_to_rgb(&(png_ptr->row_info), png_ptr->row_buf + 1);
1350 png_do_read_filler(&(png_ptr->row_info), png_ptr->row_buf + 1,
1356 png_do_read_invert_alpha(&(png_ptr->row_info), png_ptr->row_buf + 1);
1361 png_do_read_swap_alpha(&(png_ptr->row_info), png_ptr->row_buf + 1);
1366 png_do_swap(&(png_ptr->row_info), png_ptr->row_buf + 1);
1375 &(png_ptr->row_info), /* row_info: */
1385 png_ptr->row_info.bit_depth = png_ptr->user_transform_depth;
1387 png_ptr->row_info.channels = png_ptr->user_transform_channels;
1389 png_ptr->row_info.pixel_depth = (png_byte)(png_ptr->row_info.bit_depth *
1390 png_ptr->row_info.channels);
1391 png_ptr->row_info.rowbytes = PNG_ROWBYTES(png_ptr->row_info.pixel_depth,
1392 png_ptr->row_info.width);
1406 png_do_unpack(png_row_infop row_info, png_bytep row)
1410 if (row != NULL && row_info != NULL && row_info->bit_depth < 8)
1412 if (row_info->bit_depth < 8)
1416 png_uint_32 row_width=row_info->width;
1418 switch (row_info->bit_depth)
1482 row_info->bit_depth = 8;
1483 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
1484 row_info->rowbytes = row_width * row_info->channels;
1496 png_do_unshift(png_row_infop row_info, png_bytep row, png_color_8p sig_bits)
1501 row != NULL && row_info != NULL && sig_bits != NULL &&
1503 row_info->color_type != PNG_COLOR_TYPE_PALETTE)
1509 png_uint_32 row_width = row_info->width;
1511 if (row_info->color_type & PNG_COLOR_MASK_COLOR)
1513 shift[channels++] = row_info->bit_depth - sig_bits->red;
1514 shift[channels++] = row_info->bit_depth - sig_bits->green;
1515 shift[channels++] = row_info->bit_depth - sig_bits->blue;
1519 shift[channels++] = row_info->bit_depth - sig_bits->gray;
1521 if (row_info->color_type & PNG_COLOR_MASK_ALPHA)
1523 shift[channels++] = row_info->bit_depth - sig_bits->alpha;
1537 switch (row_info->bit_depth)
1543 png_uint_32 istop = row_info->rowbytes;
1556 png_uint_32 istop = row_info->rowbytes;
1602 png_do_chop(png_row_infop row_info, png_bytep row)
1606 if (row != NULL && row_info != NULL && row_info->bit_depth == 16)
1608 if (row_info->bit_depth == 16)
1614 png_uint_32 istop = row_info->width * row_info->channels;
1647 row_info->bit_depth = 8;
1648 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
1649 row_info->rowbytes = row_info->width * row_info->channels;
1656 png_do_read_swap_alpha(png_row_infop row_info, png_bytep row)
1660 if (row != NULL && row_info != NULL)
1663 png_uint_32 row_width = row_info->width;
1664 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
1667 if (row_info->bit_depth == 8)
1669 png_bytep sp = row + row_info->rowbytes;
1686 png_bytep sp = row + row_info->rowbytes;
1706 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
1709 if (row_info->bit_depth == 8)
1711 png_bytep sp = row + row_info->rowbytes;
1726 png_bytep sp = row + row_info->rowbytes;
1748 png_do_read_invert_alpha(png_row_infop row_info, png_bytep row)
1752 if (row != NULL && row_info != NULL)
1755 png_uint_32 row_width = row_info->width;
1756 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
1759 if (row_info->bit_depth == 8)
1761 png_bytep sp = row + row_info->rowbytes;
1782 png_bytep sp = row + row_info->rowbytes;
1805 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
1808 if (row_info->bit_depth == 8)
1810 png_bytep sp = row + row_info->rowbytes;
1823 png_bytep sp = row + row_info->rowbytes;
1847 png_do_read_filler(png_row_infop row_info, png_bytep row,
1851 png_uint_32 row_width = row_info->width;
1859 row != NULL && row_info != NULL &&
1861 row_info->color_type == PNG_COLOR_TYPE_GRAY)
1863 if(row_info->bit_depth == 8)
1876 row_info->channels = 2;
1877 row_info->pixel_depth = 16;
1878 row_info->rowbytes = row_width * 2;
1890 row_info->channels = 2;
1891 row_info->pixel_depth = 16;
1892 row_info->rowbytes = row_width * 2;
1895 else if(row_info->bit_depth == 16)
1911 row_info->channels = 2;
1912 row_info->pixel_depth = 32;
1913 row_info->rowbytes = row_width * 4;
1927 row_info->channels = 2;
1928 row_info->pixel_depth = 32;
1929 row_info->rowbytes = row_width * 4;
1933 else if (row_info->color_type == PNG_COLOR_TYPE_RGB)
1935 if(row_info->bit_depth == 8)
1950 row_info->channels = 4;
1951 row_info->pixel_depth = 32;
1952 row_info->rowbytes = row_width * 4;
1966 row_info->channels = 4;
1967 row_info->pixel_depth = 32;
1968 row_info->rowbytes = row_width * 4;
1971 else if(row_info->bit_depth == 16)
1991 row_info->channels = 4;
1992 row_info->pixel_depth = 64;
1993 row_info->rowbytes = row_width * 8;
2011 row_info->channels = 4;
2012 row_info->pixel_depth = 64;
2013 row_info->rowbytes = row_width * 8;
2023 png_do_gray_to_rgb(png_row_infop row_info, png_bytep row)
2026 png_uint_32 row_width = row_info->width;
2029 if (row_info->bit_depth >= 8 &&
2031 row != NULL && row_info != NULL &&
2033 !(row_info->color_type & PNG_COLOR_MASK_COLOR))
2035 if (row_info->color_type == PNG_COLOR_TYPE_GRAY)
2037 if (row_info->bit_depth == 8)
2063 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
2065 if (row_info->bit_depth == 8)
2094 row_info->channels += (png_byte)2;
2095 row_info->color_type |= PNG_COLOR_MASK_COLOR;
2096 row_info->pixel_depth = (png_byte)(row_info->channels *
2097 row_info->bit_depth);
2098 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,row_width);
2124 png_do_rgb_to_gray(png_structp png_ptr, png_row_infop row_info, png_bytep row)
2129 png_uint_32 row_width = row_info->width;
2135 row != NULL && row_info != NULL &&
2137 (row_info->color_type & PNG_COLOR_MASK_COLOR))
2143 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
2145 if (row_info->bit_depth == 8)
2248 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
2250 if (row_info->bit_depth == 8)
2347 row_info->channels -= (png_byte)2;
2348 row_info->color_type &= ~PNG_COLOR_MASK_COLOR;
2349 row_info->pixel_depth = (png_byte)(row_info->channels *
2350 row_info->bit_depth);
2351 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,row_width);
2594 png_do_background(png_row_infop row_info, png_bytep row,
2606 png_uint_32 row_width=row_info->width;
2612 row != NULL && row_info != NULL &&
2614 (!(row_info->color_type & PNG_COLOR_MASK_ALPHA) ||
2615 (row_info->color_type != PNG_COLOR_TYPE_PALETTE && trans_values)))
2617 switch (row_info->color_type)
2621 switch (row_info->bit_depth)
2837 if (row_info->bit_depth == 8)
2878 else /* if (row_info->bit_depth == 16) */
2941 if (row_info->bit_depth == 8)
3083 if (row_info->bit_depth == 8)
3156 else /* if (row_info->bit_depth == 16) */
3263 if (row_info->color_type & PNG_COLOR_MASK_ALPHA)
3265 row_info->color_type &= ~PNG_COLOR_MASK_ALPHA;
3266 row_info->channels--;
3267 row_info->pixel_depth = (png_byte)(row_info->channels *
3268 row_info->bit_depth);
3269 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,row_width);
3283 png_do_gamma(png_row_infop row_info, png_bytep row,
3289 png_uint_32 row_width=row_info->width;
3294 row != NULL && row_info != NULL &&
3296 ((row_info->bit_depth <= 8 && gamma_table != NULL) ||
3297 (row_info->bit_depth == 16 && gamma_16_table != NULL)))
3299 switch (row_info->color_type)
3303 if (row_info->bit_depth == 8)
3316 else /* if (row_info->bit_depth == 16) */
3341 if (row_info->bit_depth == 8)
3355 else /* if (row_info->bit_depth == 16) */
3378 if (row_info->bit_depth == 8)
3387 else /* if (row_info->bit_depth == 16) */
3402 if (row_info->bit_depth == 2)
3420 if (row_info->bit_depth == 4)
3433 else if (row_info->bit_depth == 8)
3442 else if (row_info->bit_depth == 16)
3465 png_do_expand_palette(png_row_infop row_info, png_bytep row,
3471 png_uint_32 row_width=row_info->width;
3476 row != NULL && row_info != NULL &&
3478 row_info->color_type == PNG_COLOR_TYPE_PALETTE)
3480 if (row_info->bit_depth < 8)
3482 switch (row_info->bit_depth)
3550 row_info->bit_depth = 8;
3551 row_info->pixel_depth = 8;
3552 row_info->rowbytes = row_width;
3554 switch (row_info->bit_depth)
3574 row_info->bit_depth = 8;
3575 row_info->pixel_depth = 32;
3576 row_info->rowbytes = row_width * 4;
3577 row_info->color_type = 6;
3578 row_info->channels = 4;
3592 row_info->bit_depth = 8;
3593 row_info->pixel_depth = 24;
3594 row_info->rowbytes = row_width * 3;
3595 row_info->color_type = 2;
3596 row_info->channels = 3;
3608 png_do_expand(png_row_infop row_info, png_bytep row,
3614 png_uint_32 row_width=row_info->width;
3618 if (row != NULL && row_info != NULL)
3621 if (row_info->color_type == PNG_COLOR_TYPE_GRAY)
3625 if (row_info->bit_depth < 8)
3627 switch (row_info->bit_depth)
3699 row_info->bit_depth = 8;
3700 row_info->pixel_depth = 8;
3701 row_info->rowbytes = row_width;
3706 if (row_info->bit_depth == 8)
3719 else if (row_info->bit_depth == 16)
3721 sp = row + row_info->rowbytes - 1;
3722 dp = row + (row_info->rowbytes << 1) - 1;
3740 row_info->color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
3741 row_info->channels = 2;
3742 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 1);
3743 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,
3747 else if (row_info->color_type == PNG_COLOR_TYPE_RGB && trans_value)
3749 if (row_info->bit_depth == 8)
3751 sp = row + (png_size_t)row_info->rowbytes - 1;
3766 else if (row_info->bit_depth == 16)
3768 sp = row + row_info->rowbytes - 1;
3795 row_info->color_type = PNG_COLOR_TYPE_RGB_ALPHA;
3796 row_info->channels = 4;
3797 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 2);
3798 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,row_width);
3806 png_do_dither(png_row_infop row_info, png_bytep row,
3811 png_uint_32 row_width=row_info->width;
3815 if (row != NULL && row_info != NULL)
3818 if (row_info->color_type == PNG_COLOR_TYPE_RGB &&
3819 palette_lookup && row_info->bit_depth == 8)
3848 row_info->color_type = PNG_COLOR_TYPE_PALETTE;
3849 row_info->channels = 1;
3850 row_info->pixel_depth = row_info->bit_depth;
3851 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,row_width);
3853 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA &&
3854 palette_lookup != NULL && row_info->bit_depth == 8)
3877 row_info->color_type = PNG_COLOR_TYPE_PALETTE;
3878 row_info->channels = 1;
3879 row_info->pixel_depth = row_info->bit_depth;
3880 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,row_width);
3882 else if (row_info->color_type == PNG_COLOR_TYPE_PALETTE &&
3883 dither_lookup && row_info->bit_depth == 8)
4121 png_do_read_intrapixel(png_row_infop row_info, png_bytep row)
4126 row != NULL && row_info != NULL &&
4128 (row_info->color_type & PNG_COLOR_MASK_COLOR))
4131 png_uint_32 row_width = row_info->width;
4132 if (row_info->bit_depth == 8)
4137 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
4139 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
4150 else if (row_info->bit_depth == 16)
4155 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
4157 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)