From 9b979b177b356e5730e3eb102ec19e0cc1689682 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Tue, 16 Aug 2011 22:58:33 -0500 Subject: [PATCH] [devel] Added new types and internal functions for CIE RGB end point handling to pngpriv.h (functions yet to be implemented). --- ANNOUNCE | 2 ++ CHANGES | 2 ++ pngpriv.h | 23 +++++++++++++++++++++++ 3 files changed, 27 insertions(+) diff --git a/ANNOUNCE b/ANNOUNCE index 9a3192e94..9d3149946 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -59,6 +59,8 @@ Version 1.5.5beta05 [August 17, 2011] deliberately). The spurious "_EXPORTS" has been removed from the libpng build (all these errors were a result of copy/paste between project configurations.) + Added new types and internal functions for CIE RGB end point handling to + pngpriv.h (functions yet to be implemented). Send comments/corrections/commendations to png-mng-implement at lists.sf.net: diff --git a/CHANGES b/CHANGES index a463383ff..1eee34cf4 100644 --- a/CHANGES +++ b/CHANGES @@ -3543,6 +3543,8 @@ Version 1.5.5beta05 [August 17, 2011] deliberately). The spurious "_EXPORTS" has been removed from the libpng build (all these errors were a result of copy/paste between project configurations.) + Added new types and internal functions for CIE RGB end point handling to + pngpriv.h (functions yet to be implemented). Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/pngpriv.h b/pngpriv.h index f38d603b4..fdda3b066 100644 --- a/pngpriv.h +++ b/pngpriv.h @@ -1150,6 +1150,29 @@ PNG_EXTERN void png_64bit_product PNGARG((long v1, long v2, #endif #ifdef PNG_cHRM_SUPPORTED +/* Added at libpng version 1.5.5 */ +typedef struct png_xy +{ + png_fixed_point redx, redy; + png_fixed_point greenx, greeny; + png_fixed_point bluex, bluey; + png_fixed_point whitex, whitey; +} png_xy; + +typedef struct png_XYZ +{ + png_fixed_point redX, redY, redZ; + png_fixed_point greenX, greenY, greenZ; + png_fixed_point blueX, blueY, blueZ; +} png_XYZ; + +/* The conversion APIs return 0 on success, non-zero on a parameter error. */ +PNG_EXTERN int png_xy_from_XYZ PNGARG((png_xy *xy, png_XYZ XYZ)); +PNG_EXTERN int png_XYZ_from_xy PNGARG((png_XYZ *XYZ, png_xy xy)); +PNG_EXTERN int png_XYZ_from_xy_checked PNGARG((png_structp png_ptr, + png_XYZ *XYZ, png_xy xy)); +#endif + /* Added at libpng version 1.4.0 */ PNG_EXTERN void png_check_IHDR PNGARG((png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth,