diff options
author | Ray Johnston <ray.johnston@artifex.com> | 2021-02-17 08:16:25 -0800 |
---|---|---|
committer | Ray Johnston <ray.johnston@artifex.com> | 2021-02-17 10:18:16 -0800 |
commit | a28c4d3d22156086db3b53011824a88847d114e1 (patch) | |
tree | 7d39489231ee27d34cf600df9e545a6149d4e966 /base/gsht.c | |
parent | 7a3df79b2b0e0725753a0eac84fb205341cc9fed (diff) | |
download | ghostpdl-a28c4d3d22156086db3b53011824a88847d114e1.tar.gz |
Minor improvement to gx_ht_construct_threshold debug
Diffstat (limited to 'base/gsht.c')
-rw-r--r-- | base/gsht.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/base/gsht.c b/base/gsht.c index d53f036bd..07a3746b4 100644 --- a/base/gsht.c +++ b/base/gsht.c @@ -1440,11 +1440,17 @@ gx_ht_construct_threshold( gx_ht_order *d_order, gx_device *dev, } #ifdef DEBUG if ( gs_debug_c('h') ) { - for( i=0; i<(int)d_order->height; i++ ) { - dmprintf1(memory, "threshold array row %3d= ", i); - for( j=0; j<(int)(d_order->width); j++ ) - dmprintf1(memory, "%3d ", *(thresh+j+(i*d_order->width)) ); - dmprintf(memory, "\n"); + dmprintf3(memory, "threshold array component %d [ %d x %d ]:\n", + plane_index, (int)(d_order->full_height), (int)(d_order->width)); + for( i=0; i<(int)d_order->full_height; i++ ) { + dmprintf1(memory, "row %3d= ", i); + for( j=0; j<(int)(d_order->width); j++ ) { + dmprintf1(memory, "%02x ", *(thresh+j+(i*d_order->width)) ); + if ((j&31) == 31) + dmprintf(memory, "\n "); + } + if ((j&31) != 0) + dmprintf(memory, "\n"); } } #endif |