"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "base/gdevdflt.c" between
ghostpdl-9.28rc1.tar.xz and ghostpdl-9.28rc2.tar.xz

About: GhostPDL is a suite of interpreters for PCL, PXL and XPS implemented using the Ghostscript graphics library (GPL release). Release candidate.

gdevdflt.c  (ghostpdl-9.28rc1.tar.xz):gdevdflt.c  (ghostpdl-9.28rc2.tar.xz)
skipping to change at line 534 skipping to change at line 534
* gx_color_index type, and a 4 component device, such as cmyk). * gx_color_index type, and a 4 component device, such as cmyk).
* We allow the encoding to be off in the lower bits for that case. * We allow the encoding to be off in the lower bits for that case.
*/ */
void check_device_compatible_encoding(gx_device *dev) void check_device_compatible_encoding(gx_device *dev)
{ {
gx_device_color_info * pinfo = &(dev->color_info); gx_device_color_info * pinfo = &(dev->color_info);
int num_components = pinfo->num_components; int num_components = pinfo->num_components;
gx_color_index mul, color_index; gx_color_index mul, color_index;
int i, j; int i, j;
gx_color_value colorants[GX_DEVICE_COLOR_MAX_COMPONENTS]; gx_color_value colorants[GX_DEVICE_COLOR_MAX_COMPONENTS];
bool has_tags = device_encodes_tags(dev); bool deep = device_is_deep(dev);
int bits_per_comp = ((dev->color_info.depth - has_tags*8) /
dev->color_info.num_components);
bool deep = bits_per_comp > 8;
if (pinfo->separable_and_linear == GX_CINFO_UNKNOWN_SEP_LIN) if (pinfo->separable_and_linear == GX_CINFO_UNKNOWN_SEP_LIN)
check_device_separable(dev); check_device_separable(dev);
if (pinfo->separable_and_linear != GX_CINFO_SEP_LIN) if (pinfo->separable_and_linear != GX_CINFO_SEP_LIN)
return; return;
if (dev_proc(dev, ret_devn_params)(dev) != NULL) { if (dev_proc(dev, ret_devn_params)(dev) != NULL) {
/* We know all devn devices are compatible. */ /* We know all devn devices are compatible. */
pinfo->separable_and_linear = GX_CINFO_SEP_LIN_STANDARD; pinfo->separable_and_linear = GX_CINFO_SEP_LIN_STANDARD;
return; return;
 End of changes. 1 change blocks. 
4 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)