Lines Matching defs:channels
546 * to alpha channels.
585 /* Expand tRNS chunks to alpha channels. */
1117 info_ptr->channels = 1;
1119 info_ptr->channels = 3;
1121 info_ptr->channels = 1;
1129 info_ptr->channels++;
1137 info_ptr->channels++;
1152 if(info_ptr->channels < png_ptr->user_transform_channels)
1153 info_ptr->channels = png_ptr->user_transform_channels;
1157 info_ptr->pixel_depth = (png_byte)(info_ptr->channels *
1380 /* png_byte channels; number of channels (1-4) */
1381 /* png_byte pixel_depth; bits per pixel (depth*channels) */
1387 png_ptr->row_info.channels = png_ptr->user_transform_channels;
1390 png_ptr->row_info.channels);
1483 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
1484 row_info->rowbytes = row_width * row_info->channels;
1506 int channels = 0;
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;
1523 shift[channels++] = row_info->bit_depth - sig_bits->alpha;
1526 for (c = 0; c < channels; c++)
1571 png_uint_32 istop = row_width * channels;
1575 *bp++ >>= shift[i%channels];
1583 png_uint_32 istop = channels * row_width;
1588 value >>= shift[i%channels];
1614 png_uint_32 istop = row_info->width * row_info->channels;
1648 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
1649 row_info->rowbytes = row_info->width * row_info->channels;
1876 row_info->channels = 2;
1890 row_info->channels = 2;
1911 row_info->channels = 2;
1927 row_info->channels = 2;
1950 row_info->channels = 4;
1966 row_info->channels = 4;
1991 row_info->channels = 4;
2011 row_info->channels = 4;
2094 row_info->channels += (png_byte)2;
2096 row_info->pixel_depth = (png_byte)(row_info->channels *
2347 row_info->channels -= (png_byte)2;
2349 row_info->pixel_depth = (png_byte)(row_info->channels *
3266 row_info->channels--;
3267 row_info->pixel_depth = (png_byte)(row_info->channels *
3578 row_info->channels = 4;
3596 row_info->channels = 3;
3741 row_info->channels = 2;
3796 row_info->channels = 4;
3849 row_info->channels = 1;
3878 row_info->channels = 1;