"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "base/gdevmem.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.

gdevmem.c  (ghostpdl-9.28rc1.tar.xz):gdevmem.c  (ghostpdl-9.28rc2.tar.xz)
skipping to change at line 390 skipping to change at line 390
* Do the inverse computation: given a width (in pixels) and a buffer size, * Do the inverse computation: given a width (in pixels) and a buffer size,
* compute the maximum height. * compute the maximum height.
*/ */
int int
gdev_mem_max_height(const gx_device_memory * dev, int width, ulong size, gdev_mem_max_height(const gx_device_memory * dev, int width, ulong size,
bool page_uses_transparency) bool page_uses_transparency)
{ {
int height; int height;
ulong max_height; ulong max_height;
ulong data_size; ulong data_size;
bool has_tags = device_encodes_tags((gx_device *)dev); bool deep = device_is_deep((const gx_device *)dev);
int bits_per_comp = ((dev->color_info.depth - has_tags*8) /
dev->color_info.num_components);
bool deep = bits_per_comp > 8;
if (page_uses_transparency) { if (page_uses_transparency) {
/* /*
* If the device is using PDF 1.4 transparency then we will need to * If the device is using PDF 1.4 transparency then we will need to
* also allocate image buffers for doing the blending operations. * also allocate image buffers for doing the blending operations.
* We can only estimate the space requirements. However since it * We can only estimate the space requirements. However since it
* is only an estimate, we may exceed our desired buffer space while * is only an estimate, we may exceed our desired buffer space while
* processing the file. * processing the file.
*/ */
max_height = size / (bitmap_raster_pad_align(width max_height = size / (bitmap_raster_pad_align(width
 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)