Searched defs:buffer (Results 276 - 300 of 475) sorted by relevance

<<111213141516171819

/frameworks/native/services/surfaceflinger/
H A DMonitoredProducer.cpp78 const sp<GraphicBuffer>& buffer) {
79 return mProducer->attachBuffer(outSlot, buffer);
77 attachBuffer(int* outSlot, const sp<GraphicBuffer>& buffer) argument
/frameworks/volley/src/com/android/volley/toolbox/
H A DDiskBasedCache.java455 public int read(byte[] buffer, int offset, int count) throws IOException { argument
456 int result = super.read(buffer, offset, count);
/frameworks/wilhelm/src/android/util/
H A DAacAdtsExtractor.cpp266 SL_LOGE("Can't seek in AAC ADTS buffer queue");
277 MediaBuffer *buffer; local
278 status_t err = mGroup->acquire_buffer(&buffer);
284 ssize_t readSize = mDataSource->readAt(mOffset + ADTS_HEADER_LENGTH, buffer->data(),
289 buffer->release();
290 buffer = NULL;
294 buffer->set_range(0, frameSizeWithoutHeader);
295 buffer->meta_data()->setInt64(kKeyTime, mCurrentTimeUs);
296 buffer->meta_data()->setInt32(kKeyIsSyncFrame, 1);
301 *out = buffer;
[all...]
/frameworks/wilhelm/tests/examples/
H A DslesTestFeedback.cpp46 // Storage area for the buffer queues
67 // Called after audio recorder fills a buffer with data
74 // We should only be called when a recording buffer is done
78 char *buffer = rxBuffers[rxFront]; local
80 // Remove buffer from record queue
86 ssize_t actual = pipeWriter->write(buffer, (size_t) bufSizeInFrames);
91 // Enqueue this same buffer for the recorder to fill again.
92 result = (*recorderBufferQueue)->Enqueue(recorderBufferQueue, buffer, bufSizeInBytes);
101 rxBuffers[rxRear] = buffer;
105 // Enqueue the just-filled buffer fo
158 char *buffer = txBuffers[txFront]; local
403 char *buffer = freeBuffers[freeFront]; local
467 char *buffer = freeBuffers[freeFront]; local
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dintbufq.c17 /* interactive buffer queue test program */
175 frame_t *buffer; local
189 buffer = sine;
193 buffer = square;
197 buffer = half;
213 buffer = sawtooth;
217 result = (*playerBufferqueue)->Enqueue(playerBufferqueue, buffer, size);
H A Dmultiplay.c65 static char buffer[32]; local
68 sprintf(buffer, "%d", (int) result);
69 return buffer;
/frameworks/av/camera/
H A DCameraMetadata.cpp49 CameraMetadata::CameraMetadata(camera_metadata_t *buffer) : argument
51 acquire(buffer);
58 CameraMetadata &CameraMetadata::operator=(const camera_metadata_t *buffer) { argument
64 if (CC_LIKELY(buffer != mBuffer)) {
65 camera_metadata_t *newBuffer = clone_camera_metadata(buffer);
82 status_t CameraMetadata::unlock(const camera_metadata_t *buffer) { argument
87 if (buffer != mBuffer) {
117 void CameraMetadata::acquire(camera_metadata_t *buffer) { argument
123 mBuffer = buffer;
127 __FUNCTION__, buffer); local
629 camera_metadata *buffer = NULL; local
[all...]
/frameworks/av/drm/drmserver/
H A DDrmManagerService.cpp275 void* buffer, ssize_t numBytes, off64_t offset) {
280 return mDrmManager->pread(uniqueId, decryptHandle, buffer, numBytes, offset);
286 char buffer[SIZE]; local
289 snprintf(buffer, SIZE, "Permission Denial: "
293 result.append(buffer);
274 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DFwdLockFile.c377 unsigned char buffer[SIG_CALC_BUFFER_SIZE]; member in struct:FwdLockFile_CheckDataIntegrity_Data
390 read(pSession->fileDesc, pData->buffer, SIG_CALC_BUFFER_SIZE)) > 0) {
391 HMAC_Update(&pSession->signingContext, pData->buffer, (size_t)numBytesRead);
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp99 const DrmBuffer* buffer = new DrmBuffer(data, bufferSize); local
101 DrmInfoRequest::TYPE_RIGHTS_ACQUISITION_INFO, buffer, drmInfo->getMimeType());
279 * encrypted buffer as it is to decrypted buffer. Note, decBuffer
302 void* buffer, ssize_t numBytes, off64_t offset) {
301 onPread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/media/libstagefright/
H A DAudioPlayer.cpp94 // updated format, if there isn't, we'll stash away the valid buffer
316 // amount of residual data in the hardware buffer which we must
338 // Make sure to release any buffer we hold onto so that the
347 ALOGV("AudioPlayer releasing input buffer.");
424 void *buffer, size_t size, void *cookie,
430 return me->fillBuffer(buffer, size);
451 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info; local
452 size_t numBytesWritten = fillBuffer(buffer->raw, buffer->size);
453 buffer
422 AudioSinkCallback( MediaPlayerBase::AudioSink * , void *buffer, size_t size, void *cookie, MediaPlayerBase::AudioSink::cb_event_t event) argument
[all...]
H A DMediaCodecSource.cpp307 MediaBuffer** buffer, const ReadOptions* /* options */) {
310 *buffer = NULL;
315 *buffer = *mOutputBufferQueue.begin();
322 void MediaCodecSource::signalBufferReturned(MediaBuffer *buffer) { argument
323 buffer->setObserver(0);
324 buffer->release();
306 read( MediaBuffer** buffer, const ReadOptions* ) argument
H A DNuMediaExtractor.cpp445 status_t NuMediaExtractor::readSampleData(const sp<ABuffer> &buffer) { argument
464 if (buffer->capacity() < sampleSize) {
472 memcpy((uint8_t *)buffer->data(), src, info->mSample->range_length());
481 memcpy((uint8_t *)buffer->data() + info->mSample->range_length(),
486 buffer->setRange(0, sampleSize);
H A DOMXClient.cpp93 buffer_id *buffer);
97 const sp<GraphicBuffer> &graphicBuffer, buffer_id *buffer);
101 const sp<GraphicBuffer> &graphicBuffer, buffer_id buffer);
111 buffer_id *buffer, void **buffer_data);
115 buffer_id *buffer);
118 node_id node, OMX_U32 port_index, buffer_id buffer);
120 virtual status_t fillBuffer(node_id node, buffer_id buffer);
124 buffer_id buffer,
317 buffer_id *buffer) {
318 return getOMX(node)->useBuffer(node, port_index, params, buffer);
315 useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> &params, buffer_id *buffer) argument
321 useGraphicBuffer( node_id node, OMX_U32 port_index, const sp<GraphicBuffer> &graphicBuffer, buffer_id *buffer) argument
328 updateGraphicBufferInMeta( node_id node, OMX_U32 port_index, const sp<GraphicBuffer> &graphicBuffer, buffer_id buffer) argument
347 allocateBuffer( node_id node, OMX_U32 port_index, size_t size, buffer_id *buffer, void **buffer_data) argument
354 allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> &params, buffer_id *buffer) argument
361 freeBuffer( node_id node, OMX_U32 port_index, buffer_id buffer) argument
366 fillBuffer(node_id node, buffer_id buffer) argument
370 emptyBuffer( node_id node, buffer_id buffer, OMX_U32 range_offset, OMX_U32 range_length, OMX_U32 flags, OMX_TICKS timestamp) argument
[all...]
H A DStagefrightMetadataRetriever.cpp179 // Read one output buffer, ignore format change notifications
205 MediaBuffer *buffer = NULL; local
207 if (buffer != NULL) {
208 buffer->release();
209 buffer = NULL;
211 err = decoder->read(&buffer, &options);
214 || (buffer != NULL && buffer->range_length() == 0));
217 CHECK(buffer == NULL);
228 if (buffer
[all...]
H A DWAVExtractor.cpp69 MediaBuffer **buffer, const ReadOptions *options = NULL);
370 // As a temporary buffer for 8->16 bit conversion.
423 MediaBuffer *buffer; local
424 status_t err = mGroup->acquire_buffer(&buffer);
456 mCurrentPos, buffer->data(),
460 buffer->release();
461 buffer = NULL;
466 buffer->set_range(0, n);
475 // The new buffer holds the sample number of samples, but each
480 const uint8_t *src = (const uint8_t *)buffer
[all...]
/frameworks/av/media/libstagefright/codecs/avc/enc/
H A DSoftAVCEncoder.cpp350 MediaBuffer *buffer = mOutputBuffers.editItemAt(i); local
351 buffer->setObserver(NULL);
352 buffer->release();
508 // Combine SPS and PPS and place them in the very first output buffer
544 // Save the input buffer info so that it can be
545 // passed to an output buffer
565 ALOGE("MetaData buffer is wrong size! "
577 ALOGE("Unable to extract gralloc buffer in metadata mode");
625 dataLength = outHeader->nAllocLen; // Reset the output buffer length
686 MediaBuffer *buffer local
706 signalBufferReturned(MediaBuffer *buffer) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DAMessage.cpp249 void AMessage::setBuffer(const char *name, const sp<ABuffer> &buffer) { argument
250 setObjectInternal(name, sp<RefBase>(buffer), kTypeBuffer);
486 sp<ABuffer> buffer = static_cast<ABuffer *>(item.u.refValue); local
488 if (buffer != NULL && buffer->data() != NULL && buffer->size() <= 64) {
490 hexdump(buffer->data(), buffer->size(), indent + 4, &tmp);
495 "Buffer *%s = %p", item.mName, buffer.get());
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4AudioAssembler.cpp69 sp<ABuffer> buffer = new ABuffer(outLen); local
70 uint8_t *out = buffer->data();
95 return buffer;
362 sp<ABuffer> AMPEG4AudioAssembler::removeLATMFraming(const sp<ABuffer> &buffer) { argument
365 sp<ABuffer> out = new ABuffer(buffer->size());
369 uint8_t *ptr = buffer->data();
382 CHECK_LT(offset, buffer->size());
408 CHECK_LE(offset + payloadLength, buffer->size());
419 CHECK_LE(offset + (mOtherDataLenBits / 8), buffer->size());
424 if (offset < buffer
508 sp<ABuffer> buffer = *queue->begin(); local
[all...]
H A DAPacketSource.cpp78 sp<ABuffer> buffer = new ABuffer(outLen); local
79 uint8_t *out = buffer->data();
104 return buffer;
H A DARTPConnection.cpp311 sp<ABuffer> buffer = new ABuffer(kMaxUDPSize); local
328 buffer->setRange(0, 0);
333 source->addReceiverReport(buffer);
336 source->addFIR(buffer);
340 if (buffer->size() > 0) {
346 s->mRTCPSocket, buffer->data(), buffer->size(), 0,
359 CHECK_EQ(n, (ssize_t)buffer->size());
378 sp<ABuffer> buffer = new ABuffer(65536); local
388 buffer
413 parseRTP(StreamInfo *s, const sp<ABuffer> &buffer) argument
499 parseRTCP(StreamInfo *s, const sp<ABuffer> &buffer) argument
641 injectPacket(int index, const sp<ABuffer> &buffer) argument
652 sp<ABuffer> buffer; local
[all...]
H A DARTPWriter.cpp176 static void StripStartcode(MediaBuffer *buffer) { argument
177 if (buffer->range_length() < 4) {
182 (const uint8_t *)buffer->data() + buffer->range_offset();
185 buffer->set_range(
186 buffer->range_offset() + 4, buffer->range_length() - 4);
198 MediaBuffer *buffer;
199 CHECK_EQ(mSource->read(&buffer), (status_t)OK);
201 StripStartcode(buffer);
299 sp<ABuffer> buffer = new ABuffer(65536); local
311 send(const sp<ABuffer> &buffer, bool isRTCP) argument
330 addSR(const sp<ABuffer> &buffer) argument
369 addSDES(const sp<ABuffer> &buffer) argument
526 makeH264SPropParamSets(MediaBuffer *buffer) argument
555 sp<ABuffer> buffer = new ABuffer(8); local
582 sp<ABuffer> buffer = new ABuffer(kMaxPacketSize); local
686 sp<ABuffer> buffer = new ABuffer(kMaxPacketSize); local
773 sp<ABuffer> buffer = new ABuffer(kMaxPacketSize); local
[all...]
/frameworks/av/media/libstagefright/webm/
H A DWebmFrameThread.cpp334 MediaBuffer *buffer; local
335 while (!mDone && (err = mSource->read(&buffer, NULL)) == OK) {
336 if (buffer->range_length() == 0) {
337 buffer->release();
338 buffer = NULL;
342 sp<MetaData> md = buffer->meta_data();
352 buffer->release();
353 buffer = NULL;
376 buffer);
384 buffer
[all...]
/frameworks/av/media/libstagefright/wifi-display/source/
H A DConverter.cpp500 sp<ABuffer> buffer = *mInputBufferQueue.begin(); local
503 int16_t *ptr = (int16_t *)buffer->data();
504 int16_t *stop = (int16_t *)(buffer->data() + buffer->size());
519 size_t copy = buffer->size();
525 buffer->data(),
530 buffer->setRange(buffer->offset() + copy, buffer->size() - copy);
533 CHECK(buffer
611 sp<ABuffer> buffer = *mInputBufferQueue.begin(); local
722 sp<ABuffer> buffer; local
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaExtractor.cpp167 ssize_t AMediaExtractor_readSampleData(AMediaExtractor *mData, uint8_t *buffer, size_t capacity) { argument
169 sp<ABuffer> tmp = new ABuffer(buffer, capacity);
225 sp<ABuffer> buffer; local
226 if(!format->findBuffer("pssh", &buffer)) {
230 // the format of the buffer is 1 or more of:
239 const uint8_t* data = buffer->data();
240 size_t len = buffer->size();
259 // there are <numentries> in the source buffer, we need
260 // (source buffer size) - (sizeof(uint32_t) * numentries) + sizeof(size_t)
265 size_t newsize = buffer
[all...]

Completed in 1486 milliseconds

<<111213141516171819