"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "base/gxblend.h" between
ghostscript-9.26.tar.xz and ghostscript-9.27.tar.xz

About: Ghostscript is an interpreter and rendering engine for the PostScript language and for PDF (GPL release).

gxblend.h  (ghostscript-9.26.tar.xz):gxblend.h  (ghostscript-9.27.tar.xz)
/* Copyright (C) 2001-2018 Artifex Software, Inc. /* Copyright (C) 2001-2019 Artifex Software, Inc.
All Rights Reserved. All Rights Reserved.
This software is provided AS-IS with no warranty, either express or This software is provided AS-IS with no warranty, either express or
implied. implied.
This software is distributed under license and may not be copied, This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms modified or distributed except as expressly authorized under the terms
of the license contained in the file LICENSE in this distribution. of the license contained in the file LICENSE in this distribution.
Refer to licensing information at http://www.artifex.com or contact Refer to licensing information at http://www.artifex.com or contact
skipping to change at line 41 skipping to change at line 41
*/ */
/* #define DUMP_TO_PNG */ /* #define DUMP_TO_PNG */
#define PDF14_MAX_PLANES GX_DEVICE_COLOR_MAX_COMPONENTS+3 /* Needed for alpha channel, shape, group alpha */ #define PDF14_MAX_PLANES GX_DEVICE_COLOR_MAX_COMPONENTS+3 /* Needed for alpha channel, shape, group alpha */
typedef bits16 ArtPixMaxDepth; typedef bits16 ArtPixMaxDepth;
#define ART_MAX_CHAN GX_DEVICE_COLOR_MAX_COMPONENTS #define ART_MAX_CHAN GX_DEVICE_COLOR_MAX_COMPONENTS
#ifndef pdf14_device_DEFINED
# define pdf14_device_DEFINED
typedef struct pdf14_device_s pdf14_device; typedef struct pdf14_device_s pdf14_device;
#endif
#ifndef pdf14_buf_DEFINED
# define pdf14_buf_DEFINED
typedef struct pdf14_buf_s pdf14_buf; typedef struct pdf14_buf_s pdf14_buf;
#endif
#ifndef gx_device_DEFINED typedef struct gs_separations_s gs_separations;
# define gx_device_DEFINED
typedef struct gx_device_s gx_device;
#endif
#ifndef gs_separations_DEFINED
# define gs_separations_DEFINED
typedef struct gs_separations_s gs_separations;
#endif
/* /*
* This structure contains procedures for processing which differ * This structure contains procedures for processing which differ
* between the different blending color spaces. * between the different blending color spaces.
* *
* The Luminosity, Color, Saturation, and Hue blend modes depend * The Luminosity, Color, Saturation, and Hue blend modes depend
* upon the blending color space. Currently the blending color space * upon the blending color space. Currently the blending color space
* matches the process color model of the compositing device. We need * matches the process color model of the compositing device. We need
* two routines to implement the four 'non separable' blend modes. * two routines to implement the four 'non separable' blend modes.
*/ */
skipping to change at line 314 skipping to change at line 300
void pdf14_preserve_backdrop(pdf14_buf *buf, pdf14_buf *tos, bool knockout_buff) ; void pdf14_preserve_backdrop(pdf14_buf *buf, pdf14_buf *tos, bool knockout_buff) ;
int pdf14_preserve_backdrop_cm(pdf14_buf *buf, cmm_profile_t *group_profile, int pdf14_preserve_backdrop_cm(pdf14_buf *buf, cmm_profile_t *group_profile,
pdf14_buf *tos, cmm_profile_t *tos_profile, pdf14_buf *tos, cmm_profile_t *tos_profile,
gs_memory_t *memory, gs_gstate *pgs, gs_memory_t *memory, gs_gstate *pgs,
gx_device *dev, bool knockout_buff); gx_device *dev, bool knockout_buff);
void pdf14_compose_group(pdf14_buf *tos, pdf14_buf *nos, pdf14_buf *maskbuf, void pdf14_compose_group(pdf14_buf *tos, pdf14_buf *nos, pdf14_buf *maskbuf,
int x0, int x1, int y0, int y1, int n_chan, bool additive, int x0, int x1, int y0, int y1, int n_chan, bool additive,
const pdf14_nonseparable_blending_procs_t * pblend_procs, const pdf14_nonseparable_blending_procs_t * pblend_procs,
bool overprint, gx_color_index drawn_comps, gs_memory_t *memory, bool has_matte, bool overprint, gx_color_index drawn_comps,
gx_device *dev); gs_memory_t *memory, gx_device *dev);
void pdf14_compose_alphaless_group(pdf14_buf *tos, pdf14_buf *nos, void pdf14_compose_alphaless_group(pdf14_buf *tos, pdf14_buf *nos,
int x0, int x1, int y0, int y1, int x0, int x1, int y0, int y1,
gs_memory_t *memory, gx_device *dev); gs_memory_t *memory, gx_device *dev);
gx_color_index pdf14_encode_color(gx_device *dev, const gx_color_value colors[]) ; gx_color_index pdf14_encode_color(gx_device *dev, const gx_color_value colors[]) ;
gx_color_index pdf14_encode_color_tag(gx_device *dev, const gx_color_value color s[]); gx_color_index pdf14_encode_color_tag(gx_device *dev, const gx_color_value color s[]);
int pdf14_decode_color(gx_device * dev, gx_color_index color, gx_color_value * o ut); int pdf14_decode_color(gx_device * dev, gx_color_index color, gx_color_value * o ut);
void pdf14_gray_cs_to_cmyk_cm(gx_device * dev, frac gray, frac out[]); void pdf14_gray_cs_to_cmyk_cm(gx_device * dev, frac gray, frac out[]);
skipping to change at line 343 skipping to change at line 329
void pdf14_cmyk_cs_to_rgbspot_cm(gx_device * dev, frac c, frac m, frac y, frac k , frac out[]); void pdf14_cmyk_cs_to_rgbspot_cm(gx_device * dev, frac c, frac m, frac y, frac k , frac out[]);
void pdf14_gray_cs_to_grayspot_cm(gx_device * dev, frac gray, frac out[]); void pdf14_gray_cs_to_grayspot_cm(gx_device * dev, frac gray, frac out[]);
void pdf14_rgb_cs_to_grayspot_cm(gx_device * dev, const gs_gstate *pgs, void pdf14_rgb_cs_to_grayspot_cm(gx_device * dev, const gs_gstate *pgs,
frac r, frac g, frac b, frac out[]); frac r, frac g, frac b, frac out[]);
void pdf14_cmyk_cs_to_grayspot_cm(gx_device * dev, frac c, frac m, frac y, frac k, frac out[]); void pdf14_cmyk_cs_to_grayspot_cm(gx_device * dev, frac c, frac m, frac y, frac k, frac out[]);
void gx_build_blended_image_row(const byte *gs_restrict buf_ptr, int planestride , void gx_build_blended_image_row(const byte *gs_restrict buf_ptr, int planestride ,
int width, int num_comp, byte bg, byte *gs_restrict l inebuf); int width, int num_comp, byte bg, byte *gs_restrict l inebuf);
void gx_blend_image_buffer(byte *buf_ptr, int width, int height, void gx_blend_image_buffer(byte *buf_ptr, int width, int height,
int rowstride, int planestride, int num_comp, byte bg); int rowstride, int planestride, int num_comp, byte bg);
void gx_blend_image_buffer16(byte *buf_ptr, unsigned short *buf_ptr_out, int wid
th, int height,
int rowstride, int planestride, int num_comp, byte bg);
int gx_put_blended_image_cmykspot(gx_device *target, byte *buf_ptr, int gx_put_blended_image_cmykspot(gx_device *target, byte *buf_ptr,
int planestride, int rowstride, int planestride, int rowstride,
int x0, int y0, int width, int height, int num_comp, byte bg, int x0, int y0, int width, int height, int num_comp, byte bg,
bool has_tags, gs_int_rect rect, gs_separations *pseparati ons); bool has_tags, gs_int_rect rect, gs_separations *pseparati ons);
int gx_put_blended_image_custom(gx_device *target, byte *buf_ptr, int gx_put_blended_image_custom(gx_device *target, byte *buf_ptr,
int planestride, int rowstride, int planestride, int rowstride,
int x0, int y0, int width, int height, int num_comp, byte bg); int x0, int y0, int width, int height, int num_comp, byte bg);
/* Function moved between compilation units to allow inlining. */ /* Function moved between compilation units to allow inlining. */
int pdf14_mark_fill_rectangle(gx_device * dev, int x, int y, int w, int h, int pdf14_mark_fill_rectangle(gx_device * dev, int x, int y, int w, int h,
 End of changes. 8 change blocks. 
19 lines changed or deleted 8 lines changed or added

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