"Fossies" - the Fresh Open Source Software Archive  

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

gxmatrix.h  (ghostscript-9.26.tar.xz):gxmatrix.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
Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato, Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
CA 94945, U.S.A., +1(415)492-9861, for further information. CA 94945, U.S.A., +1(415)492-9861, for further information.
*/ */
/* Internal matrix routines for Ghostscript library */ /* Internal matrix routines for Ghostscript library */
#ifndef gxmatrix_INCLUDED #ifndef gxmatrix_INCLUDED
# define gxmatrix_INCLUDED # define gxmatrix_INCLUDED
#include "gsmatrix.h" #include "gsmatrix.h"
#include "gxfixed.h"
/* The following switch is for developmenty purpose only. /* The following switch is for developmenty purpose only.
PRECISE_CURRENTPOINT 0 must not go to production due to no clamping. */ PRECISE_CURRENTPOINT 0 must not go to production due to no clamping. */
#define PRECISE_CURRENTPOINT 1 /* Old code compatible with dropped clamping = 0, new code = 1 */ #define PRECISE_CURRENTPOINT 1 /* Old code compatible with dropped clamping = 0, new code = 1 */
/* /*
* Define a matrix with a cached fixed-point copy of the translation. * Define a matrix with a cached fixed-point copy of the translation.
* This is only used by a few routines in gscoord.c; they are responsible * This is only used by a few routines in gscoord.c; they are responsible
* for ensuring the validity of the cache. Note that the floating point * for ensuring the validity of the cache. Note that the floating point
* tx/ty values may be too large to fit in a fixed values; txy_fixed_valid * tx/ty values may be too large to fit in a fixed values; txy_fixed_valid
* is false if this is the case, and true otherwise. * is false if this is the case, and true otherwise.
*/ */
struct gs_matrix_fixed_s { struct gs_matrix_fixed_s {
_matrix_body; _matrix_body;
fixed tx_fixed, ty_fixed; fixed tx_fixed, ty_fixed;
bool txy_fixed_valid; bool txy_fixed_valid;
}; };
#ifndef gs_matrix_fixed_DEFINED
#define gs_matrix_fixed_DEFINED
typedef struct gs_matrix_fixed_s gs_matrix_fixed; typedef struct gs_matrix_fixed_s gs_matrix_fixed;
#endif
/* Make a gs_matrix_fixed from a gs_matrix. */ /* Make a gs_matrix_fixed from a gs_matrix. */
int gs_matrix_fixed_from_matrix(gs_matrix_fixed *, const gs_matrix *); int gs_matrix_fixed_from_matrix(gs_matrix_fixed *, const gs_matrix *);
/* Coordinate transformations to fixed point. */ /* Coordinate transformations to fixed point. */
int gs_point_transform2fixed(const gs_matrix_fixed *, double, double, int gs_point_transform2fixed(const gs_matrix_fixed *, double, double,
gs_fixed_point *); gs_fixed_point *);
int gs_distance_transform2fixed(const gs_matrix_fixed *, double, double, int gs_distance_transform2fixed(const gs_matrix_fixed *, double, double,
gs_fixed_point *); gs_fixed_point *);
#if PRECISE_CURRENTPOINT #if PRECISE_CURRENTPOINT
 End of changes. 4 change blocks. 
4 lines changed or deleted 2 lines changed or added

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