/external/iptables/extensions/ |
libxt_multiport.c | 87 char *buffer, *cp, *next; local 90 buffer = strdup(portstring); 91 if (!buffer) xtables_error(OTHER_PROBLEM, "strdup failed"); 93 for (cp=buffer, i=0; cp && i<XT_MULTI_PORTS; cp=next,i++) 100 free(buffer); 109 char *buffer, *cp, *next, *range; local 113 buffer = strdup(portstring); 114 if (!buffer) xtables_error(OTHER_PROBLEM, "strdup failed"); 119 for (cp=buffer, i=0; cp && i<XT_MULTI_PORTS; cp=next, i++) { 141 free(buffer); [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/base/ |
DefaultServer.java | 201 ByteBuffer buffer = MessageProtocol.messageToBuffer(message, null); 207 // giving us a fresh buffer 208 reliableAdapter.broadcast( adapter, buffer, true, false ); 210 fastAdapter.broadcast( adapter, buffer, false, false ); 221 ByteBuffer buffer = MessageProtocol.messageToBuffer(message, null); local 225 channels.get(channel+CH_FIRST).broadcast( adapter, buffer, true, false ); 488 ByteBuffer buffer = MessageProtocol.messageToBuffer(message, null); local 490 channels[CH_RELIABLE].send( buffer ); 492 channels[CH_UNRELIABLE].send( buffer ); 499 ByteBuffer buffer = MessageProtocol.messageToBuffer(message, null) local [all...] |
/external/jpeg/ |
rdppm.c | 55 #define ReadOK(file,buffer,len) (JFREAD(file,buffer,len) == ((size_t) (len))) 61 * allocate the buffer in near data space, because we are assuming small-data 74 U_CHAR *iobuffer; /* non-FAR pointer to I/O buffer */ 76 size_t buffer_width; /* width of I/O buffer */ 150 ptr = source->pub.buffer[0]; 168 ptr = source->pub.buffer[0]; 190 ptr = source->pub.buffer[0]; 211 ptr = source->pub.buffer[0]; 225 * In this case we just read right into the JSAMPLE buffer! [all...] |
jdcoefct.c | 8 * This file contains the coefficient buffer controller for decompression. 10 * The coefficient buffer lies between entropy decoding and inverse-DCT steps. 26 /* Private buffer controller object */ 39 /* In single-pass modes, it's sufficient to buffer just one MCU. 44 * buffer is necessary.) 139 * Input and output must run in lockstep since we have only a one-MCU buffer. 172 /* Try to fetch an MCU. Entropy decoder expects buffer to be zeroed. */ 248 * Consume input data and store it in the full-image coefficient buffer. 261 JBLOCKARRAY buffer[MAX_COMPS_IN_SCAN]; local 268 buffer[ci] = (*cinfo->mem->access_virt_barray 458 JBLOCKARRAY buffer[MAX_COMPS_IN_SCAN]; local 560 JBLOCKARRAY buffer; local 720 JBLOCKARRAY buffer; local 973 JBLOCKROW buffer; local 1025 JBLOCKROW buffer; local [all...] |
/external/opencv/cv/src/ |
cvpgh.cpp | 154 float *buffer = local_buffer_ptr; local 176 /* allocate buffer for distances */ 181 buffer = (float *) cvAlloc( buffer_size ); 182 if( !buffer ) 199 buffer[i] = (float)(1./sqrt(dx * dx + dy * dy)); 229 dist_coeff = buffer[i] * dist_scale; 230 angle_coeff = buffer[i] * (_CV_ACOS_TABLE_SIZE / 2); 251 dp = cvRound( dp * angle_coeff * buffer[j] ) + 305 double scale = dist * buffer[i]; 326 if( buffer != local_buffer_ptr 327 cvFree( &buffer ); variable [all...] |
cvderiv.cpp | 48 CvSize src_size, const float* kx, const float* ky, float* buffer ) 55 (kx || ky) && (buffer || !kx || !ky)); 69 buffer = dst; 82 buffer = src; 88 buffer += buffer_step ) 94 buffer[x] = (float)(ky[0]*src[x] + ky[1]*src2[x] + ky[2]*src3[x]); 99 dst[x] = (float)(kx[0]*buffer[x] + kx[1]*buffer[x+1] + kx[2]*buffer[x+2]); 158 CvSize size, int bordertype, uchar bordervalue, void* buffer ); 180 void* buffer = 0; local 801 void* buffer = 0; local [all...] |
/external/opencv/otherlibs/highgui/ |
grfmt_jpeg2000.cpp | 229 jas_matrix_t *buffer = jas_matrix_create( yend / ystep, xend / xstep ); local 230 if( buffer ) 232 if( !jas_image_readcmpt( m_image, cmptlut[i], 0, 0, xend / xstep, yend / ystep, buffer )) 235 result = ReadComponent8u( data + i, buffer, step, cmptlut[i], maxval, offset, ncmpts ); 237 result = ReadComponent16u( ((unsigned short *)data) + i, buffer, step / 2, cmptlut[i], maxval, offset, ncmpts ); 244 jas_matrix_destroy( buffer ); 259 bool GrFmtJpeg2000Reader::ReadComponent8u( uchar *data, jas_matrix_t *buffer, 279 jas_seqent_t* pix_row = &jas_matrix_get( buffer, y / ystep, 0 ); 321 bool GrFmtJpeg2000Reader::ReadComponent16u( unsigned short *data, jas_matrix_t *buffer, 341 jas_seqent_t* pix_row = &jas_matrix_get( buffer, y / ystep, 0 ) [all...] |
/external/qemu/distrib/jpeg-6b/ |
rdppm.c | 55 #define ReadOK(file,buffer,len) (JFREAD(file,buffer,len) == ((size_t) (len))) 61 * allocate the buffer in near data space, because we are assuming small-data 74 U_CHAR *iobuffer; /* non-FAR pointer to I/O buffer */ 76 size_t buffer_width; /* width of I/O buffer */ 150 ptr = source->pub.buffer[0]; 168 ptr = source->pub.buffer[0]; 190 ptr = source->pub.buffer[0]; 211 ptr = source->pub.buffer[0]; 225 * In this case we just read right into the JSAMPLE buffer! [all...] |
jdcoefct.c | 8 * This file contains the coefficient buffer controller for decompression. 10 * The coefficient buffer lies between entropy decoding and inverse-DCT steps. 26 /* Private buffer controller object */ 39 /* In single-pass modes, it's sufficient to buffer just one MCU. 44 * buffer is necessary.) 139 * Input and output must run in lockstep since we have only a one-MCU buffer. 172 /* Try to fetch an MCU. Entropy decoder expects buffer to be zeroed. */ 248 * Consume input data and store it in the full-image coefficient buffer. 261 JBLOCKARRAY buffer[MAX_COMPS_IN_SCAN]; local 268 buffer[ci] = (*cinfo->mem->access_virt_barray 458 JBLOCKARRAY buffer[MAX_COMPS_IN_SCAN]; local 560 JBLOCKARRAY buffer; local 720 JBLOCKARRAY buffer; local 973 JBLOCKROW buffer; local 1025 JBLOCKROW buffer; local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/cdrom/aix/ |
SDL_syscdrom.c | 145 char* buffer; local 150 buffer = (char*)SDL_malloc(10); 152 if ( buffer==NULL ) 161 ret = mntctl ( MCTL_QUERY, bufsz, buffer ); 164 /* Buffer was too small, realloc. */ 165 bufsz = *(int*)buffer; /* Required size is in first word. */ 168 SDL_free(buffer); 169 buffer = (char*)SDL_malloc(bufsz); 170 if ( buffer==NULL ) 191 ptr = (struct vmount*)buffer; [all...] |
/external/skia/legacy/src/effects/ |
SkColorMatrixFilter.cpp | 313 void SkColorMatrixFilter::flatten(SkFlattenableWriteBuffer& buffer) { 314 this->INHERITED::flatten(buffer); 316 buffer.writeFunctionPtr((void*)fProc); 317 buffer.writeMul4(&fState, sizeof(fState)); 318 buffer.write32(fFlags); 323 SkColorMatrixFilter::SkColorMatrixFilter(SkFlattenableReadBuffer& buffer) 324 : INHERITED(buffer) { 325 fProc = (Proc)buffer.readFunctionPtr(); 326 buffer.read(&fState, sizeof(fState)); 327 fFlags = buffer.readU32() [all...] |
/external/skia/legacy/src/images/ |
SkImageDecoder_libico.cpp | 34 //read bytes starting from the begin-th index in the buffer 37 #define readByte(buffer,begin) buffer[begin] 38 #define read2Bytes(buffer,begin) buffer[begin]+(buffer[begin+1]<<8) 39 #define read4Bytes(buffer,begin) buffer[begin]+(buffer[begin+1]<<8)+(buffer[begin+2]<<16)+(buffer[begin+3]<<24 [all...] |
/external/skia/src/effects/ |
SkTableColorFilter.cpp | 60 SkTable_ColorFilter(SkFlattenableReadBuffer& buffer); 160 void SkTable_ColorFilter::flatten(SkFlattenableWriteBuffer& buffer) const { 161 this->INHERITED::flatten(buffer); 170 buffer.writeInt(fFlags); 171 buffer.writeByteArray(storage, size); 174 SkTable_ColorFilter::SkTable_ColorFilter(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) { 179 fFlags = buffer.readInt(); 181 size_t size = buffer.getArrayCount(); 183 buffer.readByteArray(storage) [all...] |
SkMatrixConvolutionImageFilter.cpp | 41 SkMatrixConvolutionImageFilter::SkMatrixConvolutionImageFilter(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) { 42 fKernelSize.fWidth = buffer.readInt(); 43 fKernelSize.fHeight = buffer.readInt(); 46 SkDEBUGCODE(uint32_t readSize = )buffer.readScalarArray(fKernel); 48 fGain = buffer.readScalar(); 49 fBias = buffer.readScalar(); 50 fTarget.fX = buffer.readInt(); 51 fTarget.fY = buffer.readInt(); 52 fTileMode = (TileMode) buffer.readInt() [all...] |
/external/skia/src/images/ |
SkImageDecoder_libico.cpp | 34 //read bytes starting from the begin-th index in the buffer 37 #define readByte(buffer,begin) buffer[begin] 38 #define read2Bytes(buffer,begin) buffer[begin]+(buffer[begin+1]<<8) 39 #define read4Bytes(buffer,begin) buffer[begin]+(buffer[begin+1]<<8)+(buffer[begin+2]<<16)+(buffer[begin+3]<<24 [all...] |
/frameworks/base/media/jni/ |
android_media_Utils.cpp | 213 sp<ABuffer> buffer; local 214 CHECK(msg->findBuffer(key, &buffer)); 217 env, buffer->data(), buffer->size()); 368 sp<ABuffer> buffer = new ABuffer(limit - position); local 373 memcpy(buffer->data(), 375 buffer->size()); 388 buffer->size(), 389 (jbyte *)buffer->data()); 394 msg->setBuffer(key.c_str(), buffer); [all...] |
/sdk/find_java/ |
find_java_lib.cpp | 165 char* buffer = (char*) malloc(size);
local 173 (LPBYTE) buffer, // lpData
178 buffer = (char*) realloc(buffer, size);
180 buffer[size] = 0;
184 if (ret != ERROR_MORE_DATA) outValue->set(buffer);
186 free(buffer);
441 0)) { // nSize (0=default buffer size)
488 char buffer[SIZE];
local 492 // Keep reading in the same buffer location [all...] |
/external/icu4c/test/intltest/ |
ustrtest.cpp | 201 UChar buffer[10]={ 0x61, 0x62, 0x20ac, 0xd900, 0xdc05, 0, 0x62, 0xffff, 0xdbff, 0xdfff }; local 202 UnicodeString s, t(buffer, -1, LENGTHOF(buffer)); 204 if(s.setTo(buffer, -1, LENGTHOF(buffer)).length()!=u_strlen(buffer)) { 205 errln("UnicodeString.setTo(buffer, length, capacity) does not work with length==-1"); 207 if(t.length()!=u_strlen(buffer)) { 208 errln("UnicodeString(buffer, length, capacity) does not work with length==-1"); 211 if(0!=s.caseCompare(buffer, -1, U_FOLD_CASE_DEFAULT)) 250 char buffer[16]; local 582 char buffer[32]; local 1268 UChar buffer[]={0x0061, 0x0062, 0x20ac, 0x0043, 0x0042, 0x0000}; local 1371 const UChar *buffer=s.getTerminatedBuffer(); local 1898 char buffer[64]; local 2040 UChar *buffer=app.getAppendBuffer(3, 3, scratch, 3, &capacity); local [all...] |
/frameworks/av/media/libstagefright/ |
MPEG4Writer.cpp | 394 char buffer[SIZE]; local 396 snprintf(buffer, SIZE, " MPEG4Writer %p\n", this); 397 result.append(buffer); 398 snprintf(buffer, SIZE, " mStarted: %s\n", mStarted? "true": "false"); 399 result.append(buffer); 411 char buffer[SIZE]; local 413 snprintf(buffer, SIZE, " %s track\n", mIsAudio? "Audio": "Video"); 414 result.append(buffer); 415 snprintf(buffer, SIZE, " reached EOS: %s\n", 417 result.append(buffer); 2099 MediaBuffer *buffer; local [all...] |
/external/e2fsprogs/misc/ |
badblocks.c | 260 static void set_o_direct(int dev, unsigned char *buffer, size_t size, 267 if ((((unsigned long) buffer & (sys_page_size - 1)) != 0) || 285 static void pattern_fill(unsigned char *buffer, unsigned int pattern, 292 for (ptr = buffer; ptr < buffer + n; ptr++) { 306 for (ptr = buffer, i = nb; ptr < buffer + n; ptr++) { 316 fprintf(stderr, "%02x", buffer[i]); 326 static int do_read (int dev, unsigned char * buffer, int try, int block_size, 334 set_o_direct(dev, buffer, try * block_size, current_block) 553 unsigned char *buffer, *read_buffer; local [all...] |
/external/qemu/android/ |
async-socket.c | 73 /* Buffer where to read / write data. */ 74 uint8_t* buffer; member in struct:AsyncSocketIO 117 * buffer, len - Reader / writer buffer address. 127 void* buffer, 147 asio->buffer = (uint8_t*)buffer; 225 * buffer, len - Reader's buffer. 234 void* buffer, [all...] |
/external/v8/test/cctest/ |
test-macro-assembler-x64.cc | 83 // a buffer and executing them. These tests do not initialize the 156 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, local 159 CHECK(buffer); 162 buffer, local 190 int result = FUNCTION_CAST<F0>(buffer)(); 245 byte* buffer = local 249 CHECK(buffer); 252 buffer, local 288 int result = FUNCTION_CAST<F0>(buffer)(); 298 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize local 304 buffer, local 428 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, local 434 buffer, local 474 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, local 480 buffer, local 723 byte* buffer = local 730 buffer, local 814 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, local 820 buffer, local 1005 byte* buffer = local 1012 buffer, local 1098 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, local 1104 buffer, local 1205 byte* buffer = local 1212 buffer, local 1317 byte* buffer = local 1324 buffer, local 1415 byte* buffer = local 1422 buffer, local 1486 byte* buffer = local 1493 buffer, local 1567 byte* buffer = local 1574 buffer, local 1650 byte* buffer = local 1657 buffer, local 1735 byte* buffer = local 1742 buffer, local 1804 byte* buffer = local 1811 buffer, local 1902 byte* buffer = local 1909 buffer, local 2010 byte* buffer = local 2017 buffer, local 2081 byte* buffer = local 2088 buffer, local 2147 byte* buffer = local 2154 buffer, local 2192 byte* buffer = local 2199 buffer, local [all...] |
/external/webkit/Source/WebKit/chromium/src/ |
PlatformBridge.cpp | 153 PasteboardPrivate::ClipboardBuffer buffer) 157 static_cast<WebClipboard::Buffer>(buffer)); 161 PasteboardPrivate::ClipboardBuffer buffer) 164 static_cast<WebClipboard::Buffer>(buffer)); 168 PasteboardPrivate::ClipboardBuffer buffer, 173 static_cast<WebClipboard::Buffer>(buffer), &url); 178 PasteboardPrivate::ClipboardBuffer buffer) 930 url_canon::RawCanonOutput<2048> buffer; local 944 url_canon::RawCanonOutput<2048> buffer; local [all...] |
/device/samsung/manta/audio/ |
audio_hw.c | 178 int16_t *buffer; member in struct:stream_in 804 struct resampler_buffer* buffer) 809 if (buffer_provider == NULL || buffer == NULL) 816 buffer->raw = NULL; 817 buffer->frame_count = 0; 824 (void*)in->buffer, 828 buffer->raw = NULL; 829 buffer->frame_count = 0; 838 in->buffer[i] = in->buffer[i * 2] [all...] |
/external/chromium/chrome/browser/importer/ |
ie_importer.cc | 248 unsigned char* buffer = NULL; local 250 item_name, &length, &buffer, NULL, 0); 255 data.insert(0, reinterpret_cast<wchar_t*>(buffer), 267 CoTaskMemFree(buffer); 504 wchar_t buffer[MAX_PATH]; local 506 SHGFP_TYPE_CURRENT, buffer))) 508 info->path = FilePath(buffer); 516 DWORD buffer_length = sizeof(buffer); 519 if (reg_key.ReadValue(L"LinksFolderName", buffer, 522 info->links_folder = buffer; 600 wchar_t buffer[128]; local [all...] |