mitsu: Set the 'is_raw' flag after processing 8bpp input into native

...This will prevent double-processing.
This commit is contained in:
Solomon Peachy 2024-01-20 20:55:33 -05:00
parent 12f8c1c231
commit a047969950
3 changed files with 7 additions and 3 deletions

View File

@ -1870,6 +1870,7 @@ static int mitsu70x_main_loop(void *vctx, const void *vjob, int wait_for_return)
ret = be16_to_cpu(hdr->lamcols) * be16_to_cpu(hdr->lamrows) * 2;
memset(job->databuf + job->datalen, 0, job->matte - ret);
}
job->raw_format = 1;
bypass:
/* Bypass */
@ -2618,7 +2619,7 @@ static const char *mitsu70x_prefixes[] = {
/* Exported */
const struct dyesub_backend mitsu70x_backend = {
.name = "Mitsubishi CP-D70 family",
.version = "0.109" " (lib " LIBMITSU_VER ")",
.version = "0.110" " (lib " LIBMITSU_VER ")",
.flags = BACKEND_FLAG_DUMMYPRINT,
.uri_prefixes = mitsu70x_prefixes,
.cmdline_usage = mitsu70x_cmdline,

View File

@ -1128,6 +1128,7 @@ static int mitsu9550_main_loop(void *vctx, const void *vjob, int wait_for_return
return i;
}
}
job->is_raw = 1;
non_98xx:
/* Bypass */
@ -1641,7 +1642,7 @@ static const char *mitsu9550_prefixes[] = {
/* Exported */
const struct dyesub_backend mitsu9550_backend = {
.name = "Mitsubishi CP9xxx family",
.version = "0.70" " (lib " LIBMITSU_VER ")",
.version = "0.71" " (lib " LIBMITSU_VER ")",
.uri_prefixes = mitsu9550_prefixes,
.cmdline_usage = mitsu9550_cmdline,
.cmdline_arg = mitsu9550_cmdline_arg,

View File

@ -1578,6 +1578,8 @@ static int mitsud90_main_loop(void *vctx, const void *vjob, int wait_for_return)
job->hdr.oprate = ctx->lib.M1_CalcOpRateGloss(output.rows,
output.cols);
}
job->is_raw = 1;
}
/* Bypass */
@ -2643,7 +2645,7 @@ static const char *mitsud90_prefixes[] = {
/* Exported */
const struct dyesub_backend mitsud90_backend = {
.name = "Mitsubishi CP-D90/CP-M1/CP-W5000",
.version = "0.50" " (lib " LIBMITSU_VER ")",
.version = "0.51" " (lib " LIBMITSU_VER ")",
.flags = BACKEND_FLAG_DUMMYPRINT,
.uri_prefixes = mitsud90_prefixes,
.cmdline_arg = mitsud90_cmdline_arg,