Searched refs:buffer (Results 1 - 25 of 1380) sorted by path

1234567891011>>

/frameworks/av/camera/
H A DCameraMetadata.cpp50 CameraMetadata::CameraMetadata(camera_metadata_t *buffer) : argument
52 acquire(buffer);
59 CameraMetadata &CameraMetadata::operator=(const camera_metadata_t *buffer) { argument
65 if (CC_LIKELY(buffer != mBuffer)) {
66 camera_metadata_t *newBuffer = clone_camera_metadata(buffer);
83 status_t CameraMetadata::unlock(const camera_metadata_t *buffer) const {
88 if (buffer != mBuffer) {
118 void CameraMetadata::acquire(camera_metadata_t *buffer) { argument
124 mBuffer = buffer;
128 __FUNCTION__, buffer); local
656 camera_metadata *buffer = NULL; local
[all...]
H A DCameraParameters.cpp472 char buffer[SIZE]; local
474 snprintf(buffer, 255, "CameraParameters::dump: mMap.size = %zu\n", mMap.size());
475 result.append(buffer);
480 snprintf(buffer, 255, "\t%s: %s\n", k.string(), v.string());
481 result.append(buffer);
H A DCameraParameters2.cpp367 char buffer[SIZE];
369 snprintf(buffer, 255, "CameraParameters2::dump: mMap.size = %zu\n", mMap.size());
370 result.append(buffer);
375 snprintf(buffer, 255, "\t%s: %s\n", k.string(), v.string());
376 result.append(buffer);
/frameworks/av/camera/include/camera/
H A DCameraMetadata.h44 /** Takes ownership of passed-in buffer */
45 CameraMetadata(camera_metadata_t *buffer);
50 * Assignment clones metadata buffer.
53 CameraMetadata &operator=(const camera_metadata_t *buffer);
56 * Get reference to the underlying metadata buffer. Ownership remains with
70 status_t unlock(const camera_metadata_t *buffer) const;
73 * Release a raw metadata buffer to the caller. After this call,
74 * CameraMetadata no longer references the buffer, and the caller takes
75 * responsibility for freeing the raw metadata buffer (using
82 * Clear the metadata buffer an
[all...]
/frameworks/av/camera/ndk/impl/
H A DACameraMetadata.cpp30 ACameraMetadata::ACameraMetadata(camera_metadata_t* buffer, ACAMERA_METADATA_TYPE type) : argument
31 mData(buffer), mType(type) {
H A DACameraMetadata.h43 // Takes ownership of pass-in buffer
44 ACameraMetadata(camera_metadata_t *buffer, ACAMERA_METADATA_TYPE type);
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp317 * frames will start arriving from the buffer producer.
385 // got a buffer
387 ALOGV("Got codec config buffer (%zu bytes)", size);
395 ALOGV("Got data in buffer %zu, size=%zu, pts=%" PRId64,
443 sp<ABuffer> buffer = new ABuffer( local
445 err = muxer->writeSampleData(buffer, trackIdx,
457 fprintf(stderr, "Unable to release output buffer (err=%d)\n",
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp332 sp<ABuffer> buffer; local
333 while (format->findBuffer(AStringPrintf("csd-%d", j).c_str(), &buffer)) {
334 state->mCSD.push_back(buffer);
429 ALOGV("dequeued input buffer on track %zu",
449 ALOGV("dequeued output buffer on track %zu",
531 ALOGI("track %zu buffer late by %lld us, dropping.",
561 ALOGV("track %zu buffer early by %lld us.",
603 CodecState *state, BufferInfo *info, const sp<MediaCodecBuffer> &buffer) {
632 buffer->base() + info->mOffset, copy);
602 renderAudio( CodecState *state, BufferInfo *info, const sp<MediaCodecBuffer> &buffer) argument
H A DSimplePlayer.h105 CodecState *state, BufferInfo *info, const sp<MediaCodecBuffer> &buffer);
H A DSineSource.cpp66 MediaBufferBase *buffer; local
67 status_t err = mGroup->acquire_buffer(&buffer);
74 size_t numFramesPerBuffer = buffer->size() / frameSize;
76 int16_t *ptr = (int16_t *)buffer->data();
92 buffer->meta_data().setInt64(
97 buffer->set_range(0, numFramesPerBuffer * frameSize);
99 *out = buffer;
H A Daudioloop.cpp172 MediaBufferBase* buffer; local
173 while (decoder->read(&buffer) == OK) {
174 // do something with buffer (save it eventually?)
178 buffer->release();
179 buffer = NULL;
H A Dcodec.cpp175 ALOGV("filling input buffer %zu", index);
177 const sp<MediaCodecBuffer> &buffer = state->mInBuffers.itemAt(index); local
178 sp<ABuffer> abuffer = new ABuffer(buffer->base(), buffer->capacity());
182 buffer->setRange(abuffer->offset(), abuffer->size());
193 buffer->size(),
263 ALOGV("draining output buffer %zu, time = %lld us",
H A Dmediafilter.cpp178 // only consume a buffer if we are not going to flush, since we expect
226 // check that queueing a buffer that was dequeued before flush
294 // releasing the buffer dequeued before flush should cause an error
533 ALOGV("filling input buffer %zu", index);
535 const sp<MediaCodecBuffer> &buffer = state->mInBuffers.itemAt(index); local
536 sp<ABuffer> abuffer = new ABuffer(buffer->base(), buffer->capacity());
540 buffer->setRange(abuffer->offset(), abuffer->size());
549 index, 0 /* offset */, buffer->size(),
601 ALOGV("draining decoded buffer
[all...]
H A Drecord.cpp56 // that the buffer size mSize it set correctly above.
81 MediaBuffer **buffer, const MediaSource::ReadOptions *options) {
88 status_t err = mGroup.acquire_buffer(buffer);
94 memset((*buffer)->data(), x, mSize);
95 (*buffer)->set_range(0, mSize);
96 (*buffer)->meta_data()->clear();
97 (*buffer)->meta_data()->setInt64(
101 // printf("DummySource::read - returning buffer\n");
102 // ALOGI("DummySource::read - returning buffer");
239 MediaBuffer *buffer;
331 MediaBufferBase *buffer; local
[all...]
H A Drecordvideo.cpp93 MediaBufferBase **buffer, const MediaSource::ReadOptions *options __unused) {
102 status_t err = mGroup.acquire_buffer(buffer);
113 memset((*buffer)->data(), x, mSize);
116 (*buffer)->set_range(0, mSize);
117 (*buffer)->meta_data().clear();
118 (*buffer)->meta_data().setInt64(
92 read( MediaBufferBase **buffer, const MediaSource::ReadOptions *options __unused) argument
H A Dstagefright.cpp237 MediaBufferBase *buffer; local
241 err = rawSource->read(&buffer, &options);
246 CHECK(buffer == NULL);
256 CHECK(buffer->meta_data().findInt64(kKeyTime, &timestampUs));
277 printf("buffer has timestamp %" PRId64 " us (%.2f secs)\n",
280 buffer->release();
281 buffer = NULL;
324 MediaBufferBase *buffer; local
328 status_t err = rawSource->read(&buffer, &options);
334 CHECK(buffer
468 isIDRFrame(MediaBufferBase *buffer) argument
484 read( MediaBufferBase **buffer, const ReadOptions *options) argument
565 MediaBufferBase *buffer; local
[all...]
/frameworks/av/drm/common/
H A DDrmEngineBase.cpp168 int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) {
169 return onPread(uniqueId, decryptHandle, buffer, numBytes, offset);
167 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
H A DIDrmManagerService.cpp773 int uniqueId, DecryptHandle* decryptHandle, void* buffer,
790 reply.read(buffer, result);
947 char* buffer = NULL; local
949 buffer = (char *)data.readInplace(bufferSize);
951 const DrmBuffer drmBuffer(buffer, bufferSize);
1004 char buffer[16]; local
1006 sprintf(buffer, "%lu", (unsigned long)fd);
1007 drmInfoRequest->put(key, String8(buffer));
1460 char* buffer = NULL; local
1461 buffer
772 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
1523 char* buffer = new char[numBytes]; local
[all...]
H A DReadWriteUtils.cpp57 int ReadWriteUtils::readBytes(const String8& filePath, char** buffer) { argument
68 *buffer = new char[length];
69 if (length != read(fd, (void*) *buffer, length)) {
/frameworks/av/drm/common/include/
H A DDrmEngineBase.h104 void* buffer, ssize_t numBytes, off64_t offset);
489 * @param[in] IV Optional buffer
516 * @param[out] buffer Reference to the buffer that should receive the read data.
523 void* buffer, ssize_t numBytes, off64_t offset) = 0;
H A DIDrmEngine.h394 * @param[in] IV Optional buffer
421 * @param[out] buffer Reference to the buffer that should receive the read data.
428 void* buffer, ssize_t numBytes, off64_t offset) = 0;
H A DIDrmManagerService.h163 void* buffer, ssize_t numBytes,off64_t offset) = 0;
250 void* buffer, ssize_t numBytes, off64_t offset);
H A DReadWriteUtils.h50 * Reads the data into the given buffer from the file path provided
53 * @param[out] buffer Data read from the file
56 static int readBytes(const String8& filePath, char** buffer);
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp536 void* buffer, ssize_t numBytes, off64_t offset) {
542 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset);
535 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
H A DDrmManager.h131 void* buffer, ssize_t numBytes, off64_t offset);

Completed in 212 milliseconds

1234567891011>>