Commit Graph

185 Commits

Author SHA1 Message Date
Solomon Peachy 2960be2b02 sinfonia: Several updates:
* Identify (and log) some additonal command types
 * Figured out backprinting command on EK701x
 * EK70xx supports panel button disabling
2019-09-18 21:08:13 -04:00
Solomon Peachy 9510016387 sinfonia: More consolidation and updates:
- Consolidate media query
  - Correct EK8810 8x10 print counts
  - Consolidate 6R/5R print counts
  - Documentation updates
2019-09-09 20:12:24 -04:00
Solomon Peachy 4c9e9fc9dd sinfonia: Minor documentation changes. 2019-08-18 10:55:49 -04:00
Solomon Peachy e4dbc0f895 s6145: Fix another bug related to media query structure sizes. 2019-08-10 16:06:01 -04:00
Solomon Peachy ecc9931392 s6145: Fix a critical error in the marker probe code. 2019-08-10 07:39:31 -04:00
Solomon Peachy 6b76ab3542 misc: Check the return codes for a couple of writes
Shuts up some compile warnings.
2019-07-15 23:37:17 -04:00
Solomon Peachy 1ffe35832d sinfonia: Fix header definitions for Kodak 8810 and 6900.
8810 _should_ work now, but 6900 is probably broken still.
2019-06-03 20:38:09 -04:00
Solomon Peachy 1ee70bd6dc HiTi M610 appears to be a Sinfonia S2245 variant. 2019-06-03 20:05:22 -04:00
Solomon Peachy 45668d5218 sinfonia: Common overcoat mode. 2019-05-25 22:04:43 -04:00
Solomon Peachy d72a4702c6 sinfonia: Unify a pile of common commands across four backends
* docmd
 * flashled
 * setparam
 * getparam
 * canceljob
 * getfwinfo
 * geterrorlog
 * resetcurve
 * gettonecurve
 * settonecurve

(And the EK605 river no longer uses raw bytestreams for commands!)

Overall a ~600 line reduction of code size.  Added some functionality too.
2019-05-25 09:04:15 -04:00
Solomon Peachy 6588755ae1 sinfonia-chcs2245: Fix typos in regression and printer name. 2019-05-23 13:20:16 -04:00
Solomon Peachy d454dfffa4 sinfonia-chcs2245: Add USB PID, and regression jobs. 2019-05-23 13:08:53 -04:00
Solomon Peachy 741266c3c3 brava21: Fix regression. 2019-05-23 08:25:09 -04:00
Solomon Peachy d39238255d kodak: Add preliminary support for Kodak 7000-series, 8810, and 6900
6900 in particular is _very_ preliminary.

Also unifies some more common sinfonia code.
2019-05-22 18:59:09 -04:00
Solomon Peachy 4e8665a029 sony: List a few more unknown commands discovered. 2019-05-22 18:38:48 -04:00
Solomon Peachy 7768f9a970 sinfonia: Add a library "version" and have the specific backends log it. 2019-05-13 20:56:09 -04:00
Solomon Peachy a65eb72562 sinfonia: More common code & definitions, and normalize code for more. 2019-05-13 18:14:12 -04:00
Solomon Peachy b1cd5f4387 shinko: Rename common shinko library to 'sinfonia' to reflect current name 2019-05-13 10:29:00 -04:00
Solomon Peachy 33621537d1 shinko: More unification, print method decoding. 2019-05-12 23:55:09 -04:00
Solomon Peachy bfd6e1b72a shinko: More common structs and definitions. 2019-05-12 23:42:10 -04:00
Solomon Peachy 63384d9657 shinko: MEDIA_TYPE_* definitions are common, and unify EK68x0 + S1245 errors 2019-05-12 13:20:04 -04:00
Solomon Peachy f8122b0236 shinko: Extract more common code. 2019-05-09 12:39:18 -04:00
Solomon Peachy 701e6a45a2 misc: Fix up a small pile of bugs found via static analysis. 2019-05-07 11:02:30 -04:00
Solomon Peachy 16e11039c7 shinko: Start pulling out common code into one place. 2019-05-06 17:29:57 -04:00
Solomon Peachy ed8e2f18b1 shinko: Some minor cleanups.
My goal here is to eventually unify these backends.
2019-05-06 13:38:09 -04:00
Solomon Peachy ce0fa508f0 sinfonia: Common header/job parsing code for Sinfonia models.
Covers:  S2145, S6145, S6245
2019-04-28 10:34:13 -04:00
Solomon Peachy 188b59ce37 misc: Update copyright year on files modified in 2019. 2019-02-17 21:54:38 -05:00
Solomon Peachy 295a921747 common: rename dyesub_read_data() to dyesub_read_file() 2019-01-13 20:09:04 -05:00
Solomon Peachy 54b253d655 common: Add a global function to read the contents of a file.
Most backends now utilize it.  The stragglers do something special.
2019-01-13 15:44:29 -05:00
Solomon Peachy 2e70eca4e1 all: Revamp "backend names" to align with gutenprint model names.
Should have done this to begin with, whoops.

