libmitsu: Recognize SilverLab-branded media
This commit is contained in:
parent
e82aeb6918
commit
fb0fae779b
|
@ -313,6 +313,9 @@ const char *mitsu_media_types(int printer, uint8_t brand, uint8_t type)
|
|||
return "CK-D769 (6x9)";
|
||||
else if (type == 0x0f)
|
||||
return "CK-D768 (6x8)";
|
||||
} else if (brand == 0xe0) { /* SilverLab */
|
||||
if (type == 0x0f)
|
||||
return "CK-D868 SL (6x8)";
|
||||
} else if (brand == 0x61) { /* Mitsubishi (K60 series & W5000 series) */
|
||||
if (type == 0x84)
|
||||
return "CK-K57R (5x7)";
|
||||
|
@ -351,19 +354,20 @@ const char *mitsu_media_types(int printer, uint8_t brand, uint8_t type)
|
|||
return "DNP 6x8";
|
||||
else if (type == 0x90)
|
||||
return "DNP 4x8";
|
||||
} else { /* Default fallback */
|
||||
if ((type & 0xf) == 0x01)
|
||||
return "Unknown (3.5x5)";
|
||||
else if ((type & 0xf) == 0x02)
|
||||
return "Unknown (4x6)";
|
||||
else if ((type & 0xf) == 0x04)
|
||||
return "Unknown (5x7)";
|
||||
else if ((type & 0xf) == 0x05)
|
||||
return "Unknown (6x9)";
|
||||
else if ((type & 0xf) == 0x0f)
|
||||
return "Unknown (6x8)";
|
||||
}
|
||||
|
||||
/* Default fallback */
|
||||
if ((type & 0xf) == 0x01)
|
||||
return "Unknown (3.5x5)";
|
||||
else if ((type & 0xf) == 0x02)
|
||||
return "Unknown (4x6)";
|
||||
else if ((type & 0xf) == 0x04)
|
||||
return "Unknown (5x7)";
|
||||
else if ((type & 0xf) == 0x05)
|
||||
return "Unknown (6x9)";
|
||||
else if ((type & 0xf) == 0x0f)
|
||||
return "Unknown (6x8)";
|
||||
|
||||
return "Unknown";
|
||||
|
||||
// Also CK-D746-U for D70-U model
|
||||
|
|
|
@ -96,7 +96,7 @@ typedef int (*CPD30_DoConvertFN)(const struct mitsu_cpd30_data *table,
|
|||
|
||||
#define REQUIRED_LIB_APIVERSION 10
|
||||
|
||||
#define LIBMITSU_VER "0.12"
|
||||
#define LIBMITSU_VER "0.13"
|
||||
|
||||
/* Image processing library function prototypes */
|
||||
#define LIB_NAME_RE "libMitsuD70ImageReProcess" DLL_SUFFIX
|
||||
|
|
Loading…
Reference in a new issue