Commit graph

69 commits

Author SHA1 Message Date
Solomon Peachy aaa63cac89 mitsu70x: Support Mitsubishi CP-K60DW-S "HG" media
Apparently there's a "media subtype' field, and HG media needs a
different calibration data file.
2021-05-14 09:15:03 -04:00
Solomon Peachy e450d6f496 mitsud90: Initial support for the Fujifilm ASK-500
Looks to be a near-identical clone of the CP-M1 series, albeit with
different color curves and no LUT.

Currently untested, as I don't know the USB VID/PID.  Gutenprint
support not yet committed.
2021-03-15 17:08:43 -04:00
Solomon Peachy fde51ddcf4 mitsu_m1: Add support for new "vivid" color profile
(the new "natural" profile is identical to the old standard one)
2020-12-25 20:28:20 -05:00
Solomon Peachy c14dc23de3 lib70x: Library enhancements for CP30D family
* 3D LUT processed in planar format
 * Sharpening support (not implemented yet)
2020-12-05 18:42:46 -05:00
Solomon Peachy e1eb2692f8 mitsu cp30dw: Add LUT filename. 2020-11-28 21:59:35 -05:00
Solomon Peachy 1bd14cff80 Pull image processing announcement blurbs into the main program 2020-08-11 13:25:33 -04:00
Solomon Peachy c096b741a3 lib70x: get rid of some printf()s 2020-08-11 12:58:19 -04:00
Solomon Peachy d88aa836a6 further documentation updates 2020-08-10 08:04:05 -04:00
Solomon Peachy 458b80af55 lib70x: Fix 64-bit float byte order conversion
(Data tables are IEEE754 Big Endian)
2020-06-08 19:48:58 -04:00
Solomon Peachy 3fd61640e4 lib70x: Fix multiple errors in the CP98xx gamma code. 2020-06-08 19:48:42 -04:00
Solomon Peachy 75583174a7 lib70x: Hopefully fix a reverse image problem for the cp98xx series 2020-06-04 20:04:37 -04:00
Solomon Peachy 6474364125 lib70x: Clean up a few variable names. No functional change. 2020-03-21 22:11:57 -04:00
Solomon Peachy 22c1fb9202 mitsu_m1: Add ICC profile and updated gamma table for CP-M1 and CP-M15 2020-03-20 09:41:12 -04:00
Solomon Peachy 5a7adc735c Update data file READMEs 2020-03-07 23:57:12 -05:00
Solomon Peachy 559ab272f3 mitsu: Update documentation on a couple of structures 2020-03-06 08:55:52 -05:00
Solomon Peachy 913af03b57 misc: Update copyright year in the program output.
(File headers were correct, but interactive use was wrong..)
2020-03-03 18:48:33 -05:00
Solomon Peachy 4c5e93811e misc: Fix a small pile of static analysis problems 2020-03-03 00:16:05 -05:00
Solomon Peachy f697ccbffe mitsu_m1: Update READMEs and other documentation. 2020-03-02 23:32:11 -05:00
Solomon Peachy 5e19a0787e lib70x: Bump version. 2020-03-02 23:17:35 -05:00
Solomon Peachy 40312f5c0b mitsu_m1: Move all image processing code into library. 2020-03-02 23:12:32 -05:00
Solomon Peachy 5887d248b7 lib70x: Eliminate some dead debug code 2020-02-29 16:12:56 -05:00
Solomon Peachy eeeda9a116 misc: Use GCC builtins for byteswapping.
(On most CPUs this translates to single-cycle operations.  1.2% binary
size shrink on x86_64, for example)
2020-02-26 16:02:42 -05:00
Solomon Peachy 5fe0fd3cda lib70x: A few more documentation/comment updates. 2020-02-24 08:39:16 -05:00
Solomon Peachy 11d301e46b lib70x: Correct a subtle color correction bug
Initialized the wrong data structure, causing faint ghosting in very light
areas closer to the start of the print/.

