diff options
author | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2011-09-20 05:02:19 +0000 |
---|---|---|
committer | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2011-09-20 05:02:19 +0000 |
commit | 40d73bfe170f2fe67d9bcccbb4275cda08647d3d (patch) | |
tree | 47081f39bc5e7230db398ab7d1e04985c22c3346 /tjbench.c | |
parent | 82c401f07cb254085afc55f08fbbb78814e5e550 (diff) |
Implement custom filter callback in Java
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@707 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'tjbench.c')
-rw-r--r-- | tjbench.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -59,7 +59,7 @@ const char *subNameLong[TJ_NUMSAMP]= const char *subName[NUMSUBOPT]={"444", "422", "420", "GRAY", "440"}; tjscalingfactor *scalingfactors=NULL, sf={1, 1}; int nsf=0; int xformop=TJXOP_NONE, xformopt=0; -int (*customFilter)(short *, tjregion, tjregion, int, int); +int (*customFilter)(short *, tjregion, tjregion, int, int, tjtransform *); double benchtime=5.0; @@ -76,7 +76,7 @@ char *sigfig(double val, int figs, char *buf, int len) /* Custom DCT filter which produces a negative of the image */ int dummyDCTFilter(short *coeffs, tjregion arrayRegion, tjregion planeRegion, - int componentIndex, int transformIndex) + int componentIndex, int transformIndex, tjtransform *transform) { int i; for(i=0; i<arrayRegion.w*arrayRegion.h; i++) coeffs[i]=-coeffs[i]; |