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

1234567891011>>

/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) const {
87 if (buffer != mBuffer) {
117 void CameraMetadata::acquire(camera_metadata_t *buffer) { argument
123 mBuffer = buffer;
127 __FUNCTION__, buffer); local
640 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/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/stagefright/
H A DSimplePlayer.cpp331 sp<ABuffer> buffer; local
332 while (format->findBuffer(AStringPrintf("csd-%d", j).c_str(), &buffer)) {
333 state->mCSD.push_back(buffer);
428 ALOGV("dequeued input buffer on track %zu",
448 ALOGV("dequeued output buffer on track %zu",
528 ALOGI("track %zu buffer late by %lld us, dropping.",
558 ALOGV("track %zu buffer early by %lld us.",
600 CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) {
629 buffer->base() + info->mOffset, copy);
599 renderAudio( CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) argument
H A DSimplePlayer.h104 CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer);
H A DSineSource.cpp65 MediaBuffer *buffer; local
66 status_t err = mGroup->acquire_buffer(&buffer);
73 size_t numFramesPerBuffer = buffer->size() / frameSize;
75 int16_t *ptr = (int16_t *)buffer->data();
91 buffer->meta_data()->setInt64(
96 buffer->set_range(0, numFramesPerBuffer * frameSize);
98 *out = buffer;
H A Daudioloop.cpp143 MediaBuffer* buffer; local
144 while (decoder->read(&buffer) == OK) {
145 // do something with buffer (save it eventually?)
149 buffer->release();
150 buffer = NULL;
H A Dcodec.cpp175 ALOGV("filling input buffer %zu", index);
177 const sp<ABuffer> &buffer = state->mInBuffers.itemAt(index); local
179 err = extractor->readSampleData(buffer);
191 buffer->size(),
261 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<ABuffer> &buffer = state->mInBuffers.itemAt(index); local
537 err = extractor->readSampleData(buffer);
547 index, 0 /* offset */, buffer->size(),
599 ALOGV("draining decoded buffer %zu, time = %lld us",
H A Drecord.cpp55 // that the buffer size mSize it set correctly above.
80 MediaBuffer **buffer, const MediaSource::ReadOptions *options) {
87 status_t err = mGroup.acquire_buffer(buffer);
93 memset((*buffer)->data(), x, mSize);
94 (*buffer)->set_range(0, mSize);
95 (*buffer)->meta_data()->clear();
96 (*buffer)->meta_data()->setInt64(
100 // printf("DummySource::read - returning buffer\n");
101 // ALOGI("DummySource::read - returning buffer");
240 MediaBuffer *buffer;
332 MediaBuffer *buffer; local
[all...]
H A Drecordvideo.cpp93 MediaBuffer **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( MediaBuffer **buffer, const MediaSource::ReadOptions *options __unused) argument
H A Dsf2.cpp348 sp<ABuffer> buffer = new ABuffer(1024); local
349 buffer->setRange(0, 0);
360 memcpy(buffer->data() + buffer->size(), "\x00\x00\x00\x01", 4);
361 memcpy(buffer->data() + buffer->size() + 4, ptr, length);
362 buffer->setRange(0, buffer->size() + 4 + length);
368 buffer->meta()->setInt32("csd", true);
369 mCSD.push(buffer);
409 sp<ABuffer> buffer = new ABuffer(codec_specific_data_size); local
417 sp<ABuffer> buffer = new ABuffer(size); local
555 sp<ABuffer> buffer; local
[all...]
H A Dstagefright.cpp229 MediaBuffer *buffer; local
233 err = rawSource->read(&buffer, &options);
238 CHECK(buffer == NULL);
248 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timestampUs));
269 printf("buffer has timestamp %" PRId64 " us (%.2f secs)\n",
272 buffer->release();
273 buffer = NULL;
316 MediaBuffer *buffer; local
320 status_t err = rawSource->read(&buffer, &options);
326 CHECK(buffer
460 isIDRFrame(MediaBuffer *buffer) argument
476 read( MediaBuffer **buffer, const ReadOptions *options) argument
557 MediaBuffer *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/drmserver/
H A DDrmManager.cpp541 void* buffer, ssize_t numBytes, off64_t offset) {
547 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset);
540 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
H A DDrmManagerService.cpp332 void* buffer, ssize_t numBytes, off64_t offset) {
337 return mDrmManager->pread(uniqueId, decryptHandle, buffer, numBytes, offset);
343 char buffer[SIZE]; local
346 snprintf(buffer, SIZE, "Permission Denial: "
350 result.append(buffer);
331 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClient.cpp162 sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) {
163 return mDrmManagerClientImpl->pread(mUniqueId, decryptHandle, buffer, numBytes, offset);
161 pread( sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
H A DDrmManagerClientImpl.cpp328 void* buffer, ssize_t numBytes, off64_t offset) {
330 if ((NULL != decryptHandle.get()) && (NULL != buffer) && (0 < numBytes)) {
332 uniqueId, decryptHandle.get(), buffer, numBytes, offset);
327 pread(int uniqueId, sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/drm/libdrmframework/include/
H A DDrmManager.h131 void* buffer, ssize_t numBytes, off64_t offset);
H A DDrmManagerClientImpl.h368 * @param[in] IV Optional buffer
394 * @param[out] buffer Reference to the buffer that should receive the read data.
401 void* buffer, ssize_t numBytes, off64_t offset);
H A DDrmManagerService.h138 void* buffer, ssize_t numBytes, off64_t offset);

Completed in 288 milliseconds

1234567891011>>