| /external/deqp/framework/delibs/dethread/ |
| deThreadTest.c | 358 deInt32 buffer[32]; member in struct:TestBuffer_s 368 TestBuffer* buffer = (TestBuffer*)arg; local 390 deSemaphore_decrement(buffer->empty); 392 buffer->buffer[writePos] = val; 393 writePos = (writePos + 1) % DE_LENGTH_OF_ARRAY(buffer->buffer); 395 deSemaphore_increment(buffer->fill); 397 buffer->producerSum += val; 403 TestBuffer* buffer = (TestBuffer*)arg local [all...] |
| /external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
| pb_bufmgr_debug.c | 30 * Debug buffer manager to detect buffer under- and overflows. 66 * Wrapper around a pipe buffer which adds delayed destruction. 72 struct pb_buffer *buffer; member in struct:pb_debug_buffer 161 map = pb_map(buf->buffer, PB_USAGE_CPU_WRITE, NULL); 167 pb_unmap(buf->buffer); 175 * Should be called with the buffer unmaped. 182 map = pb_map(buf->buffer, 193 debug_printf("buffer underflow (offset -%u%s to -%u bytes) detected\n", 203 debug_printf("buffer overflow (size %u plus offset %u to %u%s bytes) detected\n" [all...] |
| /external/openssl/apps/ |
| s_cb.c | 769 unsigned char *buffer, result[EVP_MAX_MD_SIZE]; local 793 /* Create buffer with peer's address and port */ 811 buffer = OPENSSL_malloc(length); 813 if (buffer == NULL) 822 memcpy(buffer, 825 memcpy(buffer + sizeof(peer.s4.sin_port), 831 memcpy(buffer, 834 memcpy(buffer + sizeof(peer.s6.sin6_port), 844 /* Calculate HMAC of buffer using the secret */ 846 buffer, length, result, &resultlength) local 857 unsigned char *buffer, result[EVP_MAX_MD_SIZE]; local 927 buffer, length, result, &resultlength); local [all...] |
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
| ItsUtils.java | 136 // JPEG doesn't have pixelstride and rowstride, treat it as 1D buffer. 137 ByteBuffer buffer = planes[0].getBuffer(); local 138 data = new byte[buffer.capacity()]; 139 buffer.get(data); 153 ByteBuffer buffer = planes[i].getBuffer(); local 167 buffer.get(data, offset, length); 168 // Advance buffer the remainder of the row stride 170 buffer.position(buffer.position() + rowStride - length); 175 // Use intermediate buffer to avoid read byte-by-byte fro [all...] |
| /developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/ |
| MediaCodecWrapper.java | 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations. 51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 // to keep track of which buffer is which. 73 // Information about each output buffer, by index. Each entry in this array 174 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 179 * at which this buffer should be rendered. 196 ByteBuffer buffer = mInputBuffers[index]; local 198 // we can't write our sample to a lesser capacity input buffer. 199 if (size > buffer.capacity()) { 201 "Insufficient capacity in MediaCodec buffer: 251 ByteBuffer buffer = mInputBuffers[index]; local 315 ByteBuffer buffer = mOutputBuffers[index]; local [all...] |
| /developers/build/prebuilts/gradle/BasicRenderScript/Application/src/main/java/com/example/android/common/media/ |
| MediaCodecWrapper.java | 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations. 51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 // to keep track of which buffer is which. 73 // Information about each output buffer, by index. Each entry in this array 174 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 179 * at which this buffer should be rendered. 196 ByteBuffer buffer = mInputBuffers[index]; local 198 // we can't write our sample to a lesser capacity input buffer. 199 if (size > buffer.capacity()) { 201 "Insufficient capacity in MediaCodec buffer: 251 ByteBuffer buffer = mInputBuffers[index]; local 315 ByteBuffer buffer = mOutputBuffers[index]; local [all...] |
| /developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/common/media/ |
| MediaCodecWrapper.java | 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations. 51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 // to keep track of which buffer is which. 73 // Information about each output buffer, by index. Each entry in this array 174 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 179 * at which this buffer should be rendered. 196 ByteBuffer buffer = mInputBuffers[index]; local 198 // we can't write our sample to a lesser capacity input buffer. 199 if (size > buffer.capacity()) { 201 "Insufficient capacity in MediaCodec buffer: 251 ByteBuffer buffer = mInputBuffers[index]; local 315 ByteBuffer buffer = mOutputBuffers[index]; local [all...] |
| /developers/samples/android/common/src/java/com/example/android/common/media/ |
| MediaCodecWrapper.java | 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations. 51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 // to keep track of which buffer is which. 73 // Information about each output buffer, by index. Each entry in this array 174 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 179 * at which this buffer should be rendered. 196 ByteBuffer buffer = mInputBuffers[index]; local 198 // we can't write our sample to a lesser capacity input buffer. 199 if (size > buffer.capacity()) { 201 "Insufficient capacity in MediaCodec buffer: 251 ByteBuffer buffer = mInputBuffers[index]; local 315 ByteBuffer buffer = mOutputBuffers[index]; local [all...] |
| /development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
| MediaCodecWrapper.java | 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations. 51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 // to keep track of which buffer is which. 73 // Information about each output buffer, by index. Each entry in this array 174 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 179 * at which this buffer should be rendered. 196 ByteBuffer buffer = mInputBuffers[index]; local 198 // we can't write our sample to a lesser capacity input buffer. 199 if (size > buffer.capacity()) { 201 "Insufficient capacity in MediaCodec buffer: 251 ByteBuffer buffer = mInputBuffers[index]; local 315 ByteBuffer buffer = mOutputBuffers[index]; local [all...] |
| /development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/ |
| MediaCodecWrapper.java | 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations. 51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 // to keep track of which buffer is which. 73 // Information about each output buffer, by index. Each entry in this array 174 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 179 * at which this buffer should be rendered. 196 ByteBuffer buffer = mInputBuffers[index]; local 198 // we can't write our sample to a lesser capacity input buffer. 199 if (size > buffer.capacity()) { 201 "Insufficient capacity in MediaCodec buffer: 251 ByteBuffer buffer = mInputBuffers[index]; local 315 ByteBuffer buffer = mOutputBuffers[index]; local [all...] |
| /development/samples/browseable/MediaRecorder/src/com.example.android.common.media/ |
| MediaCodecWrapper.java | 30 * Simplifies the MediaCodec interface by wrapping around the buffer processing operations. 51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 // to keep track of which buffer is which. 73 // Information about each output buffer, by index. Each entry in this array 174 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 179 * at which this buffer should be rendered. 196 ByteBuffer buffer = mInputBuffers[index]; local 198 // we can't write our sample to a lesser capacity input buffer. 199 if (size > buffer.capacity()) { 201 "Insufficient capacity in MediaCodec buffer: 251 ByteBuffer buffer = mInputBuffers[index]; local 315 ByteBuffer buffer = mOutputBuffers[index]; local [all...] |
| /external/chromium_org/content/child/webcrypto/openssl/ |
| aes_ctr_openssl.cc | 42 // |output| must be a pointer to a buffer which has a length of at least 160 std::vector<uint8_t>* buffer) { 173 // expects buffer sizes as an "int". 183 buffer->resize(output_max_len.ValueOrDie()); 198 CeilDiv(buffer->size(), static_cast<size_t>(AES_BLOCK_SIZE)))) { 225 vector_as_array(buffer)); 244 vector_as_array(buffer)); 258 vector_as_array(buffer) + input_size_part1); 268 std::vector<uint8_t>* buffer) const OVERRIDE { 269 return AesCtrEncryptDecrypt(algorithm, key, data, buffer); [all...] |
| /external/chromium_org/content/renderer/gpu/ |
| compositor_software_output_device.cc | 25 CompositorSoftwareOutputDevice::Buffer::Buffer( 30 CompositorSoftwareOutputDevice::Buffer::~Buffer() { 33 void CompositorSoftwareOutputDevice::Buffer::SetParent( 34 Buffer* parent, const gfx::Rect& damage) { 39 bool CompositorSoftwareOutputDevice::Buffer::FindDamageDifferenceFrom( 40 Buffer* buffer, SkRegion* result) const { 41 if (!buffer) 190 Buffer* buffer = buffers_[i]; local 204 Buffer* buffer = buffers_[current_index_]; local [all...] |
| /external/chromium_org/net/tools/quic/test_tools/ |
| packet_dropping_test_writer.cc | 77 const char* buffer, 104 // Drop packets which do not fit into the buffer. 105 DVLOG(1) << "Dropping packet because the buffer is full."; 120 delayed_packets_.push_back(DelayedWrite(buffer, buf_len, self_address, 133 buffer, buf_len, self_address, peer_address); 170 iter->buffer.data(), iter->buffer.length(), 172 DCHECK_GE(cur_buffer_size_, iter->buffer.length()); 173 cur_buffer_size_ -= iter->buffer.length(); 199 const char* buffer, [all...] |
| /external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/ |
| SimpleFontDataCoreText.cpp | 75 static bool shouldUseCoreText(UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) 83 if (bufferLength >= 2 && U_IS_SURROGATE(buffer[0]) && fontData->hasVerticalGlyphs()) { 84 ASSERT(U_IS_SURROGATE_LEAD(buffer[0])); 85 ASSERT(U_IS_TRAIL(buffer[1])); 92 if (!Character::isCJKIdeograph(buffer[i])) 100 bool SimpleFontData::fillGlyphPage(GlyphPage* pageToFill, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength) const 105 if (!shouldUseCoreText(buffer, bufferLength, this)) { 106 CGFontGetGlyphsForUnichars(platformData().cgFont(), buffer, glyphs.data(), bufferLength); 114 && CTFontGetGlyphsForCharacters(platformData().ctFont(), buffer, glyphs.data(), bufferLength)) { 115 // When buffer consists of surrogate pairs, CTFontGetGlyphsForCharacter [all...] |
| /external/chromium_org/third_party/WebKit/Source/platform/image-encoders/skia/ |
| JPEGImageEncoder.cpp | 48 Vector<unsigned char> buffer; member in struct:blink::JPEGOutputBuffer 55 out->buffer.resize(internalBufferSize); 56 out->next_output_byte = out->buffer.data(); 57 out->free_in_buffer = out->buffer.size(); 63 out->output->append(out->buffer.data(), out->buffer.size()); 64 out->next_output_byte = out->buffer.data(); 65 out->free_in_buffer = out->buffer.size(); 72 const size_t size = out->buffer.size() - out->free_in_buffer; 73 out->output->append(out->buffer.data(), size) [all...] |
| /external/chromium_org/third_party/brotli/src/woff2/ |
| normalize.cc | 22 #include "./buffer.h" 87 glyf_table->buffer.resize(max_normalized_glyf_size); 88 loca_table->buffer.resize(Round4(loca_table->length)); 89 uint8_t* glyf_dst = &glyf_table->buffer[0]; 90 uint8_t* loca_dst = &loca_table->buffer[0]; 104 size_t glyf_dst_size = glyf_table->buffer.size() - glyf_offset; 118 glyf_table->buffer.resize(glyf_offset); 119 glyf_table->data = &glyf_table->buffer[0]; 121 loca_table->data = &loca_table->buffer[0]; 171 head_table->buffer.resize(Round4(head_table->length)) [all...] |
| /external/chromium_org/third_party/tcmalloc/chromium/src/ |
| deep-heap-profile.h | 25 // int is used to represent buffer sizes instead of size_t. 28 // for buffer sizes. 111 // Manages a buffer to keep a text to be dumped to a file. 157 TextBuffer* buffer) const = 0; 180 TextBuffer* buffer) const; 206 TextBuffer* buffer) const; 241 void UnparseForStats(TextBuffer* buffer); 242 void UnparseForBucketFile(TextBuffer* buffer); 271 // Writes stats of the hash table to |buffer| for DumpOrderedProfile. 272 void UnparseForStats(TextBuffer* buffer); [all...] |
| /external/chromium_org/third_party/webrtc/base/ |
| flags.cc | 140 char* buffer, int buffer_size, 167 memcpy(buffer, *name, n * sizeof(char)); 168 buffer[n] = '\0'; 169 *name = buffer; 185 char buffer[1024]; local 189 SplitArgument(arg, buffer, sizeof buffer, &name, &value, &is_bool); 277 char *buffer = new char[s.length() + 1]; local 278 rtc::strcpyn(buffer, s.length() + 1, s.c_str()); 281 argv_[i] = buffer; [all...] |
| /external/opencv/otherlibs/highgui/ |
| grfmt_png.cpp | 185 uchar** buffer = 0; local 229 buffer = new uchar*[m_height]; 232 buffer[y] = data + y*step; 234 png_read_image( png_ptr, buffer ); 242 delete[] buffer; 272 uchar** buffer = 0; local 307 buffer = new uchar*[height]; 309 buffer[y] = (uchar*)(data + y*step); 311 png_write_image( png_ptr, buffer ); 314 delete[] buffer; [all...] |
| /external/chromium_org/media/filters/ |
| source_buffer_stream_unittest.cc | 227 scoped_refptr<StreamParserBuffer> buffer; local 228 SourceBufferStream::Status status = stream_->GetNextBuffer(&buffer); 235 EXPECT_TRUE(buffer->IsKeyframe()); 238 const uint8* actual_data = buffer->data(); 239 const int actual_size = buffer->data_size(); 246 EXPECT_EQ(buffer->GetDecodeTimestamp() / frame_duration_, 260 scoped_refptr<StreamParserBuffer> buffer; local 261 SourceBufferStream::Status status = stream_->GetNextBuffer(&buffer); 289 ss << buffer->timestamp().InMilliseconds(); 291 if (buffer->GetDecodeTimestamp() ! 337 scoped_refptr<StreamParserBuffer> buffer; local 390 scoped_refptr<StreamParserBuffer> buffer = local 533 scoped_refptr<StreamParserBuffer> buffer = local 1925 scoped_refptr<StreamParserBuffer> buffer; local 2301 scoped_refptr<StreamParserBuffer> buffer; local 2992 scoped_refptr<StreamParserBuffer> buffer; local 3013 scoped_refptr<StreamParserBuffer> buffer; local [all...] |
| /external/chromium_org/content/renderer/pepper/ |
| pepper_media_stream_audio_track_host.cc | 30 // Audio buffer durations in milliseconds. 155 // buffer may be larger than requested, since the size of each buffer will be 189 // thread, the buffer should become invalid already. We should ignore it. 205 // the incomming audio buffer. However, this doesn't necessarily equal 206 // |buffer->number_of_samples|, which is configured by the user when they set 207 // buffer duration. 219 // Buffers have changed, so drop the active buffer. 234 ppapi::MediaStreamBuffer::Audio* buffer = local 238 // The active buffer is new, so initialise the header and metadata fields [all...] |
| /external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/ |
| rtp_format_h264.cc | 198 bool RtpPacketizerH264::NextPacket(uint8_t* buffer, 213 memcpy(buffer, &payload_data_[packet.offset], packet.size); 217 NextAggregatePacket(buffer, bytes_to_send); 220 NextFragmentPacket(buffer, bytes_to_send); 227 void RtpPacketizerH264::NextAggregatePacket(uint8_t* buffer, 232 buffer[0] = (packet.header & (kFBit | kNriMask)) | kStapA; 237 RtpUtility::AssignUWord16ToBuffer(&buffer[index], packet.size); 241 memcpy(&buffer[index], &payload_data_[packet.offset], packet.size); 252 void RtpPacketizerH264::NextFragmentPacket(uint8_t* buffer, 266 buffer[0] = fu_indicator [all...] |
| /external/chromium_org/third_party/webrtc/video_engine/ |
| vie_capturer_unittest.cc | 99 output_frame_ybuffers_.push_back(frame->buffer(kYPlane)); 151 ybuffer_pointers.push_back(input_frames_[i]->buffer(kYPlane)); 152 // Copy input frames because the buffer data will be swapped. 159 // Make sure the buffer is swapped and not copied. 227 (memcmp(frame1.buffer(kYPlane), frame2.buffer(kYPlane), 229 (memcmp(frame1.buffer(kUPlane), frame2.buffer(kUPlane), 231 (memcmp(frame1.buffer(kVPlane), frame2.buffer(kVPlane) 252 uint8_t buffer[kSizeY]; local [all...] |
| /external/ipsec-tools/src/racoon/missing/crypto/sha2/ |
| sha2.c | 339 bzero(context->buffer, SHA256_BLOCK_LENGTH); 385 W256 = (sha2_word32*)context->buffer; 443 W256 = (sha2_word32*)context->buffer; 531 /* Calculate how much free space is available in the buffer */ 535 /* Fill the buffer completely and process it */ 536 bcopy(data, &context->buffer[usedspace], freespace); 540 SHA256_Transform(context, (sha2_word32*)context->buffer); 542 /* The buffer is not yet full */ 543 bcopy(data, &context->buffer[usedspace], len); 559 bcopy(data, context->buffer, len) [all...] |