summaryrefslogtreecommitdiffstats
path: root/lib70x/libMitsuD70ImageReProcess.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2017-03-19 19:29:37 -0400
committerSolomon Peachy <pizza@shaftnet.org>2017-03-19 19:29:37 -0400
commit400e94ee562043427f1b488e1ff8033dd25334be (patch)
treee44b81c63d0ac3399f378d465af4371ab5871da5 /lib70x/libMitsuD70ImageReProcess.h
parentdcffc77419d59db157c1950f9a371106012f4148 (diff)
downloadselphy_print-400e94ee562043427f1b488e1ff8033dd25334be.tar.gz
selphy_print-400e94ee562043427f1b488e1ff8033dd25334be.tar.bz2
selphy_print-400e94ee562043427f1b488e1ff8033dd25334be.zip
mitsu70x: Major update.
Long story short, Library was sending rows in the wrong order, but to fix this, the row data needed to be reversed so the images weren't mirrored. Library given an extension (and API bump) to allow it to swap if necessary. Backend tells library to swap unless Gutenprint is feeding data in that is in the correct order. For Gutenprint 5.2.12, this code will reverse the data. Future Gutenprint releases will do the right thing so no swapping is needed.
Diffstat (limited to 'lib70x/libMitsuD70ImageReProcess.h')
-rw-r--r--lib70x/libMitsuD70ImageReProcess.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib70x/libMitsuD70ImageReProcess.h b/lib70x/libMitsuD70ImageReProcess.h
index e8a254e..665dacf 100644
--- a/lib70x/libMitsuD70ImageReProcess.h
+++ b/lib70x/libMitsuD70ImageReProcess.h
@@ -49,6 +49,8 @@
#ifndef __MITSU_D70_H
#define __MITSU_D70_H
+#define LIB_APIVERSION 4
+
#include <stdint.h>
/* Defines an image. Note that origin_cols/origin_rows should always = 0 */
@@ -79,13 +81,13 @@ void destroy_CPCData(struct CPCData *data);
Returns 0 if successful, non-zero for error */
int do_image_effect70(struct CPCData *cpc, struct CPCData *ecpc,
struct BandImage *input, struct BandImage *output,
- int sharpen, uint8_t rew[2]);
+ int sharpen, int reverse, uint8_t rew[2]);
int do_image_effect60(struct CPCData *cpc, struct CPCData *ecpc,
struct BandImage *input, struct BandImage *output,
- int sharpen, uint8_t rew[2]);
+ int sharpen, int reverse, uint8_t rew[2]);
int do_image_effect80(struct CPCData *cpc, struct CPCData *ecpc,
struct BandImage *input, struct BandImage *output,
- int sharpen, uint8_t rew[2]);
+ int sharpen, int reverse, uint8_t rew[2]);
/* Converts the packed 16bpp YMC image into 16bpp YMC planes, with
proper padding after each plane. Calls the callback function for each