• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libpng/libpng-1.2.50/

Lines Matching refs:bit_depth

40              /*  png_byte bit_depth;         bit depth of samples */
57 (png_uint_32)png_ptr->bit_depth);
87 /* Pack pixels into bytes. Pass the true bit depth in bit_depth. The
92 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth)
96 if (row_info->bit_depth == 8 &&
102 switch ((int)bit_depth)
202 row_info->bit_depth = (png_byte)bit_depth;
203 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels);
212 * true number of bits in bit_depth. The row should be packed
213 * according to row_info->bit_depth. Thus, if you had a row of
215 * would pass 3 as bit_depth, and this routine would translate the
219 png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth)
235 shift_start[channels] = row_info->bit_depth - bit_depth->red;
236 shift_dec[channels] = bit_depth->red;
238 shift_start[channels] = row_info->bit_depth - bit_depth->green;
239 shift_dec[channels] = bit_depth->green;
241 shift_start[channels] = row_info->bit_depth - bit_depth->blue;
242 shift_dec[channels] = bit_depth->blue;
247 shift_start[channels] = row_info->bit_depth - bit_depth->gray;
248 shift_dec[channels] = bit_depth->gray;
253 shift_start[channels] = row_info->bit_depth - bit_depth->alpha;
254 shift_dec[channels] = bit_depth->alpha;
259 if (row_info->bit_depth < 8)
266 if (bit_depth->gray == 1 && row_info->bit_depth == 2)
268 else if (row_info->bit_depth == 4 && bit_depth->gray == 3)
289 else if (row_info->bit_depth == 8)
355 if (row_info->bit_depth == 8)
395 if (row_info->bit_depth == 8)
444 if (row_info->bit_depth == 8)
486 if (row_info->bit_depth == 8)
536 if (row_info->bit_depth == 8)
554 else if (row_info->bit_depth == 16)