summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurabh Chauhan <mopriadevteam@gmail.com>2023-04-11 14:37:29 +0000
committerSaurabh Chauhan <mopriadevteam@gmail.com>2023-04-11 14:37:29 +0000
commit95340340a6d3df0b31edf562cd858b4b3ce8b0e7 (patch)
treeccedde62ddf8db74c56a83017cd51fa623a66a71
parent25ff525322904ccb31fe63c5858a0cee19275d8d (diff)
downloadBuiltInPrintService-95340340a6d3df0b31edf562cd858b4b3ce8b0e7.tar.gz
Removed redundant strip height adjustment codeandroid-u-beta-1-gpl
As per IANA ipp registrations, strip height shall not be less than 16. Also, there are some printers that don't support smaller strip heights and might cause performance related issue at printer side. Removing strip height adjustment logic, as this is more likely to result in a smaller strip height. Test: Print a document to a PCLm printer. Change-Id: Id179b95200f78178e8999c742dd7014effe6714b Signed-off-by: Saurabh Chauhan <mopriadevteam@gmail.com>
-rwxr-xr-xjni/lib/lib_wprint.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/jni/lib/lib_wprint.c b/jni/lib/lib_wprint.c
index c63137c..ac39a81 100755
--- a/jni/lib/lib_wprint.c
+++ b/jni/lib/lib_wprint.c
@@ -1948,18 +1948,6 @@ status_t wprintGetFinalJobParams(wprint_job_params_t *job_params,
job_params->accepts_os_name = printer_cap->docSourceOsName;
job_params->accepts_os_version = printer_cap->docSourceOsVersion;
- // Strip height calculation for PCLm by taking the GCD of printable_height and
- // printer_cap->stripHeight, this needs to be called after printable_area_get()
- int adjusted_strip_height = job_params->printable_area_height % printer_cap->stripHeight;
- if (job_params->pcl_type == PCLm && adjusted_strip_height != 0) {
- for (i = 1; i <= job_params->printable_area_height && i <= printer_cap->stripHeight; ++i) {
- if (job_params->printable_area_height % i == 0 && printer_cap->stripHeight % i == 0) {
- adjusted_strip_height = i;
- }
- }
- job_params->strip_height = adjusted_strip_height;
- }
-
return result;
}