]> granicus.if.org Git - libjpeg-turbo/commitdiff
Oops. This code should not have been removed. It is necessary for generating the...
authorDRC <dcommander@users.sourceforge.net>
Fri, 14 Mar 2014 04:15:43 +0000 (04:15 +0000)
committerDRC <dcommander@users.sourceforge.net>
Fri, 14 Mar 2014 04:15:43 +0000 (04:15 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1165 632fc199-4ca6-4c93-a231-07263d6284db

tjbench.c

index 4e28f06e80352e0c69b4657168e6ba1146918850..3c8f3463d9aa073f4b011a39484c0c701d8bac28 100644 (file)
--- a/tjbench.c
+++ b/tjbench.c
@@ -321,6 +321,8 @@ void fullTest(unsigned char *srcbuf, int w, int h, int subsamp, int jpegqual,
                if(quiet==1)
                        printf("%-4s (%s)  %-5s    %-3d   ", pfStr,
                                (flags&TJFLAG_BOTTOMUP)? "BU":"TD", subNameLong[subsamp], jpegqual);
+               for(i=0; i<h; i++)
+                       memcpy(&tmpbuf[pitch*i], &srcbuf[w*ps*i], w*ps);
                if((handle=tjInitCompress())==NULL)
                        _throwtj("executing tjInitCompress()");