Home
last modified time | relevance | path

Searched refs:dstbuf (Results 1 – 8 of 8) sorted by relevance

/external/ltp/testcases/kernel/io/aio/aio01/
Daio01.c82 char *srcbuf, *dstbuf; variable
160 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main()
223 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main()
268 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main()
314 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main()
329 if (srcbuf[j] != dstbuf[j]) { in main()
332 dstbuf[j], srcbuf[j]); in main()
389 posix_memalign((void **)&dstbuf, bufsize, bufsize)) != 0) in setup()
397 if ((dstbuf = malloc(sizeof(char) * bufsize)) == NULL) in setup()
409 free(dstbuf); in cleanup()
/external/libvncserver/test/
Dtjbench.c79 unsigned long *jpegsize, unsigned char *dstbuf, int w, int h, in decomptest() argument
104 if(dstbuf==NULL) in decomptest()
106 if((dstbuf=(unsigned char *)malloc(bufsize)) == NULL) in decomptest()
112 memset(dstbuf, 127, bufsize); in decomptest()
115 if(tjDecompress2(handle, jpegbuf[0], jpegsize[0], dstbuf, scaledw, in decomptest()
123 for(row=0, dstptr=dstbuf; row<ntilesh; row++, dstptr+=pitch*tileh) in decomptest()
160 if(savebmp(tempstr, dstbuf, scaledw, scaledh, bmpPF[pf], pitch, in decomptest()
182 dstbuf[rindex]=abs(dstbuf[rindex]-y); in decomptest()
183 dstbuf[gindex]=abs(dstbuf[gindex]-y); in decomptest()
184 dstbuf[bindex]=abs(dstbuf[bindex]-y); in decomptest()
[all …]
Dbmp.c88 int srcpitch, unsigned char *dstbuf, enum BMPPIXELFORMAT dstformat, int dstpitch, in pixelconvert() argument
95 for(j=0, dstptr=dstbuf; j<h; j++, in pixelconvert()
/external/libjpeg-turbo/
Dtjbench.c105 unsigned long *jpegsize, unsigned char *dstbuf, int w, int h, in decomp() argument
128 if(dstbuf==NULL) in decomp()
133 if((dstbuf=(unsigned char *)malloc((size_t)pitch*scaledh))==NULL) in decomp()
139 memset(dstbuf, 127, pitch*scaledh); in decomp()
161 for(row=0, dstptr=dstbuf; row<ntilesh; row++, dstptr+=pitch*tileh) in decomp()
236 if(savebmp(tempstr, dstbuf, scaledw, scaledh, pf, in decomp()
259 dstbuf[rindex]=abs(dstbuf[rindex]-y); in decomp()
260 dstbuf[gindex]=abs(dstbuf[gindex]-y); in decomp()
261 dstbuf[bindex]=abs(dstbuf[bindex]-y); in decomp()
269 dstbuf[pitch*row+col] in decomp()
[all …]
Dbmp.c76 unsigned char *dstbuf, int dstpf, int dstbottomup, int w, int h) in pixelconvert() argument
81 unsigned char *dstrowptr=dstbuf, *dstcolptr; in pixelconvert()
87 if(dstbottomup) dstrowptr=&dstbuf[w*dstps*(h-1)]; in pixelconvert()
/external/mesa3d/src/mesa/vbo/
Dvbo_split_copy.c89 GLubyte *dstbuf; member
216 copy->dstptr = copy->dstbuf; in flush()
294 assert(copy->dstptr == (copy->dstbuf + in elt()
518 copy->dstbuf = malloc(copy->dstbuf_size * copy->vertex_size); in replay_init()
519 copy->dstptr = copy->dstbuf; in replay_init()
531 dst->Ptr = copy->dstbuf + offset; in replay_init()
572 free(copy->dstbuf); in replay_finish()
/external/protobuf/php/ext/google/protobuf/
Dupb.c9203 char dstbuf[4096], *dst = dstbuf, *dstend = dstbuf + sizeof(dstbuf); in putescaped() local
9215 upb_bytessink_putbuf(p->output_, p->subc, dstbuf, dst - dstbuf, NULL); in putescaped()
9216 dst = dstbuf; in putescaped()
9243 upb_bytessink_putbuf(p->output_, p->subc, dstbuf, dst - dstbuf, NULL); in putescaped()
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c9877 char dstbuf[4096], *dst = dstbuf, *dstend = dstbuf + sizeof(dstbuf); in putescaped() local
9889 upb_bytessink_putbuf(p->output_, p->subc, dstbuf, dst - dstbuf, NULL); in putescaped()
9890 dst = dstbuf; in putescaped()
9917 upb_bytessink_putbuf(p->output_, p->subc, dstbuf, dst - dstbuf, NULL); in putescaped()