Group :: Office
RPM: gimagereader
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: gimagereader-3.4.0-alt-Add-custom-scan-modes-seen-in-f-imaging-driver.patch
Download
Download
From cc24f059a72993cc5e6bddd0a7eef5e810ee8031 Mon Sep 17 00:00:00 2001
From: Nikolai Kostrigin <nickel@altlinux.org>
Date: Tue, 23 Aug 2022 17:57:17 +0300
Subject: [PATCH] Add custom scan modes seen in f+ imaging (Lexmark)
proprietary driver
---
gtk/src/scanner/ScannerSane.cc | 9 ++++++---
qt/src/scanner/ScannerSane.cc | 9 ++++++---
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/gtk/src/scanner/ScannerSane.cc b/gtk/src/scanner/ScannerSane.cc
index 62c82543..b3a700ce 100644
--- a/gtk/src/scanner/ScannerSane.cc
+++ b/gtk/src/scanner/ScannerSane.cc
@@ -266,14 +266,16 @@ void ScannerSane::doSetOptions() {
std::vector<std::string> color_scan_modes = {
SANE_VALUE_SCAN_MODE_COLOR,
"Color",
- "24bit Color" /* Seen in the proprietary brother3 driver */
+ "24bit Color", /* Seen in the proprietary brother3 driver */
+ "24-bit Color" /* Seen in the proprietary f+ imaging/Lexmark driver */
};
std::vector<std::string> gray_scan_modes = {
SANE_VALUE_SCAN_MODE_GRAY,
"Gray",
"Grayscale",
SANE_I18N("Grayscale"),
- "True Gray" /* Seen in the proprietary brother3 driver */
+ "True Gray", /* Seen in the proprietary brother3 driver */
+ "8-bit Grayscale" /* Seen in the proprietary f+ imaging/Lexmark driver */
};
std::vector<std::string> lineart_scan_modes = {
SANE_VALUE_SCAN_MODE_LINEART,
@@ -289,7 +291,8 @@ void ScannerSane::doSetOptions() {
"Gray",
"Grayscale",
SANE_I18N("Grayscale"),
- "True Gray" /* Seen in the proprietary brother3 driver */
+ "True Gray", /* Seen in the proprietary brother3 driver */
+ "1-bit Black & White" /* Seen in the proprietary f+ imaging/Lexmark driver */
};
switch(m_job->params.scan_mode) {
diff --git a/qt/src/scanner/ScannerSane.cc b/qt/src/scanner/ScannerSane.cc
index ec6f32c6..f78556d1 100644
--- a/qt/src/scanner/ScannerSane.cc
+++ b/qt/src/scanner/ScannerSane.cc
@@ -264,14 +264,16 @@ void ScannerSane::doSetOptions() {
QStringList color_scan_modes = {
SANE_VALUE_SCAN_MODE_COLOR,
"Color",
- "24bit Color" /* Seen in the proprietary brother3 driver */
+ "24bit Color", /* Seen in the proprietary brother3 driver */
+ "24-bit Color" /* Seen in the proprietary f+ imaging/Lexmark driver */
};
QStringList gray_scan_modes = {
SANE_VALUE_SCAN_MODE_GRAY,
"Gray",
"Grayscale",
SANE_I18N("Grayscale"),
- "True Gray" /* Seen in the proprietary brother3 driver */
+ "True Gray", /* Seen in the proprietary brother3 driver */
+ "8-bit Grayscale" /* Seen in the proprietary f+ imaging/Lexmark driver */
};
QStringList lineart_scan_modes = {
SANE_VALUE_SCAN_MODE_LINEART,
@@ -287,7 +289,8 @@ void ScannerSane::doSetOptions() {
"Gray",
"Grayscale",
SANE_I18N("Grayscale"),
- "True Gray" /* Seen in the proprietary brother3 driver */
+ "True Gray", /* Seen in the proprietary brother3 driver */
+ "1-bit Black & White" /* Seen in the proprietary f+ imaging/Lexmark driver */
};
switch(m_job->params.scan_mode) {
--
2.33.4