[gs-commits] rev 10935 - branches/icc_work/base

mvrhel at ghostscript.com mvrhel at ghostscript.com
Wed Mar 17 19:00:29 UTC 2010


Author: mvrhel
Date: 2010-03-17 19:00:29 +0000 (Wed, 17 Mar 2010)
New Revision: 10935

Modified:
   branches/icc_work/base/gsicc.c
Log:
Addition of debug code for icc conversions.

Modified: branches/icc_work/base/gsicc.c
===================================================================
--- branches/icc_work/base/gsicc.c	2010-03-17 18:57:33 UTC (rev 10934)
+++ branches/icc_work/base/gsicc.c	2010-03-17 19:00:29 UTC (rev 10935)
@@ -175,6 +175,10 @@
     unsigned short *psrc_temp;
     frac conc[GS_CLIENT_COLOR_MAX_COMPONENTS];
     int k,i;
+#ifdef DEBUG
+    int num_src_comps;
+    int num_des_comps;
+#endif
 
     rendering_params.black_point_comp = BP_ON;
     rendering_params.object_type = GS_PATH_TAG;
@@ -198,7 +202,21 @@
         psrc_temp = &(psrc_cm[0]);
         gscms_transform_color(icc_link, psrc, psrc_temp, 2, NULL);
     }
-
+#ifdef DEBUG
+    if (!icc_link->is_identity) {
+        num_src_comps = pcs->cmm_icc_profile_data->num_comps;
+        num_des_comps = pis->icc_manager->device_profile->num_comps;
+        if_debug0('c',"[c]ICC remap [ ");
+        for (k = 0; k < num_src_comps; k++) {
+            if_debug1('c', "%d ",psrc[k]);
+        }
+        if_debug0('c',"] --> [ ");
+        for (k = 0; k < num_des_comps; k++) {
+            if_debug1('c', "%d ",psrc_temp[k]);
+        }
+        if_debug0('c',"]\n");
+    }
+#endif
     /* Release the link */
     gsicc_release_link(icc_link);
     /* Now do the remap for ICC which amounts to the alpha application



More information about the gs-commits mailing list