Home | History | Annotate | Download | only in libpng

Lines Matching refs:row_info

36            &(png_ptr->row_info),       /* row_info:     */
47 png_do_strip_filler(&(png_ptr->row_info), png_ptr->row_buf + 1,
52 png_do_packswap(&(png_ptr->row_info), png_ptr->row_buf + 1);
56 png_do_pack(&(png_ptr->row_info), png_ptr->row_buf + 1,
61 png_do_swap(&(png_ptr->row_info), png_ptr->row_buf + 1);
65 png_do_shift(&(png_ptr->row_info), png_ptr->row_buf + 1,
70 png_do_write_swap_alpha(&(png_ptr->row_info), png_ptr->row_buf + 1);
74 png_do_write_invert_alpha(&(png_ptr->row_info), png_ptr->row_buf + 1);
78 png_do_bgr(&(png_ptr->row_info), png_ptr->row_buf + 1);
82 png_do_invert(&(png_ptr->row_info), png_ptr->row_buf + 1);
88 * row_info bit depth should be 8 (one pixel per byte). The channels
92 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth)
96 if (row_info->bit_depth == 8 &&
98 row != NULL && row_info != NULL &&
100 row_info->channels == 1)
109 png_uint_32 row_width = row_info->width;
140 png_uint_32 row_width = row_info->width;
172 png_uint_32 row_width = row_info->width;
202 row_info->bit_depth = (png_byte)bit_depth;
203 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels);
204 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,
205 row_info->width);
213 * according to row_info->bit_depth. Thus, if you had a row of
219 png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth)
224 if (row != NULL && row_info != NULL &&
228 row_info->color_type != PNG_COLOR_TYPE_PALETTE)
233 if (row_info->color_type & PNG_COLOR_MASK_COLOR)
235 shift_start[channels] = row_info->bit_depth - bit_depth->red;
238 shift_start[channels] = row_info->bit_depth - bit_depth->green;
241 shift_start[channels] = row_info->bit_depth - bit_depth->blue;
247 shift_start[channels] = row_info->bit_depth - bit_depth->gray;
251 if (row_info->color_type & PNG_COLOR_MASK_ALPHA)
253 shift_start[channels] = row_info->bit_depth - bit_depth->alpha;
259 if (row_info->bit_depth < 8)
264 png_uint_32 row_bytes = row_info->rowbytes;
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)
293 png_uint_32 istop = channels * row_info->width;
317 png_uint_32 istop = channels * row_info->width;
344 png_do_write_swap_alpha(png_row_infop row_info, png_bytep row)
349 if (row != NULL && row_info != NULL)
352 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
355 if (row_info->bit_depth == 8)
359 png_uint_32 row_width = row_info->width;
374 png_uint_32 row_width = row_info->width;
392 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
395 if (row_info->bit_depth == 8)
399 png_uint_32 row_width = row_info->width;
413 png_uint_32 row_width = row_info->width;
433 png_do_write_invert_alpha(png_row_infop row_info, png_bytep row)
438 if (row != NULL && row_info != NULL)
441 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
444 if (row_info->bit_depth == 8)
448 png_uint_32 row_width = row_info->width;
465 png_uint_32 row_width = row_info->width;
483 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
486 if (row_info->bit_depth == 8)
490 png_uint_32 row_width = row_info->width;
503 png_uint_32 row_width = row_info->width;
524 png_do_write_intrapixel(png_row_infop row_info, png_bytep row)
530 row != NULL && row_info != NULL &&
532 (row_info->color_type & PNG_COLOR_MASK_COLOR))
535 png_uint_32 row_width = row_info->width;
536 if (row_info->bit_depth == 8)
541 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
543 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
554 else if (row_info->bit_depth == 16)
559 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
561 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)