(All old names are retained for backwards compatibility)
2018-09-22 09:11:14 -04:00
Solomon Peachy 1854a2eb3c shinko: Add support for media forcing to all shinko models. 2018-09-21 18:20:40 -04:00
Solomon Peachy b084dd9182 s6145: Do byteswapping of spool header as early as possible, once.
As well as being more efficient, this fixes a couple of bugs on BE
systems.
2018-07-02 10:24:35 -04:00
Solomon Peachy 7cb03db04e s6145: Move the RGB->YMC conversion to the read_parse function
(step towards doubling-up prints)
2018-06-17 20:06:04 -04:00
Solomon Peachy 51554069b9 many: Fix up memory leaks introduced in last commits. 2018-06-17 19:17:28 -04:00
Solomon Peachy fd9b38202e common: better split between parsing and printing.
parsing returns a self-contained job, which is then passed to printing
code.  No global state is modified.

mitsu 70x:
  Still need to move the image processing code to the print side.
2018-06-17 12:14:46 -04:00
Solomon Peachy f27eae0acf shinko: support TEST_MODE_NOATTACH 2018-05-12 21:51:59 -04:00
Solomon Peachy 390c5e2bf6 all: push printer type lookup into common code. 2018-05-09 23:09:01 -04:00
Solomon Peachy f6445cfb4d all: Don't query the marker state at attach time
As the backend->query_marker() call will do this.
2018-04-29 14:15:54 -04:00
Solomon Peachy 5669fb3552 all: add new marker query support to backends and rejigger as needed. 2018-04-29 11:03:46 -04:00
Solomon Peachy 06dbf0fa91 common: Change backend->attach API to allow status returns 2018-04-28 19:22:05 -04:00
Solomon Peachy fa2a54d29e misc: Fix a handful of bugs identified by clang-analyze 2018-04-27 10:17:16 -04:00
Solomon Peachy e99821f976 misc: Update the backend names. 2018-03-26 22:27:27 -04:00
Solomon Peachy 7939d501d7 all: Move all backend names into aliases tables.
Update all printer entries to have unique names.  As long as the USB
VID/PID is unique, each "backend" appears unique!
2018-03-16 15:35:00 -04:00
Solomon Peachy ad3409b600 It's 2018, update appropriately. 2018-02-22 06:02:49 -05:00
Solomon Peachy c824c549fb all: use BACKEND_CUPS_RETRY_CURRENT for memory allocation failures. 2018-02-16 10:49:21 -05:00
Solomon Peachy 5b40d2e216 All: Add 'SPDX-License-Identifier' headers to all source files.
(GPL-3.0+ for everything but the S6145 backend, which is GPL-3.0+
   with an additional permission)
