summaryrefslogtreecommitdiffstats
path: root/backend_mitsu.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-02-08 22:38:27 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-02-11 11:15:57 -0500
commit45185f541a4239c0ac10a7cfcb37c195db876de1 (patch)
tree5c70dbd754245e23dcc287ba2ba15fa9140ff677 /backend_mitsu.c
parentdf35abeb96c8ef7f51b35ba51df764dc2ede08d4 (diff)
downloadselphy_print-45185f541a4239c0ac10a7cfcb37c195db876de1.tar.gz
selphy_print-45185f541a4239c0ac10a7cfcb37c195db876de1.tar.bz2
selphy_print-45185f541a4239c0ac10a7cfcb37c195db876de1.zip
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!
Diffstat (limited to 'backend_mitsu.c')
-rw-r--r--backend_mitsu.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/backend_mitsu.c b/backend_mitsu.c
index 7e9c6da..eb79653 100644
--- a/backend_mitsu.c
+++ b/backend_mitsu.c
@@ -29,11 +29,11 @@
int mitsu_loadlib(struct mitsu_lib *lib, int type)
{
- DL_INIT();
-
memset(lib, 0, sizeof(*lib));
#if defined(WITH_DYNAMIC)
+ DL_INIT();
+
DEBUG("Attempting to load image processing library\n");
lib->dl_handle = DL_OPEN(LIB_NAME_RE);
if (!lib->dl_handle)
@@ -62,7 +62,12 @@ int mitsu_loadlib(struct mitsu_lib *lib, int type)
lib->DoImageEffect70 = DL_SYM(lib->dl_handle, "do_image_effect70");
lib->DoImageEffect80 = DL_SYM(lib->dl_handle, "do_image_effect80");
lib->SendImageData = DL_SYM(lib->dl_handle, "send_image_data");
+ lib->CP98xx_DoConvert = DL_SYM(lib->dl_handle, "CP98xx_DoConvert");
+ lib->CP98xx_GetData = DL_SYM(lib->dl_handle, "CP98xx_GetData");
+ lib->CP98xx_DestroyData = DL_SYM(lib->dl_handle, "CP98xx_DestroyData");
if (!lib->Load3DColorTable ||
+ !lib->CP98xx_DoConvert || !lib->CP98xx_GetData ||
+ !lib->CP98xx_DestroyData ||
!lib->Destroy3DColorTable || !lib->DoColorConv ||
!lib->GetCPCData || !lib->DestroyCPCData ||
!lib->DoImageEffect60 || !lib->DoImageEffect70 ||
@@ -88,12 +93,16 @@ int mitsu_loadlib(struct mitsu_lib *lib, int type)
case P_FUJI_ASK300:
lib->DoImageEffect = lib->DoImageEffect70;
break;
+ case P_MITSU_9800:
+ case P_MITSU_9800S:
+ case P_MITSU_9810:
default:
lib->DoImageEffect = NULL;
}
return CUPS_BACKEND_OK;
#else
+ ERROR("Need dynamic library support for library loading!\n");
return CUPS_BACKEND_FAILED;
#endif
}