Lines Matching refs:rowbytes
329 set_value(png_bytep row, size_t rowbytes, png_uint_32 x, unsigned int bit_depth, in set_value() argument
340 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes)) in set_value()
390 generate_row(png_bytep row, size_t rowbytes, unsigned int y, int color_type, in generate_row() argument
410 assert(y == 0 && rowbytes == 1 && size_max == 1); in generate_row()
416 assert(y == 0 && rowbytes == 1 && size_max == 3); in generate_row()
422 assert(y == 0 && rowbytes == 8 && size_max == 15); in generate_row()
440 assert(y == 0 && rowbytes == 256 && size_max == 255); in generate_row()
479 assert(rowbytes == 512 && size_max == 255); in generate_row()
504 assert(size_max == 255 && rowbytes == 256*(pixel_depth>>3)); in generate_row()
506 while (rowbytes > 0) in generate_row()
508 const size_t pixel_index = --rowbytes/pixel_depth; in generate_row()
511 row[rowbytes] = 0xFFU & pixel_index; in generate_row()
516 rowbytes - pixel_index * pixel_depth; in generate_row()
518 row[rowbytes] = in generate_row()
548 set_value(row, rowbytes, x, bit_depth, luma, gamma_table, conv); in generate_row()
563 set_value(row, rowbytes, 2*x, bit_depth, in generate_row()
566 set_value(row, rowbytes, 2*x+1, bit_depth, alpha, gamma_table, in generate_row()
594 set_value(row, rowbytes, 3*x+0, bit_depth, /* red */ Y, in generate_row()
596 set_value(row, rowbytes, 3*x+1, bit_depth, /* green */ in generate_row()
599 set_value(row, rowbytes, 3*x+2, bit_depth, /* blue */ in generate_row()
630 set_value(row, rowbytes, 4*x+0, bit_depth, /* red */ in generate_row()
633 set_value(row, rowbytes, 4*x+1, bit_depth, /* green */ in generate_row()
636 set_value(row, rowbytes, 4*x+2, bit_depth, /* blue */ in generate_row()
639 set_value(row, rowbytes, 4*x+3, bit_depth, /* alpha */ in generate_row()
656 memset(row, 0, rowbytes); in generate_row()
668 set_value(row, rowbytes, x, bit_depth, luma, gamma_table, in generate_row()
681 set_value(row, rowbytes, 2*x, bit_depth, luma, gamma_table, in generate_row()
683 set_value(row, rowbytes, 2*x+1, bit_depth, alpha, gamma_table, in generate_row()
698 set_value(row, rowbytes, 3*x+0, bit_depth, red, gamma_table, in generate_row()
700 set_value(row, rowbytes, 3*x+1, bit_depth, green, gamma_table, in generate_row()
702 set_value(row, rowbytes, 3*x+2, bit_depth, blue, gamma_table, in generate_row()
718 set_value(row, rowbytes, 4*x+0, bit_depth, red, gamma_table, in generate_row()
720 set_value(row, rowbytes, 4*x+1, bit_depth, green, gamma_table, in generate_row()
722 set_value(row, rowbytes, 4*x+2, bit_depth, blue, gamma_table, in generate_row()
724 set_value(row, rowbytes, 4*x+3, bit_depth, alpha, gamma_table, in generate_row()
953 png_size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); in write_png() local
955 row = malloc(rowbytes); in write_png()
967 generate_row(row, rowbytes, y, color_type, bit_depth, in write_png()