2017-11-17 13:34:26 -05:00
Solomon Peachy 56cd04bd2a all: Clean up the manufacturer override field in the devices. 2017-11-08 19:19:00 -05:00
Solomon Peachy 487ccc9f71 Fix up bad whitespacing. 2017-07-10 20:15:56 -04:00
Solomon Peachy 11829f2f45 Merge a pile spelling fixes from Ville Skyttä <scop@sf> 2017-05-05 08:11:04 -04:00
Solomon Peachy 198a3645e2 s6145: Don't forget byteswapping. 2017-03-30 01:47:25 -04:00
Solomon Peachy 336e7677fd s6145: Allow the inout data to be supplied in planar YMC.
This means we won't have to do the conversion ourselves!
2017-03-29 10:20:53 -04:00
Solomon Peachy 182754c549 Get rid of some extra semicolons. 2016-12-15 09:37:31 -05:00
Solomon Peachy 200852270e Marker message should include media type where it's known. (continued) 2016-08-25 08:19:10 -04:00
Solomon Peachy 903caa8d32 s6145: Early work for the 6145-5A variant. (Card sizes)
Still a lot of unknowns here.
2016-08-22 12:36:12 -04:00
Solomon Peachy ea8e0b1f35 all: Fix up a a large pile of cppcheck warnings. 2016-08-21 10:23:00 -04:00
Solomon Peachy b210c5a5c0 all: Major updates to CUPS marker reporting
* use 'ribbonWax' instead of 'ink-ribbon'  (as per RFC)
 * return media type as the 'marker' name, if known or inferrable
 * Selphy CP series gained support
 * Mitsu D70 family gained support for uppper and lower decks
2016-08-19 17:40:12 -04:00
Solomon Peachy 41f5f688f7 All: Use 'ink-ribbon' instead of 'ribbon' for the supply type. 2016-08-17 23:54:08 -04:00
Solomon Peachy d696ed5aae shinkos6145: Add support for CUPS marker attributes
* Guessimate remaining ribbon percentage
2016-08-17 21:53:58 -04:00
Solomon Peachy 6604a8b283 shinkos6145: Hook into config.h if present. 2016-04-10 09:29:49 -04:00
Solomon Peachy 890fb2f04e s6145: Allow the backend to support libtool's ltdl. 2016-01-31 18:17:25 -05:00
Solomon Peachy 7866bba74a s6145: update comment. 2016-01-30 00:01:07 -05:00
Solomon Peachy 91b8d70b1b s6145: Don't lie about library loading success if we fail do resolve all symbols. 2016-01-27 15:21:18 -05:00
Solomon Peachy 69664f5076 shinkos6145: Get rid of the correction data check.
It belongs in the library.  There's no point in it being in the fallback
code.
2016-01-27 07:24:12 -05:00
Solomon Peachy 8e35e5608b all: It's 2016 now, update the copyright text.
Also, correct the initial dates for a few of the backends.
2016-01-24 09:44:19 -05:00
Solomon Peachy 69f817104a s6145: Fix some compile warnings on 32-bit platforms. 2016-01-22 19:47:42 -05:00
Solomon Peachy 1c3cfc996a all: Ensure all jobid-aware printers log the ID properly. 2016-01-20 13:40:11 -05:00
Solomon Peachy 3262b359da s6145: Fix sleep time set, and display the printer region code. 2016-01-17 17:08:05 -05:00
Solomon Peachy e8749e68fc Update documentation and displayed text. 2016-01-17 16:58:10 -05:00
Solomon Peachy 6740e1b085 s6145: some more endianness stuff. 2016-01-17 09:48:57 -05:00
Solomon Peachy f0a122f473 s6145: add support for dumping the eeprom.
Just following the recommended flow in the docs.
2016-01-17 09:48:57 -05:00
Solomon Peachy 23b6773b3a s6145: Documentation updates, and remove the WIP. 2016-01-14 18:05:00 -05:00
Solomon Peachy ef29c8dfa0 s6145: Switch to using dlopen for the image processing library.
Move the library build entirely out of this makefile, as it's really a
separate project.
2016-01-14 15:00:18 -05:00
Solomon Peachy b92d51dd47 s6145: minor corrections to the -Q option. 2016-01-13 22:52:14 -05:00
Solomon Peachy 5d70737cef s6145: Don't query last printer OC status in status dump.
First, it's not terribly useful anyway, but more importantly, it
isn't safe to call under some circumstances.
2016-01-13 19:44:50 -05:00
Solomon Peachy a4804f382d shinko_s6145: Add ability to dump image correction data.
Also, don't query the data if we don't need to.
2016-01-13 13:01:19 -05:00
Solomon Peachy 637da14020 s6145: Endianness corrections in the correction data checking. 2016-01-08 00:33:12 -05:00
Solomon Peachy 77023b85bc shinko_s6145: Make the build more intelligent with respect to the library
* backend reports which one is in use (internal,proprietary,r_eng)
 * make flags determine which one is used
 * only use proprietary one if we actually have one.
