summaryrefslogtreecommitdiffstats
path: root/backend_sinfonia.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-01-31 11:34:08 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-01-31 11:34:08 -0500
commitd4845f3073ac58e34d918eb371424d18afb331e3 (patch)
treee4747884b5ac0fb4409b6e3cb36e67021b445bed /backend_sinfonia.h
parent2e2fa72768a8f7527ddc5e85ba35bda62ecc4e16 (diff)
downloadselphy_print-d4845f3073ac58e34d918eb371424d18afb331e3.tar.gz
selphy_print-d4845f3073ac58e34d918eb371424d18afb331e3.tar.bz2
selphy_print-d4845f3073ac58e34d918eb371424d18afb331e3.zip
shinkos6145: Support job combining (4x6 *2 -> 8x6-div2)
This code could be genericized, but as the other 6" sinfonia models automatically combine prints it's not terribly useful. The 6" printers don't appear to support a 5x7-div2 cut size, so this remains only useful for 4x6. Similarly, we can't do a 6x8-div4. But as all 6" models can rewind, this is only a print speed optimization rather than a media use optimization!
Diffstat (limited to 'backend_sinfonia.h')
-rw-r--r--backend_sinfonia.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend_sinfonia.h b/backend_sinfonia.h
index 4b225cd..c4e5efd 100644
--- a/backend_sinfonia.h
+++ b/backend_sinfonia.h
@@ -52,11 +52,14 @@ struct sinfonia_job_param {
#define EXT_FLAG_DOUBLESLUG 0x04
struct sinfonia_printjob {
+ size_t jobsize;
+ int copies;
+ int can_combine;
+
struct sinfonia_job_param jp;
uint8_t *databuf;
int datalen;
- int copies;
};
int sinfonia_read_parse(int data_fd, uint32_t model,