From 4f8aca3a93d916106c756947a16cd1dbf427bde6 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 21 Mar 2016 16:40:55 +0000 Subject: [PATCH] sync --- TODO | 8 -------- libvips/resample/reducev.cpp | 6 +----- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/TODO b/TODO index 43dcb78c..1ca04cdf 100644 --- a/TODO +++ b/TODO @@ -1,11 +1,3 @@ -- look at reduceh_gen now - - valgrind --tool=callgrind vipsthumbnail wtc.jpg -s 2000 --vips-info - - self called - 41% 125 reduceh_gen - 25% loads various jpeg decode - - could instrument vips_region_prepare() and track number of pixels calculated for each image ... on image close (or evelend?) print %computed, values over 100% would indicate overcomputation diff --git a/libvips/resample/reducev.cpp b/libvips/resample/reducev.cpp index 2a69613b..170cd92d 100644 --- a/libvips/resample/reducev.cpp +++ b/libvips/resample/reducev.cpp @@ -102,7 +102,7 @@ typedef struct _VipsReducev { int *matrixi[VIPS_TRANSFORM_SCALE + 1]; double *matrixf[VIPS_TRANSFORM_SCALE + 1]; - /* And another set for orc: we want 8.8 precision. + /* And another set for orc: we want 2.6 precision. */ int *matrixo[VIPS_TRANSFORM_SCALE + 1]; @@ -753,10 +753,6 @@ vips_reducev_raw( VipsReducev *reducev, VipsImage *in ) return( -1 ); } - /* Output short so we can see intermediates. - resample->out->BandFmt = VIPS_FORMAT_SHORT; - */ - #ifdef DEBUG printf( "vips_reducev_build: reducing %d x %d image to %d x %d\n", in->Xsize, in->Ysize,