Home
last modified time | relevance | path

Searched refs:bufferInfo (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/av/media/libstagefright/tests/writer/
DWriterUtility.cpp25 int32_t sendBuffersToWriter(ifstream &inputStream, vector<BufferInfo> &bufferInfo, in sendBuffersToWriter() argument
29 if (inputFrameId >= (int)bufferInfo.size() || inputFrameId >= (offset + range)) break; in sendBuffersToWriter()
37 int32_t size = bufferInfo[inputFrameId].size; in sendBuffersToWriter()
59 sampleMetaData.setInt64(kKeyTime, bufferInfo[inputFrameId].timeUs); in sendBuffersToWriter()
61 sampleMetaData.setInt64(kKeyDecodingTime, bufferInfo[inputFrameId].timeUs); in sendBuffersToWriter()
63 if (bufferInfo[inputFrameId].flags == 1) { in sendBuffersToWriter()
83 int32_t writeHeaderBuffers(ifstream &inputStream, vector<BufferInfo> &bufferInfo, in writeHeaderBuffers() argument
87 int32_t flags = bufferInfo[inputFrameId].flags; in writeHeaderBuffers()
89 int32_t size = bufferInfo[inputFrameId].size; in writeHeaderBuffers()
DWriterUtility.h44 int32_t sendBuffersToWriter(ifstream &inputStream, vector<BufferInfo> &bufferInfo,
49 int32_t writeHeaderBuffers(ifstream &inputStream, vector<BufferInfo> &bufferInfo,
/frameworks/base/media/java/android/media/
DMediaMuxer.java666 @NonNull BufferInfo bufferInfo) { in writeSampleData() argument
675 if (bufferInfo == null) { in writeSampleData()
678 if (bufferInfo.size < 0 || bufferInfo.offset < 0 in writeSampleData()
679 || (bufferInfo.offset + bufferInfo.size) > byteBuf.capacity() in writeSampleData()
680 || bufferInfo.presentationTimeUs < 0) { in writeSampleData()
694 bufferInfo.offset, bufferInfo.size, in writeSampleData()
695 bufferInfo.presentationTimeUs, bufferInfo.flags); in writeSampleData()
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.cpp401 VulkanSurface::NativeBufferInfo& bufferInfo = mNativeBuffers[i]; in releaseBuffers() local
403 if (bufferInfo.buffer.get() != nullptr && bufferInfo.dequeued) { in releaseBuffers()
404 int err = mNativeWindow->cancelBuffer(mNativeWindow.get(), bufferInfo.buffer.get(), in releaseBuffers()
405 bufferInfo.dequeue_fence); in releaseBuffers()
409 bufferInfo.dequeued = false; in releaseBuffers()
411 if (bufferInfo.dequeue_fence >= 0) { in releaseBuffers()
412 close(bufferInfo.dequeue_fence); in releaseBuffers()
413 bufferInfo.dequeue_fence = -1; in releaseBuffers()
417 LOG_ALWAYS_FATAL_IF(bufferInfo.dequeued); in releaseBuffers()
418 LOG_ALWAYS_FATAL_IF(bufferInfo.dequeue_fence != -1); in releaseBuffers()
[all …]
DVulkanManager.cpp421 VulkanSurface::NativeBufferInfo* bufferInfo = surface->dequeueNativeBuffer(); in dequeueNextBuffer() local
423 if (bufferInfo == nullptr) { in dequeueNextBuffer()
428 LOG_ALWAYS_FATAL_IF(!bufferInfo->dequeued); in dequeueNextBuffer()
430 if (bufferInfo->dequeue_fence != -1) { in dequeueNextBuffer()
431 struct sync_file_info* finfo = sync_file_info(bufferInfo->dequeue_fence); in dequeueNextBuffer()
438 int fence_clone = dup(bufferInfo->dequeue_fence); in dequeueNextBuffer()
442 sync_wait(bufferInfo->dequeue_fence, -1 /* forever */); in dequeueNextBuffer()
466 bufferInfo->skSurface->wait(1, &backendSemaphore); in dequeueNextBuffer()
470 bufferInfo->skSurface->flush(); in dequeueNextBuffer()
501 VulkanSurface::NativeBufferInfo* bufferInfo = surface->getCurrentBufferInfo(); in swapBuffers() local
[all …]
/frameworks/av/media/tests/benchmark/src/native/common/
DBenchmarkCommon.cpp39 AMediaCodecBufferInfo *bufferInfo) { in OnOutputAvailableCB() argument
40 ALOGV("OnOutputAvailableCB: index(%d), (%d, %d, %lld, 0x%x)", index, bufferInfo->offset, in OnOutputAvailableCB()
41 bufferInfo->size, (long long)bufferInfo->presentationTimeUs, bufferInfo->flags); in OnOutputAvailableCB()
44 AMediaCodecBufferInfo bufferInfoCopy = *bufferInfo; in OnOutputAvailableCB()
DBenchmarkCommon.h101 AMediaCodecBufferInfo *bufferInfo) { in onOutputAvailable() argument
104 (void)bufferInfo; in onOutputAvailable()
124 AMediaCodecBufferInfo *bufferInfo);
/frameworks/hardware/interfaces/bufferhub/1.0/vts/functional/
DVtsHalBufferHubV1_0TargetTest.cpp78 memcpy(&clientStateMask, &bufferTraits.bufferInfo->data[3], sizeof(clientStateMask)); in clientStateMask()
97 const native_handle_t* bufferInfo = bufferTraits.bufferInfo.getNativeHandle(); in isValidTraits() local
98 if (bufferInfo == nullptr) { in isValidTraits()
101 const int metadataFd = bufferInfo->data[0]; in isValidTraits()
102 const int eventFd = bufferInfo->data[1]; in isValidTraits()
103 const int bufferId = bufferInfo->data[2]; in isValidTraits()
105 memcpy(&userMetadataSize, &bufferTraits.bufferInfo->data[4], sizeof(userMetadataSize)); in isValidTraits()
243 const int bufferId1 = bufferTraits.bufferInfo->data[2]; in TEST_F()
244 const int bufferId2 = bufferTraits2.bufferInfo->data[2]; in TEST_F()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DMuxerTest.java127 MediaCodec.BufferInfo bufferInfo = extractor.getBufferInfo(); in testMuxer() local
130 .set(bufferInfo.offset, bufferInfo.size, bufferInfo.presentationTimeUs, in testMuxer()
131 bufferInfo.flags); in testMuxer()
134 tempSampleBuffer.put(extractor.getFrameBuffer().array(), 0, bufferInfo.size); in testMuxer()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamBufferListener.h42 virtual void onBufferAcquired(const BufferInfo& bufferInfo) = 0;
44 virtual void onBufferReleased(const BufferInfo& bufferInfo) = 0;
/frameworks/av/services/camera/libcameraservice/api2/
DCompositeStream.cpp93 void CompositeStream::onBufferReleased(const BufferInfo& bufferInfo) { in onBufferReleased() argument
95 if (!mErrorState && !bufferInfo.mError) { in onBufferReleased()
96 mFrameNumberMap.emplace(bufferInfo.mFrameNumber, bufferInfo.mTimestamp); in onBufferReleased()
DHeicCompositeStream.h63 void onBufferReleased(const BufferInfo& bufferInfo) override;
133 void onHeicOutputFrameAvailable(const CodecOutputBufferInfo& bufferInfo);
DCompositeStream.h78 void onBufferReleased(const BufferInfo& bufferInfo) override;
DHeicCompositeStream.cpp228 void HeicCompositeStream::onBufferReleased(const BufferInfo& bufferInfo) { in onBufferReleased() argument
231 if (bufferInfo.mError) return; in onBufferReleased()
233 mCodecOutputBufferTimestamps.push(bufferInfo.mTimestamp); in onBufferReleased()
235 __FUNCTION__, bufferInfo.mTimestamp, mCodecOutputBufferTimestamps.size()); in onBufferReleased()
1703 CodecOutputBufferInfo bufferInfo = { in onMessageReceived() local
1710 parent->onHeicOutputFrameAvailable(bufferInfo); in onMessageReceived()
/frameworks/native/libs/ui/
DBufferHubBuffer.cpp159 if (bufferTraits.bufferInfo.getNativeHandle() == nullptr) { in initWithBufferTraits()
170 unique_fd ashmemFd(fcntl(bufferTraits.bufferInfo->data[0], F_DUPFD_CLOEXEC, 0)); in initWithBufferTraits()
177 mEventFd = BufferHubEventFd(fcntl(bufferTraits.bufferInfo->data[1], F_DUPFD_CLOEXEC, 0)); in initWithBufferTraits()
183 int bufferId = bufferTraits.bufferInfo->data[2]; in initWithBufferTraits()
190 memcpy(&clientBitMask, &bufferTraits.bufferInfo->data[3], sizeof(clientBitMask)); in initWithBufferTraits()
197 memcpy(&userMetadataSize, &bufferTraits.bufferInfo->data[4], sizeof(userMetadataSize)); in initWithBufferTraits()
/frameworks/native/services/bufferhub/
DBufferHubService.cpp72 hidl_handle bufferInfo = in allocateBuffer() local
84 /*bufferInfo=*/std::move(bufferInfo)}; in allocateBuffer()
172 hidl_handle bufferInfo = buildBufferInfo(bufferInfoStorage, node->id(), clientStateMask, in importBuffer() local
177 /*bufferInfo=*/std::move(bufferInfo)}; in importBuffer()
377 hidl_handle bufferInfo; in buildBufferInfo() local
378 bufferInfo.setTo(infoHandle, /*shouldOwn=*/false); in buildBufferInfo()
380 return bufferInfo; in buildBufferInfo()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DDecoder.cpp93 AMediaCodecBufferInfo *bufferInfo) { in onOutputAvailable() argument
107 fwrite(buf, sizeof(char), bufferInfo->size, mOutFp); in onOutputAvailable()
108 ALOGV("bytes written into file %d\n", bufferInfo->size); in onOutputAvailable()
113 mSawOutputEOS = (0 != (bufferInfo->flags & AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM)); in onOutputAvailable()
DDecoder.h70 AMediaCodecBufferInfo *bufferInfo) override;
/frameworks/av/media/tests/benchmark/src/native/encoder/
DEncoder.cpp118 AMediaCodecBufferInfo *bufferInfo) { in onOutputAvailable() argument
128 mStats->addFrameSize(bufferInfo->size); in onOutputAvailable()
130 mSawOutputEOS = (0 != (bufferInfo->flags & AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM)); in onOutputAvailable()
DEncoder.h77 AMediaCodecBufferInfo *bufferInfo) override;
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DDecoder.java133 int outputBufferId, @NonNull MediaCodec.BufferInfo bufferInfo) { in decode()
135 onOutputAvailable(mediaCodec, outputBufferId, bufferInfo); in decode()
DEncoder.java167 @NonNull MediaCodec.BufferInfo bufferInfo) { in encode()
169 onOutputAvailable(mediaCodec, outputBufferId, bufferInfo); in encode()
/frameworks/hardware/interfaces/bufferhub/1.0/
Dtypes.hal49 handle bufferInfo;
/frameworks/base/media/jni/
Dandroid_media_MediaCodec.h103 JNIEnv *env, jobject bufferInfo, size_t *index, int64_t timeoutUs);
/frameworks/av/media/ndk/include/media/
DNdkMediaCodec.h92 AMediaCodecBufferInfo *bufferInfo);

12