• Home
  • Raw
  • Download

Lines Matching refs:srcbuf

104 int decomp(unsigned char *srcbuf, unsigned char **jpegbuf,  in decomp()  argument
241 if(srcbuf && sf.num==1 && sf.denom==1) in decomp()
254 int y=(int)((double)srcbuf[rindex]*0.299 in decomp()
255 + (double)srcbuf[gindex]*0.587 in decomp()
256 + (double)srcbuf[bindex]*0.114 + 0.5); in decomp()
270 =abs(dstbuf[pitch*row+col]-srcbuf[pitch*row+col]); in decomp()
286 int fullTest(unsigned char *srcbuf, int w, int h, int subsamp, int jpegqual, in fullTest() argument
341 memcpy(&tmpbuf[pitch*i], &srcbuf[w*ps*i], w*ps); in fullTest()
363 for(row=0, srcptr=srcbuf; row<ntilesh; row++, srcptr+=pitch*tileh) in fullTest()
458 if(decomp(srcbuf, jpegbuf, jpegsize, tmpbuf, w, h, subsamp, jpegqual, in fullTest()
499 unsigned char **jpegbuf=NULL, *srcbuf=NULL; in decompTest() local
513 if((srcbuf=(unsigned char *)malloc(srcsize))==NULL) in decompTest()
517 if(fread(srcbuf, srcsize, 1, file)<1) in decompTest()
526 if(tjDecompressHeader3(handle, srcbuf, srcsize, &w, &h, &subsamp, &cs)==-1) in decompTest()
646 if(tjTransform(handle, srcbuf, srcsize, _ntilesw*_ntilesh, jpegbuf, in decompTest()
694 if(decomp(NULL, decompsrc? &srcbuf:jpegbuf, decompsrc? &srcsize:jpegsize, in decompTest()
723 if(srcbuf) {free(srcbuf); srcbuf=NULL;} in decompTest()
796 unsigned char *srcbuf=NULL; int w=0, h=0, i, j; in main() local
957 if(loadbmp(argv[1], &srcbuf, &w, &h, pf, (flags&TJFLAG_BOTTOMUP)!=0)==-1) in main()
988 fullTest(srcbuf, w, h, subsamp, i, argv[1]); in main()
996 fullTest(srcbuf, w, h, TJSAMP_GRAY, i, argv[1]); in main()
1000 fullTest(srcbuf, w, h, TJSAMP_420, i, argv[1]); in main()
1003 fullTest(srcbuf, w, h, TJSAMP_422, i, argv[1]); in main()
1006 fullTest(srcbuf, w, h, TJSAMP_444, i, argv[1]); in main()
1011 if(srcbuf) free(srcbuf); in main()