Home
last modified time | relevance | path

Searched refs:srcbuf (Results 1 – 10 of 10) sorted by relevance

/external/libvncserver/test/
Dtjbench.c78 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()
[all …]
Dbmp.c87 void pixelconvert(unsigned char *srcbuf, enum BMPPIXELFORMAT srcformat, in pixelconvert() argument
94 srcptr=flip? &srcbuf[srcpitch*(h-1)]:srcbuf; in pixelconvert()
/external/ltp/testcases/kernel/io/aio/aio01/
Daio01.c82 char *srcbuf, *dstbuf; variable
129 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
192 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
254 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
300 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
329 if (srcbuf[j] != dstbuf[j]) { in main()
332 dstbuf[j], srcbuf[j]); in main()
384 posix_memalign((void **)&srcbuf, bufsize, bufsize)) != 0) in setup()
394 if ((srcbuf = malloc(sizeof(char) * bufsize)) == NULL) in setup()
401 memset((void *)srcbuf, 65, bufsize); in setup()
[all …]
/external/libjpeg-turbo/
Dtjbench.c104 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()
[all …]
Dbmp.c75 static void pixelconvert(unsigned char *srcbuf, int srcpf, int srcbottomup, in pixelconvert() argument
78 unsigned char *srcrowptr=srcbuf, *srccolptr; in pixelconvert()
86 if(srcbottomup) srcrowptr=&srcbuf[w*srcps*(h-1)]; in pixelconvert()
/external/python/cpython2/Objects/
Dmemoryobject.c632 char *srcbuf, *destbuf; in memory_ass_sub() local
700 srcbuf = (char *) srcview.buf; in memory_ass_sub()
701 if (destbuf + bytelen < srcbuf || srcbuf + bytelen < destbuf) in memory_ass_sub()
703 memcpy(destbuf, srcbuf, bytelen); in memory_ass_sub()
705 memmove(destbuf, srcbuf, bytelen); in memory_ass_sub()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_noise_estimate.c70 const uint8_t *srcbuf = src->y_buffer; in copy_frame() local
77 memcpy(destbuf, srcbuf, dest->y_width); in copy_frame()
79 srcbuf += src->y_stride; in copy_frame()
Dvp9_denoiser.c401 const uint8_t *srcbuf = src->y_buffer; in copy_frame() local
408 memcpy(destbuf, srcbuf, dest->y_width); in copy_frame()
410 srcbuf += src->y_stride; in copy_frame()
/external/libvncserver/libvncserver/
Dtight.c1557 unsigned char *srcbuf; in SendJpegRect() local
1625 srcbuf = tmpbuf; in SendJpegRect()
1637 srcbuf = (unsigned char *)&cl->scaledScreen->frameBuffer in SendJpegRect()
1641 if (tjCompress(j, srcbuf, w, pitch, h, ps, (unsigned char *)tightAfterBuf, in SendJpegRect()
/external/pdfium/core/fpdfapi/page/
Dcpdf_colorspace.cpp499 CFX_FixedBufGrow<FX_FLOAT, 16> srcbuf(m_nComponents); in TranslateImageLine() local
500 FX_FLOAT* src = srcbuf; in TranslateImageLine()