escp2-resolutions.c [plain text]
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <gimp-print/gimp-print.h>
#include "gimp-print-internal.h"
#include <gimp-print/gimp-print-intl-internal.h>
#include "print-escp2.h"
static const res_t r_360x90dpi =
{ "360x90dpi", N_("360 x 90 DPI Fast Economy"),
360, 90, 360, 90, 0, 0, 1 };
static const res_t r_360x90sw =
{ "360x90sw", N_("360 x 90 DPI Fast Economy"),
360, 90, 360, 90, 1, 0, 1 };
static const res_t r_360x120dpi =
{ "360x120dpi", N_("360 x 120 DPI Economy"),
360, 120, 360, 120, 0, 0, 1 };
static const res_t r_360x120sw =
{ "360x120sw", N_("360 x 120 DPI Economy"),
360, 120, 360, 120, 1, 0, 1 };
static const res_t r_180dpi =
{ "180dpi", N_("180 DPI Economy"),
180, 180, 180, 180, 0, 0, 1 };
static const res_t r_180sw =
{ "180sw", N_("180 DPI Economy"),
180, 180, 180, 180, 1, 0, 1 };
static const res_t r_360x180dpi =
{ "360x180dpi", N_("360 x 180 DPI Draft"),
360, 180, 360, 180, 0, 0, 1 };
static const res_t r_360x180sw =
{ "360x180sw", N_("360 x 180 DPI Draft"),
360, 180, 360, 180, 1, 0, 1 };
static const res_t r_360x240dpi =
{ "360x240dpi", N_("360 x 240 DPI Draft"),
360, 240, 360, 240, 0, 0, 1 };
static const res_t r_360x240sw =
{ "360x240sw", N_("360 x 240 DPI Draft"),
360, 240, 360, 240, 1, 0, 1 };
static const res_t r_360mw =
{ "360mw", N_("360 DPI High Quality"),
360, 360, 360, 360, 0, 1, 1 };
static const res_t r_360pro =
{ "360pro", N_("360 DPI"),
360, 360, 360, 360, 0, 1, 1 };
static const res_t r_360 =
{ "360", N_("360 DPI"),
360, 360, 360, 360, 0, 0, 1 };
static const res_t r_360sw =
{ "360sw", N_("360 DPI"),
360, 360, 360, 360, 1, 0, 1 };
static const res_t r_720x360mw =
{ "720x360mw", N_("720 x 360 DPI"),
720, 360, 720, 360, 0, 1, 1 };
static const res_t r_720x360sw =
{ "720x360sw", N_("720 x 360 DPI"),
720, 360, 720, 360, 1, 0, 1 };
static const res_t r_720mw =
{ "720mw", N_("720 DPI"),
720, 720, 720, 720, 0, 1, 1 };
static const res_t r_720sw =
{ "720sw", N_("720 DPI"),
720, 720, 720, 720, 1, 0, 1 };
static const res_t r_720hq =
{ "720hq", N_("720 DPI High Quality"),
720, 720, 720, 720, 1, 0, 2 };
static const res_t r_720hq2 =
{ "720hq2", N_("720 DPI Highest Quality"),
720, 720, 720, 720, 1, 0, 4 };
static const res_t r_1440x720mw =
{ "1440x720mw", N_("1440 x 720 DPI"),
1440, 720, 1440, 720, 0, 1, 1 };
static const res_t r_1440x720sw =
{ "1440x720sw", N_("1440 x 720 DPI"),
1440, 720, 1440, 720, 1, 0, 1 };
static const res_t r_1440x720hq2 =
{ "1440x720hq2", N_("1440 x 720 DPI Highest Quality"),
1440, 720, 1440, 720, 1, 0, 2 };
static const res_t r_2880x720mw =
{ "2880x720mw", N_("2880 x 720 DPI"),
2880, 720, 2880, 720, 0, 1, 1};
static const res_t r_2880x720sw =
{ "2880x720sw", N_("2880 x 720 DPI"),
2880, 720, 2880, 720, 1, 0, 1};
static const res_t r_2880x720hq2 =
{ "2880x720hq2", N_("2880 x 720 DPI Highest Quality"),
2880, 720, 2880, 720, 1, 0, 2 };
static const res_t r_1440x1440mw =
{ "1440x1440mw", N_("1440 x 1440 DPI"),
1440, 1440, 1440, 1440, 0, 1, 1};
static const res_t r_1440x1440sw =
{ "1440x1440sw", N_("1440 x 1440 DPI"),
1440, 1440, 1440, 1440, 1, 0, 1};
static const res_t r_1440x1440ov =
{ "1440x1440ov", N_("1440 x 1440 DPI"),
2880, 1440, 1440, 1440, 1, 0, 1};
static const res_t r_2880x1440mw =
{ "2880x1440mw", N_("2880 x 1440 DPI"),
2880, 1440, 2880, 1440, 0, 1, 1};
static const res_t r_2880x1440sw =
{ "2880x1440sw", N_("2880 x 1440 DPI"),
2880, 1440, 2880, 1440, 1, 0, 1};
static const res_t r_2880x2880mw =
{ "2880x2880mw", N_("2880 x 2880 DPI"),
2880, 2880, 2880, 2880, 0, 1, 1};
static const res_t r_2880x2880sw =
{ "2880x2880sw", N_("2880 x 2880 DPI"),
2880, 2880, 2880, 2880, 1, 0, 1};
const res_t *const stpi_escp2_720dpi_reslist[] =
{
&r_360x90dpi,
&r_360x120dpi,
&r_180dpi,
&r_360x240dpi,
&r_360x180dpi,
&r_360mw,
&r_360,
&r_720x360sw,
&r_720mw,
NULL
};
const res_t *const stpi_escp2_1440dpi_reslist[] =
{
&r_360x90sw,
&r_360x120sw,
&r_180sw,
&r_360x240sw,
&r_360x180sw,
&r_360sw,
&r_720x360sw,
&r_720sw,
&r_1440x720sw,
&r_1440x720hq2,
NULL
};
const res_t *const stpi_escp2_2880dpi_reslist[] =
{
&r_360x90sw,
&r_360x120sw,
&r_180sw,
&r_360x240sw,
&r_360x180sw,
&r_360sw,
&r_720x360sw,
&r_720sw,
&r_1440x720sw,
&r_2880x720sw,
&r_2880x720hq2,
NULL
};
const res_t *const stpi_escp2_2880_1440dpi_reslist[] =
{
&r_360x90sw,
&r_360x120sw,
&r_180sw,
&r_360x240sw,
&r_360x180sw,
&r_360sw,
&r_720x360sw,
&r_720sw,
&r_1440x720sw,
&r_2880x720sw,
&r_1440x1440sw,
&r_2880x1440sw,
NULL
};
const res_t *const stpi_escp2_g3_reslist[] =
{
&r_360x90dpi,
&r_360x120dpi,
&r_180dpi,
&r_360x240dpi,
&r_360x180dpi,
&r_360mw,
&r_360,
&r_720x360sw,
&r_720sw,
&r_720hq,
&r_1440x720sw,
&r_1440x720hq2,
NULL
};
const res_t *const stpi_escp2_superfine_reslist[] =
{
&r_360x120sw,
&r_360x180sw,
&r_360x240sw,
&r_360sw,
&r_720x360sw,
&r_720sw,
&r_1440x720sw,
&r_1440x1440ov,
&r_2880x1440sw,
&r_2880x2880sw,
NULL
};
const res_t *const stpi_escp2_sc500_reslist[] =
{
&r_360x90dpi,
&r_360x120dpi,
&r_180dpi,
&r_360x240dpi,
&r_360x180dpi,
&r_360mw,
&r_360,
&r_720x360mw,
&r_720mw,
NULL
};
const res_t *const stpi_escp2_g3_720dpi_reslist[] =
{
&r_360x90dpi,
&r_360x120sw,
&r_180dpi,
&r_360x240sw,
&r_360x180dpi,
&r_360mw,
&r_360,
&r_720x360sw,
&r_720sw,
&r_720hq,
&r_720hq2,
NULL
};
const res_t *const stpi_escp2_720dpi_soft_reslist[] =
{
&r_360x90dpi,
&r_360x120sw,
&r_180dpi,
&r_360x240sw,
&r_360x180dpi,
&r_360sw,
&r_720x360sw,
&r_720sw,
&r_720hq,
&r_720hq2,
NULL
};
const res_t *const stpi_escp2_sc640_reslist[] =
{
&r_360x90dpi,
&r_180dpi,
&r_360x180dpi,
&r_360mw,
&r_360,
&r_720x360sw,
&r_720mw,
&r_1440x720sw,
&r_1440x720hq2,
NULL
};
const res_t *const stpi_escp2_pro_reslist[] =
{
&r_360x90dpi,
&r_180dpi,
&r_360x180dpi,
&r_360pro,
&r_720x360mw,
&r_720mw,
&r_1440x720mw,
&r_2880x720mw,
&r_1440x1440mw,
&r_2880x1440mw,
&r_2880x2880mw,
NULL
};
#define DECLARE_PRINTER_WEAVES(name) \
const printer_weave_list_t stpi_escp2_##name##_printer_weave_list = \
{ \
#name, \
sizeof(name##_printer_weaves) / sizeof(printer_weave_t), \
name##_printer_weaves \
}
static const printer_weave_t standard_printer_weaves[] =
{
{ "Off", N_("Off"), 0 },
{ "On", N_("On"), 1 }
};
DECLARE_PRINTER_WEAVES(standard);
static const printer_weave_t pro7000_printer_weaves[] =
{
{ "Off", N_("Off"), 0 },
{ "On", N_("Interleave"), 1 },
{ "FOL", N_("Full Overlap"), 2 },
{ "FourPass", N_("Four Pass"), 3 },
{ "FOL2", N_("Full Overlap 2"), 4 },
};
DECLARE_PRINTER_WEAVES(pro7000);
static const printer_weave_t pro7500_printer_weaves[] =
{
{ "Off", N_("Off"), 0 },
{ "On", N_("Interleave"), 1 },
{ "FOL", N_("Full Overlap"), 2 },
{ "FourPass", N_("Four Pass"), 3 },
{ "FOL2", N_("Full Overlap 2"), 4 },
{ "MW2", N_("Interleave 2"), 5 },
};
DECLARE_PRINTER_WEAVES(pro7500);
static const printer_weave_t pro7600_printer_weaves[] =
{
{ "Off", N_("Off"), 0 },
{ "On", N_("Interleave"), 1 },
{ "FOL", N_("Full Overlap"), 2 },
{ "FourPass", N_("Four Pass"), 3 },
{ "FOL2", N_("Full Overlap 2"), 4 },
{ "MW2", N_("Interleave 2"), 5 },
{ "EightPass", N_("Eight Pass"), 6 },
};
DECLARE_PRINTER_WEAVES(pro7600);