Update PWG test driver to support multiple output bins for color office printers
and a single output bin for the monochrome office printers.
Label printers do not report output bins.
@@ -257,9 +257,19 @@ pwg_callback(
driver_data->source[2] = "manual";
driver_data->source[3] = "by-pass-tray";
+ if (driver_data->raster_types & PAPPL_PWG_RASTER_TYPE_SRGB_8)
+ {
+ // Color office printer gets two output bins...
driver_data->num_bin = 2;
driver_data->bin[0] = "center";
driver_data->bin[1] = "rear";
+ }
+ else
+ {
+ // B&W office printer gets one output bin...
+ driver_data->num_bin = 1;
+ driver_data->bin[0] = "center";
+ }
strlcpy(driver_data->media_ready[0].size_name, "na_letter_8.5x11in", sizeof(driver_data->media_ready[0].size_name));
strlcpy(driver_data->media_ready[1].size_name, "iso_a4_210x297mm", sizeof(driver_data->media_ready[1].size_name));