This was first reported on the K60 and EK305, but presumably affected
all members of the family.
2020-02-20 22:07:19 -05:00
Solomon Peachy 86b49ccd70 lib70x: Comments and other docs updated. 2020-02-20 11:56:14 -05:00
Solomon Peachy 023df719c6 lib70x: Bugfixes for cp98xx gamma table generation and application
(And a pile of minor readability improvements)
2020-02-19 20:43:18 -05:00
Solomon Peachy 976fc628d6 build: Improvements around testing
* Consolidate backend data files into one place
 * Use local (ie not-system) for test targets
 * Build dependency fixes
2020-02-17 10:44:54 -05:00
Solomon Peachy bd65001ca4 lib70x: Fix a logic error introduced by unsigned integer underflow 2020-02-16 16:56:09 -05:00
Solomon Peachy 494a188f1a common: Allow CORRTABLE_PATH to be overrided at runtime. 2020-02-16 16:20:47 -05:00
Solomon Peachy e3120aa9bc Mitsubishi CP-M1 data files 2020-02-16 14:06:32 -05:00
Solomon Peachy 8a135cbda4 lib70x: 98xx input data is BGR. Mitsu code assumes RGB! 2020-02-14 11:28:23 -05:00
Solomon Peachy 8702af49b2 lib70x: Corrected errors in the 98xx gamma code.
* Figured out the in_r8 and in_r9 parameters (always set)
  * Fixed bad loop initializers in Gamma Table setup
  * Minor readability improvements
2020-02-14 11:24:22 -05:00
Solomon Peachy 763028f111 lib70x: Wrong Blue->Yellow gamma base used in the CP98xx gamma code. 2020-02-14 10:28:16 -05:00
Solomon Peachy 07e5bc3d9b lib70x: Fix Sharp_CopyLine()
As part of the copyline function, we have to fill in the "extra"
head/tailroom on either end.  Headroom was done correctly, but tailroom
was not, instead overwriting the head room of of the next row.

This probably has no visible effect on the image, but it was incorrect.
2020-02-14 07:32:04 -05:00
Solomon Peachy 014fc03d8d lib70x: More commenting cleanups.
* Re-enabled some redundant code just for accuracy's sake
 * Added a (disabled) "workaround" for EK305/K60 data table quirk
2020-02-14 06:59:56 -05:00
Solomon Peachy 950cd7b0b2 lib70x: Minor cleanups. No functional changes. 2020-02-13 10:47:27 -05:00
Solomon Peachy ef666ba37e mitsu98xx: Significant fixes
* Cleanup library code loop conditionals
 * Reverse row data if needed
 * Convert packed YMC16 to planar YMC16
 * Send data to printer last row first (ie matching processing flow)
2020-02-12 20:07:03 -05:00
Solomon Peachy 1a3216b40f lib70x: Some more fixes I missed. 2020-02-11 16:53:20 -05:00
Solomon Peachy 561eb90a61 mitsu98xx: Implement proper gamma correction code in lib70x
- Bump version & API version
 - Move all table loading and manipulation out of mitsu9550 backend
 - Everything but sharpening is implemented
 - COMPLETELY UNTESTED!
2020-02-11 11:15:57 -05:00
Solomon Peachy c8568147b4 lib70x: Fix a compile warning. 2020-02-10 13:46:27 -05:00
Solomon Peachy d53173b84e lib70x: Had a '> 0' instead of a '>= 0' in a black compensation test.
A couple of other readibility improvements.
2020-02-07 17:18:37 -05:00
Solomon Peachy 9c0eba4acb lib70x: Minor updates; no fuctional changes. 2020-02-07 00:01:04 -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 d0d6ef32b4 misc: Clean up endian macros, eliminate use of ntohs and friends. 2020-01-25 07:33:52 -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 f8dc40cf90 Fix boneheaded bug in lib70x code. 2019-12-03 07:16:10 -05:00
Solomon Peachy 7647aa7c3a Build: Use 'pkg-config' to figure out where to put backend data files.
(If it doesn't work, then default to '/usr/local/')
2019-10-15 22:09:24 -04:00
Solomon Peachy edd1facf8c lib70x: Fix a compilation warning. 2019-10-15 22:09:03 -04:00
Solomon Peachy 4e435ae533 all: compile with -D_FORTIFY_SOURCE=2
We'll see how this goes.
2019-07-01 09:36:42 -04:00
Solomon Peachy 70b10a55dd misc: It's 'Fujifilm', not 'Fuji' 2019-05-26 22:35:44 -04:00