Lines Matching refs:row_info
25 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) in png_do_pack() argument
29 if (row_info->bit_depth == 8 && in png_do_pack()
30 row_info->channels == 1) in png_do_pack()
39 png_uint_32 row_width = row_info->width; in png_do_pack()
77 png_uint_32 row_width = row_info->width; in png_do_pack()
117 png_uint_32 row_width = row_info->width; in png_do_pack()
155 row_info->bit_depth = (png_byte)bit_depth; in png_do_pack()
156 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack()
157 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_pack()
158 row_info->width); in png_do_pack()
172 png_do_shift(png_row_infop row_info, png_bytep row, in png_do_shift() argument
177 if (row_info->color_type != PNG_COLOR_TYPE_PALETTE) in png_do_shift()
182 if ((row_info->color_type & PNG_COLOR_MASK_COLOR) != 0) in png_do_shift()
184 shift_start[channels] = row_info->bit_depth - bit_depth->red; in png_do_shift()
188 shift_start[channels] = row_info->bit_depth - bit_depth->green; in png_do_shift()
192 shift_start[channels] = row_info->bit_depth - bit_depth->blue; in png_do_shift()
199 shift_start[channels] = row_info->bit_depth - bit_depth->gray; in png_do_shift()
204 if ((row_info->color_type & PNG_COLOR_MASK_ALPHA) != 0) in png_do_shift()
206 shift_start[channels] = row_info->bit_depth - bit_depth->alpha; in png_do_shift()
212 if (row_info->bit_depth < 8) in png_do_shift()
217 png_size_t row_bytes = row_info->rowbytes; in png_do_shift()
219 if (bit_depth->gray == 1 && row_info->bit_depth == 2) in png_do_shift()
222 else if (row_info->bit_depth == 4 && bit_depth->gray == 3) in png_do_shift()
249 else if (row_info->bit_depth == 8) in png_do_shift()
253 png_uint_32 istop = channels * row_info->width; in png_do_shift()
282 png_uint_32 istop = channels * row_info->width; in png_do_shift()
311 png_do_write_swap_alpha(png_row_infop row_info, png_bytep row) in png_do_write_swap_alpha() argument
316 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_write_swap_alpha()
318 if (row_info->bit_depth == 8) in png_do_write_swap_alpha()
323 png_uint_32 row_width = row_info->width; in png_do_write_swap_alpha()
341 png_uint_32 row_width = row_info->width; in png_do_write_swap_alpha()
361 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) in png_do_write_swap_alpha()
363 if (row_info->bit_depth == 8) in png_do_write_swap_alpha()
368 png_uint_32 row_width = row_info->width; in png_do_write_swap_alpha()
384 png_uint_32 row_width = row_info->width; in png_do_write_swap_alpha()
405 png_do_write_invert_alpha(png_row_infop row_info, png_bytep row) in png_do_write_invert_alpha() argument
410 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_write_invert_alpha()
412 if (row_info->bit_depth == 8) in png_do_write_invert_alpha()
417 png_uint_32 row_width = row_info->width; in png_do_write_invert_alpha()
437 png_uint_32 row_width = row_info->width; in png_do_write_invert_alpha()
457 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) in png_do_write_invert_alpha()
459 if (row_info->bit_depth == 8) in png_do_write_invert_alpha()
464 png_uint_32 row_width = row_info->width; in png_do_write_invert_alpha()
479 png_uint_32 row_width = row_info->width; in png_do_write_invert_alpha()
502 png_do_write_transformations(png_structrp png_ptr, png_row_infop row_info) in png_do_write_transformations() argument
515 row_info, /* row_info: */ in png_do_write_transformations()
527 png_do_strip_channel(row_info, png_ptr->row_buf + 1, in png_do_write_transformations()
533 png_do_packswap(row_info, png_ptr->row_buf + 1); in png_do_write_transformations()
538 png_do_pack(row_info, png_ptr->row_buf + 1, in png_do_write_transformations()
545 png_do_swap(row_info, png_ptr->row_buf + 1); in png_do_write_transformations()
551 png_do_shift(row_info, png_ptr->row_buf + 1, in png_do_write_transformations()
557 png_do_write_swap_alpha(row_info, png_ptr->row_buf + 1); in png_do_write_transformations()
562 png_do_write_invert_alpha(row_info, png_ptr->row_buf + 1); in png_do_write_transformations()
567 png_do_bgr(row_info, png_ptr->row_buf + 1); in png_do_write_transformations()
572 png_do_invert(row_info, png_ptr->row_buf + 1); in png_do_write_transformations()