Commit Graph

185 Commits

Author SHA1 Message Date
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
Solomon Peachy 28199d6955 s6145: Query all params. 2015-11-17 19:28:09 -05:00
Solomon Peachy e8873e3cbe s6145: Fix get_param length. 2015-11-16 23:50:44 -05:00
Solomon Peachy 1fe693ad5e s6145: log things. 2015-11-16 23:48:03 -05:00
Solomon Peachy f6c205b13f s6145: Query current mode before trying to set new oc_mode. 2015-11-16 23:46:37 -05:00
Solomon Peachy 2fc61dd615 ...
o
2015-11-16 23:11:44 -05:00
Solomon Peachy 3dbcb6dd4a s6145: log more. 2015-11-16 23:10:28 -05:00
Solomon Peachy 23ef5363a9 s6145: more fixes. 2015-11-16 23:08:34 -05:00
Solomon Peachy bd2d4f8da3 s6145: more fixes. 2015-11-16 23:06:42 -05:00
Solomon Peachy 537a859765 s6145: Fix correction data fetch. 2015-11-16 23:04:13 -05:00
Solomon Peachy 21f92472fc 6145: log stuff. 2015-11-16 22:40:42 -05:00
Solomon Peachy 43c3d3d905 s6145: Fix OP_PRINT set. 2015-11-16 22:34:42 -05:00
Solomon Peachy 8e087999fb s6145: Scale output based on color tables in the correction data. Also
respect the max value.
2015-11-16 13:27:23 -05:00
Solomon Peachy 1498fa85cf s6145: Fix RGB->YMC conversion. Stupid printer. 2015-11-14 15:51:23 -05:00
Solomon Peachy b1f635eb7c s6145: Forgot to convert from RGB->CMY 2015-11-14 15:40:34 -05:00
Solomon Peachy faf37a8be7 s6145: Add a very crude replacement for lib6145's ImageProcessing()
It just linearly scales the value from 8-bit to 12-bit.
2015-11-14 15:31:56 -05:00
Solomon Peachy ef472cb227 s6145: more structure documentation. 2015-08-30 16:50:20 -04:00
Solomon Peachy 5c415bc4b6 s6145: Figured out some differences between matte and glossy image params 2015-08-30 15:57:51 -04:00
Solomon Peachy 64bf1fac0b shinko_s6145: Add an explicit exception to the GPLv3 license to allow
combining and/or redistributing this backend along with the proprietary
libS6145ImageProcess library, provided all other terms of both licenses
are adhered to.

And no, I do *not* have redistribution rights to the library, and I am
(slowly) attempting to reverse-engineer it.
2015-08-29 14:47:25 -04:00
Solomon Peachy 5dda0018d2 all: Get rid of a little more getopt detritus. 2015-08-25 22:47:26 -04:00
Solomon Peachy b343d56f1e all: Get rid of the remainder of the old two-stage cmdline parsing
All backend->cmdline_arg() invocations are done with intent to execute!
2015-08-24 18:49:51 -04:00
Solomon Peachy cc87cd1cc3 all: Add some print quantity range checks where we can.
Most backends don't verify against remaining media though.
2015-08-20 23:22:35 -04:00
Solomon Peachy 175f6a52d8 all: For printers that automatically generate copies, get rid of
leftover manual copy handling code.

The exception is the dnp backend, it needs do use manual copies under
some situations.
2015-08-20 23:13:52 -04:00
Solomon Peachy d4f00ec378 shinkos6145: Continuing to reverse-engineer the image correction blob 2015-08-19 20:01:52 -04:00
Solomon Peachy 813e3dc7b3 s6145: Ensure the print method is legal for the given print job. 2015-08-16 21:57:17 -04:00
Solomon Peachy 2f79246f81 s6145: Fix incorrect structure for media information 2015-08-16 18:23:43 -04:00
Solomon Peachy ab5fcdbe58 s6145: More fixes. 2015-08-16 16:17:26 -04:00
Solomon Peachy 27db7e69a7 s6145: Trying to decode the image correction parameter. 2015-08-16 14:50:26 -04:00
Solomon Peachy cdb10f5b36 s6145: ImageAvrCalc() really just does what it claims with no side-effects
...so re-implement it.
2015-08-16 11:41:53 -04:00
Solomon Peachy 2c9652818a s6145: Fix compilation with libs6145. 2015-08-16 11:41:50 -04:00
Solomon Peachy db0c7d8b99 all: Eliminate the multi-stage cmdline parsing.
Unfortunately this means we lose the '-B backend' method, but the
overall control flow is much, much simpler now.
2015-08-13 21:09:56 -04:00
Solomon Peachy de8a32424c all: Unified approach to extra_vid/pid/type
This required a modification to all attach() methods.

Also, fix canonselphy's parsing/attachment code.
2015-08-12 22:56:29 -04:00
Solomon Peachy 20f6d05b8a common: Rework the early cmdline argument parsing code to improve robustness
Also move fast_return out of individual backends and into common code.
2015-08-12 21:02:11 -04:00
Solomon Peachy b3718e1f12 s6145: More fixes. 2015-07-27 22:08:56 -04:00
Solomon Peachy 1783bdb3c4 shinko_s6145: Add initial support for the binary 6145 library.
...In the hope that this can be replaced.
2015-07-27 21:22:25 -04:00
Solomon Peachy 114202d7f5 shinko6145: Add a preliminary backend. Does NOT include library work. 2015-07-26 23:05:21 -04:00