Lines Matching defs:total_bytes
372 std::size_t total_bytes)
386 if (total_bytes > max_bytes) {
387 throw SaneException("Trying to read too much data %zu (max %zu)", total_bytes, max_bytes);
389 if (total_bytes != max_bytes) {
391 total_bytes, max_bytes);
394 sanei_genesys_read_data_from_scanner(dev, image.get_row_ptr(0), total_bytes);
447 std::size_t total_bytes = 0;
466 total_bytes = session.output_total_bytes_raw;
468 total_bytes = session.params.channels * 2 * pixels_per_line * (session.params.lines + 1);
488 if (total_bytes > max_bytes) {
489 throw SaneException("Trying to read too much data %zu (max %zu)", total_bytes, max_bytes);
491 if (total_bytes != max_bytes) {
493 total_bytes, max_bytes);
496 sanei_genesys_read_data_from_scanner(dev, image.get_row_ptr(0), total_bytes);