2016-01-05 22:36:30 -05:00
Solomon Peachy 173e1f1bc9 doc updates. 2016-01-04 23:03:50 -05:00
Solomon Peachy e2210fdde5 s6145: A couple of minor updtes for the Brava 21. 2016-01-03 21:57:39 -05:00
Solomon Peachy 732aaa5fbc We need libm for the library now. 2016-01-03 09:50:45 -05:00
Solomon Peachy 279eb36c9d s6145: more structure improvements 2016-01-02 10:20:24 -05:00
Solomon Peachy a561f53a31 s6145: Add some fixups for Big Endian systems. 2015-12-30 18:40:28 -05:00
Solomon Peachy 6780994523 Shinko s6145: Fix error detection in main loop. 2015-12-25 12:09:27 -05:00
Solomon Peachy 9d3ee7b3b5 s6145: Add in some missing bits.
...Unknown if they all work or not.
2015-12-17 21:50:47 -05:00
Solomon Peachy 94ed36424a s6145: Add USB Ids for the Ciaat Brava 21, aka CHC-S6145-5D 2015-12-17 20:55:00 -05:00
Solomon Peachy a050bc508f s6145: Add a lot of info about the correction data struct.
Obtained by reverse-engineering the binary library.
2015-12-10 00:19:34 -05:00
Solomon Peachy 28922e26c6 s6145: minor comment update 2015-12-07 22:41:27 -05:00
Solomon Peachy fd7a118c86 s6145: Correct calc_img_avg now that we've already converted input data.
Also update documentation.
2015-11-18 08:29:49 -05:00
Solomon Peachy 4ebf1a3cf9 s6145: Input data is *packed* RGB. Need to convert it to Planar YMC. 2015-11-17 22:29:12 -05:00
Solomon Peachy 15fa20c6cd s6145: Log when we're calling the library. 2015-11-17 22:15:01 -05:00
Solomon Peachy 62a6ec3d00 s6145: Fix build errors. 2015-11-17 22:13:05 -05:00
Solomon Peachy 82c5db5b20 s6145: Sinfonia's library needs YMC data input. 2015-11-17 22:10:57 -05:00
Solomon Peachy 462cd055a7 s6145: Simplify stripe generation. 2015-11-17 21:54:04 -05:00
Solomon Peachy 03ce7201b5 s6145: rename 'OP_MODE' to 'OC_MODE' and fix lamination data generation 2015-11-17 21:47:11 -05:00
Solomon Peachy 473a679790 s6145: Fix error in computing row width. 2015-11-17 21:40:18 -05:00
Solomon Peachy e3ab426355 s6145: helps to increment the data pointer. 2015-11-17 20:58:20 -05:00
Solomon Peachy 63a35d54e2 s6145: Apparently we have to pad the output data. 2015-11-17 20:40:54 -05:00
Solomon Peachy 96a946c676 s6145: Adjust CalcAvg() to return Cyan rather than Blue channel. 2015-11-17 20:04:44 -05:00
Solomon Peachy 683c76ee43 s6145: Fix an inverted test. 2015-11-17 19:35:17 -05:00
Solomon Peachy f6ce3ef781 s6145: Human-readable decoding of params. 2015-11-17 19:32:59 -05:00