Lines Matching refs:format

42         std::size_t width, std::size_t height, PixelFormat format, std::size_t input_batch_size,
46 format_{format},
72 PixelFormat format,
76 format_{format},
189 auto format = get_format();
203 auto pixel = get_raw_pixel_from_row(in_data, input_offset + ipixel, format);
204 set_raw_pixel_to_row(out_data, output_offset + ipixel, pixel, format);
310 auto format = source_.get_format();
313 std::uint16_t ch0 = get_raw_channel_from_row(row0, x, 0, format);
314 std::uint16_t ch1 = get_raw_channel_from_row(row1, x, 0, format);
315 std::uint16_t ch2 = get_raw_channel_from_row(row2, x, 0, format);
353 throw SaneException("Unsupported format combidation %d %d",
375 auto format = source_.get_format();
378 std::uint16_t ch = get_raw_channel_from_row(row, x, next_channel_, format);
396 throw SaneException("Unsupported input format %d", static_cast<unsigned>(input_format));
465 throw SaneException("Unsupported format %d", static_cast<unsigned>(input_format));
488 throw SaneException("Unsupported input format %d",
512 auto format = get_format();
518 std::uint16_t ch0 = get_raw_channel_from_row(row0, x, 0, format);
519 std::uint16_t ch1 = get_raw_channel_from_row(row1, x, 1, format);
520 std::uint16_t ch2 = get_raw_channel_from_row(row2, x, 2, format);
521 set_raw_channel_to_row(out_data, x, 0, ch0, format);
522 set_raw_channel_to_row(out_data, x, 1, ch1, format);
523 set_raw_channel_to_row(out_data, x, 2, ch2, format);
555 auto format = get_format();
567 RawPixel pixel = get_raw_pixel_from_row(rows[irow], x, format);
568 set_raw_pixel_to_row(out_data, x, pixel, format);
596 auto format = get_format();
602 format);
603 set_raw_pixel_to_row(out_data, x + ishift, pixel, format);
661 auto format = get_format();
662 auto channels = get_pixel_channels(format);
675 avg[c] += get_raw_channel_from_row(src_data, src_x, c, format);
684 set_raw_channel_to_row(out_data, dst_x, c, avg[c] / count, format);
695 avg[c] += get_raw_channel_from_row(src_data, src_x, c, format);
701 set_raw_channel_to_row(out_data, dst_x, c, avg[c], format);
728 auto format = get_format();
733 if (get_pixel_format_depth(format) < 8) {
736 auto pixel = get_raw_pixel_from_row(cached_line_.data(), i + offset_x_, format);
737 set_raw_pixel_to_row(out_data, i, pixel, format);
740 set_raw_pixel_to_row(out_data, i + x_src_width, RawPixel{}, format);
743 std::size_t bpp = get_pixel_format_depth(format) / 8;
783 auto format = get_format();
784 auto depth = get_pixel_format_depth(format);
792 unsigned channels = get_pixel_channels(format);
799 std::int32_t value = get_raw_channel_from_row(out_data, x, ch, format);
805 set_raw_channel_to_row(out_data, x, ch, value, format);
827 auto format = get_format();
829 write_tiff_file(path_, buffer_.get_front_row_ptr(), get_pixel_format_depth(format),
830 get_pixel_channels(format), get_width(), buffer_.height());