Lines Matching refs:channels
21 * row_info bit depth should be 8 (one pixel per byte). The channels
30 row_info->channels == 1)
154 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels);
178 int channels = 0;
182 shift_start[channels] = row_info->bit_depth - bit_depth->red;
183 shift_dec[channels] = bit_depth->red;
184 channels++;
186 shift_start[channels] = row_info->bit_depth - bit_depth->green;
187 shift_dec[channels] = bit_depth->green;
188 channels++;
190 shift_start[channels] = row_info->bit_depth - bit_depth->blue;
191 shift_dec[channels] = bit_depth->blue;
192 channels++;
197 shift_start[channels] = row_info->bit_depth - bit_depth->gray;
198 shift_dec[channels] = bit_depth->gray;
199 channels++;
204 shift_start[channels] = row_info->bit_depth - bit_depth->alpha;
205 shift_dec[channels] = bit_depth->alpha;
206 channels++;
251 png_uint_32 istop = channels * row_info->width;
256 const unsigned int c = i%channels;
280 png_uint_32 istop = channels * row_info->width;
284 const unsigned int c = i%channels;
518 /* png_byte channels; number of channels (1-4) */
519 /* png_byte pixel_depth; bits per pixel (depth*channels) */