Commit Graph

172 Commits

Author SHA1 Message Date
Solomon Peachy cfe0fd8004 common: the 'dyesub_backend' structure is now const everywhere. 2020-10-05 22:27:08 -04:00
Solomon Peachy 3417c4e8c9 s2245: Enable combining 2x(2x6*2) jobs into a single 2x6*4 job 2020-08-26 20:24:35 -04:00
Solomon Peachy 322ad8d7b7 common: Introduce a common USB connection object, and use it! 2020-08-12 20:04:54 -04:00
Solomon Peachy 1bd14cff80 Pull image processing announcement blurbs into the main program 2020-08-11 13:25:33 -04:00
Solomon Peachy 27181eda63 common: un-hardcode 'stderr' as the logging stream
It's now a global variable that's initialized to stderr
(This is prep work for eventual support of printing applications)
2020-08-11 12:48:38 -04:00
Solomon Peachy 18d4834a2b s2245: Only fetch the correction data if our needs haven't changed 2020-08-08 17:01:12 -04:00
Solomon Peachy 8244e13db1 s6145: Handle the CS2-c / S6145-5A "hashtag" printer's native media size 2020-08-08 16:36:23 -04:00
Solomon Peachy e11561f54e s2245: Fix inverted test in the imageproc call
Printer now generates output!

(Completely trashed unusable pit of darkness, but hey, it's _something_!)
2020-08-04 21:01:59 -04:00
Solomon Peachy f19632c098 s6145: lots of fixes 2020-08-04 20:52:01 -04:00
Solomon Peachy d77b030b2e s6145: Minor tweak to the new corrdata management code. 2020-08-02 09:32:14 -04:00
Solomon Peachy 70a495eabb shinkos6145: Major additions
* Remove S6145 fallback code if there is no library found.
   (Quality was very poor, and I'm not going to make a version for
    the S2245)
 * Remove most awareness of the S6145 correction data structure, and make
   the corrdata structure an opaque blob + len., and get rid of the
   extra padding.  Except for what we need to pass in the print parameters.
 * Attach to the S2245 library if needed
 * S2245 library in the printing flow.
2020-08-02 00:34:31 -04:00
Solomon Peachy 9875b026ad shinkos2245: Further improvements:
* Support setting image quality in the print command
 * Error code list improved.
 * Correct image correction data queries
 * Better documentation
 * Fix settime call

 Still broken:

    * Corrdata parsing
    * Print 'mode' enumeration (possibly media checking too)
    * And Printing, duh.
2020-07-30 00:07:32 -04:00
Solomon Peachy 0e59dd80f5 shinkos2245: Lots of bugfixes.
 * status query
 * firmware version query
 * media query
 * eeprom dump
 * corrtable dump
 * partial errorlog dump

 * corrtable parsing (differs from S6145.. sigh)
 * print command decoding (ditto)
 * actual printing (after the brokenness)
2020-07-29 13:03:01 -04:00
Solomon Peachy c8b9c7fa95 s2245: fix identification dump.
(untested bla bla bla)
2020-07-01 00:38:23 -04:00
Solomon Peachy f79500986f misc: Shut up a large pile of compile warnings with pedantic compilers 2020-03-24 18:23:00 -04:00
Solomon Peachy 53ffda7aad misc: consolidate <config.h> inclusion 2020-03-13 09:03:11 -04:00
Solomon Peachy 3d01e35e5e 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!
2020-01-31 11:34:08 -05:00
Solomon Peachy 697486b467 All: Leave the "prefix" list for family or backwards-compatible names only.
...use the name in the DEVICE entry for backend matches!
2020-01-30 22:08:55 -05:00
Solomon Peachy 9abe62b115 build: MinGW now compiles selphy_print cleanly.
Need to test it out. Especially the dynamic DLL loading.
2020-01-26 00:41:48 -05:00
Solomon Peachy d6109815c9 shinkos6145: corrdata size is always under 64K. So don't use size_t. 2020-01-26 00:30:06 -05:00
Solomon Peachy d4b8ec0bc3 common: Move dynamic libary loading definitions into common header. 2020-01-26 00:24:33 -05:00
Solomon Peachy a30fa619f1 misc: Correct a small pile of cppcheck/scan-build warnings.
No actual bugs, thankfully.
2020-01-22 11:25:06 -05:00
Solomon Peachy 626a49f05d Misc: Update address for FSF.
Also fix the copyright year for a few files.
2020-01-17 16:50:56 -05:00
Solomon Peachy beed73bc9d ek6800/s1245: Support generic status queries. 2019-12-17 13:21:23 -05:00
Solomon Peachy 131765cedc sinfonia: Support generic stats query across most models.
(Everything but the s1245)
2019-12-16 11:00:35 -05:00
Solomon Peachy 13d62550f3 common: Add proper definitions for special CUPS marker levels.
And report STATE(media-empty) globally based on this.
2019-12-11 23:20:04 -05:00
Solomon Peachy 1fe3a6066b all: Pass the USB bInterfaceNum into the backend attach() function. 2019-11-02 09:12:30 -04:00
Solomon Peachy 92eaaa626c kodak6900: I think I've found the USB VID/PID 2019-10-28 20:01:28 -04:00
Solomon Peachy 29958fd9ee misc: Fix some compile warnings. 2019-10-18 16:53:18 -04:00
Solomon Peachy b3867f7af0 misc: When there is more than once copy count source, use the largest. 2019-10-18 14:17:51 -04:00
Solomon Peachy a5969017cf s2245: Send over the correct print command.
Printing might actually work!
2019-10-05 19:59:51 -04:00
Solomon Peachy c1b15c1fbb all: Clean up unnecessary #include 2019-09-28 11:05:42 -04:00
Solomon Peachy 9b3ae0ed5b all: Report up the low-level media ID as a PPD attribute.
(Needs changes to Gutenprint in order to be useful...)
2019-09-28 10:54:10 -04:00
Solomon Peachy 183c68a431 sinfonia: Further dumpall enhancements. 2019-09-22 00:16:00 -04:00
Solomon Peachy 6c7881679d sinfonia: More cleanups:
* Command execution error handling revamped
 * Centralized parameter lists
 * Figuring out parameters for EK8810 and EK7000
2019-09-22 00:08:05 -04:00
Solomon Peachy 128050cfad sinfonia: Add ability to dump all parameters. 2019-09-19 15:53:43 -04:00
Solomon Peachy 1f27acbfc8 sinfonia: The 'Set Tone Curve' calls were using the wrong IDs. 2019-09-19 15:06:35 -04:00
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