• Home
  • Raw
  • Download

Lines Matching refs:srcbuf

78 int decomptest(unsigned char *srcbuf, unsigned char **jpegbuf,  in decomptest()  argument
165 if(srcbuf && sf.num==1 && sf.denom==1) in decomptest()
178 int y=(int)((double)srcbuf[rindex]*0.299 in decomptest()
179 + (double)srcbuf[gindex]*0.587 in decomptest()
180 + (double)srcbuf[bindex]*0.114 + 0.5); in decomptest()
193 =abs(dstbuf[pitch*row+col]-srcbuf[pitch*row+col]); in decomptest()
208 void dotest(unsigned char *srcbuf, int w, int h, int subsamp, int jpegqual, in dotest() argument
253 memcpy(&tmpbuf[pitch*i], &srcbuf[w*ps*i], w*ps); in dotest()
258 if(tjCompress2(handle, srcbuf, tilew, pitch, tileh, pf, &jpegbuf[0], in dotest()
267 for(row=0, srcptr=srcbuf; row<ntilesh; row++, srcptr+=pitch*tileh) in dotest()
320 if(decomptest(srcbuf, jpegbuf, jpegsize, tmpbuf, w, h, subsamp, jpegqual, in dotest()
354 unsigned char **jpegbuf=NULL, *srcbuf=NULL; in dodecomptest() local
364 if((srcbuf=(unsigned char *)malloc(srcsize))==NULL) in dodecomptest()
368 if(fread(srcbuf, srcsize, 1, file)<1) in dodecomptest()
377 if(tjDecompressHeader2(handle, srcbuf, srcsize, &w, &h, &subsamp)==-1) in dodecomptest()
433 memcpy(jpegbuf[0], srcbuf, srcsize); in dodecomptest()
463 if(srcbuf) {free(srcbuf); srcbuf=NULL;} in dodecomptest()
510 unsigned char *srcbuf=NULL; int w, h, i, j; in main() local
622 if(loadbmp(argv[1], &srcbuf, &w, &h, bmpPF[pf], 1, in main()
644 dotest(srcbuf, w, h, TJ_GRAYSCALE, i, argv[1]); in main()
647 dotest(srcbuf, w, h, TJ_420, i, argv[1]); in main()
650 dotest(srcbuf, w, h, TJ_422, i, argv[1]); in main()
653 dotest(srcbuf, w, h, TJ_444, i, argv[1]); in main()
657 if(srcbuf) free(srcbuf); in main()