Home
last modified time | relevance | path

Searched refs:bufferInfo (Results 1 – 25 of 37) 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.h58 int32_t sendBuffersToWriter(ifstream &inputStream, vector<BufferInfo> &bufferInfo,
63 int32_t writeHeaderBuffers(ifstream &inputStream, vector<BufferInfo> &bufferInfo,
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.cpp361 VulkanSurface::NativeBufferInfo& bufferInfo = mNativeBuffers[i]; in releaseBuffers() local
363 if (bufferInfo.buffer.get() != nullptr && bufferInfo.dequeued) { in releaseBuffers()
364 int err = mNativeWindow->cancelBuffer(mNativeWindow.get(), bufferInfo.buffer.get(), in releaseBuffers()
365 bufferInfo.dequeue_fence.release()); in releaseBuffers()
369 bufferInfo.dequeued = false; in releaseBuffers()
370 bufferInfo.dequeue_fence.reset(); in releaseBuffers()
373 LOG_ALWAYS_FATAL_IF(bufferInfo.dequeued); in releaseBuffers()
374 LOG_ALWAYS_FATAL_IF(bufferInfo.dequeue_fence.ok()); in releaseBuffers()
376 bufferInfo.skSurface.reset(); in releaseBuffers()
377 bufferInfo.buffer.clear(); in releaseBuffers()
[all …]
DVulkanManager.cpp552 VulkanSurface::NativeBufferInfo* bufferInfo = surface->dequeueNativeBuffer(); in dequeueNextBuffer() local
554 if (bufferInfo == nullptr) { in dequeueNextBuffer()
559 LOG_ALWAYS_FATAL_IF(!bufferInfo->dequeued); in dequeueNextBuffer()
561 if (bufferInfo->dequeue_fence != -1) { in dequeueNextBuffer()
562 struct sync_file_info* finfo = sync_file_info(bufferInfo->dequeue_fence); in dequeueNextBuffer()
569 int fence_clone = dup(bufferInfo->dequeue_fence); in dequeueNextBuffer()
573 sync_wait(bufferInfo->dequeue_fence, -1 /* forever */); in dequeueNextBuffer()
584 sync_wait(bufferInfo->dequeue_fence, -1 /* forever */); in dequeueNextBuffer()
599 sync_wait(bufferInfo->dequeue_fence, -1 /* forever */); in dequeueNextBuffer()
605 bufferInfo->skSurface->wait(1, &beSemaphore); in dequeueNextBuffer()
[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/base/media/java/android/media/
DMediaMuxer.java697 @NonNull BufferInfo bufferInfo) { in writeSampleData() argument
706 if (bufferInfo == null) { in writeSampleData()
709 if (bufferInfo.size < 0 || bufferInfo.offset < 0 in writeSampleData()
710 || (bufferInfo.offset + bufferInfo.size) > byteBuf.capacity()) { in writeSampleData()
724 bufferInfo.offset, bufferInfo.size, in writeSampleData()
725 bufferInfo.presentationTimeUs, bufferInfo.flags); in writeSampleData()
/frameworks/av/media/libstagefright/writer_fuzzers/
DWriterFuzzerBase.cpp140 void writeHeaderBuffers(vector<FrameData> &bufferInfo, sp<AMessage> &format, int32_t numCsds) { in writeHeaderBuffers() argument
143 int32_t flags = bufferInfo[csdId].flags; in writeHeaderBuffers()
146 ABuffer::CreateAsCopy((void *)bufferInfo[csdId].buf, bufferInfo[csdId].size); in writeHeaderBuffers()
210 vector<FrameData> bufferInfo = mBufferSource->getFrameList(trackIndex); in sendBuffersToWriter() local
212 if (!mWriter->isSampleMetadataValid(trackIndex, bufferInfo[idx].timeUs)) { in sendBuffersToWriter()
215 sp<ABuffer> buffer = new ABuffer((void *)bufferInfo[idx].buf, bufferInfo[idx].size); in sendBuffersToWriter()
220 sampleMetaData.setInt64(kKeyTime, bufferInfo[idx].timeUs); in sendBuffersToWriter()
223 sampleMetaData.setInt64(kKeyDecodingTime, bufferInfo[idx].timeUs); in sendBuffersToWriter()
224 if (bufferInfo[idx].flags == SampleFlag::SYNC_FLAG) { in sendBuffersToWriter()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DIBufferXferImpl.java48 IBufferXfer.BufferXferInfo bufferInfo) { in sendBuffer() argument
64 pBuf.info = bufferInfo; in sendBuffer()
68 info.info = bufferInfo; in sendBuffer()
76 cBuf.info = bufferInfo; in sendBuffer()
80 info.info = bufferInfo; in sendBuffer()
/frameworks/av/media/module/libmediatranscoding/transcoder/
DVideoTrackTranscoder.cpp134 AMediaCodecBufferInfo bufferInfo = *bufferInfoPtr; in onAsyncOutputAvailable() local
136 transcoder->mCodecMessageQueue.push([transcoder, index, codec, bufferInfo] { in onAsyncOutputAvailable()
138 transcoder->transferBuffer(index, bufferInfo); in onAsyncOutputAvailable()
140 transcoder->dequeueOutputSample(index, bufferInfo); in onAsyncOutputAvailable()
453 void VideoTrackTranscoder::transferBuffer(int32_t bufferIndex, AMediaCodecBufferInfo bufferInfo) { in transferBuffer() argument
455 bool needsRender = bufferInfo.size > 0; in transferBuffer()
459 if (bufferInfo.flags & AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM) { in transferBuffer()
470 AMediaCodecBufferInfo bufferInfo) { in dequeueOutputSample() argument
483 buffer, bufferInfo.offset, bufferIndex, bufferReleaseCallback); in dequeueOutputSample()
484 sample->info.size = bufferInfo.size; in dequeueOutputSample()
[all …]
DMediaSampleWriter.cpp237 AMediaCodecBufferInfo bufferInfo; in runWriterLoop() local
321 bufferInfo.offset = sample->dataOffset; in runWriterLoop()
322 bufferInfo.size = sample->info.size; in runWriterLoop()
323 bufferInfo.flags = sample->info.flags; in runWriterLoop()
324 bufferInfo.presentationTimeUs = sample->info.presentationTimeUs; in runWriterLoop()
326 media_status_t status = mMuxer->writeSampleData(trackIndex, sample->buffer, &bufferInfo); in runWriterLoop()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DMuxerTest.java125 MediaCodec.BufferInfo bufferInfo = extractor.getBufferInfo(); in testMuxer() local
128 .set(bufferInfo.offset, bufferInfo.size, bufferInfo.presentationTimeUs, in testMuxer()
129 bufferInfo.flags); in testMuxer()
132 tempSampleBuffer.put(extractor.getFrameBuffer().array(), 0, bufferInfo.size); in testMuxer()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamBufferListener.h43 virtual void onBufferAcquired(const BufferInfo& bufferInfo) = 0;
45 virtual void onBufferReleased(const BufferInfo& bufferInfo) = 0;
/frameworks/av/media/ndk/fuzzer/
Dndk_async_codec_fuzzer.cpp79 AMediaCodecBufferInfo* bufferInfo) { in invokeOutputBufferAPI() argument
82 (void)bufferInfo; in invokeOutputBufferAPI()
105 AMediaCodecBufferInfo* bufferInfo) { in onAsyncOutputAvailable() argument
107 AMediaCodecBufferInfo bufferInfoCopy = *bufferInfo; in onAsyncOutputAvailable()
180 AMediaCodecBufferInfo* bufferInfo);
274 AMediaCodecBufferInfo* bufferInfo) { in invokeOutputBufferAPI() argument
291 mIsDone = (0 != (bufferInfo->flags & AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM)); in invokeOutputBufferAPI()
/frameworks/av/services/camera/libcameraservice/api2/
DCompositeStream.cpp106 void CompositeStream::onBufferReleased(const BufferInfo& bufferInfo) { in onBufferReleased() argument
108 if (!mErrorState && !bufferInfo.mError) { in onBufferReleased()
109 mFrameNumberMap.emplace(bufferInfo.mFrameNumber, bufferInfo.mTimestamp); in onBufferReleased()
DHeicCompositeStream.cpp277 void HeicCompositeStream::onBufferReleased(const BufferInfo& bufferInfo) { in onBufferReleased() argument
280 if (bufferInfo.mError) return; in onBufferReleased()
282 if (bufferInfo.mStreamId == mMainImageStreamId) { in onBufferReleased()
283 mMainImageFrameNumbers.push(bufferInfo.mFrameNumber); in onBufferReleased()
284 mCodecOutputBufferFrameNumbers.push(bufferInfo.mFrameNumber); in onBufferReleased()
286 __FUNCTION__, bufferInfo.mFrameNumber, mMainImageFrameNumbers.size()); in onBufferReleased()
287 } else if (bufferInfo.mStreamId == mAppSegmentStreamId) { in onBufferReleased()
288 mAppSegmentFrameNumbers.push(bufferInfo.mFrameNumber); in onBufferReleased()
290 __FUNCTION__, bufferInfo.mFrameNumber, mAppSegmentFrameNumbers.size()); in onBufferReleased()
1889 CodecOutputBufferInfo bufferInfo = { in onMessageReceived() local
[all …]
DHeicCompositeStream.h68 void onBufferReleased(const BufferInfo& bufferInfo) override;
142 void onHeicOutputFrameAvailable(const CodecOutputBufferInfo& bufferInfo);
DCompositeStream.h94 void onBufferReleased(const BufferInfo& bufferInfo) override;
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenInternalAudioRecorder.java268 MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); in writeOutput() local
269 int bufferIndex = mCodec.dequeueOutputBuffer(bufferInfo, TIMEOUT); in writeOutput()
281 if (!((bufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0 in writeOutput()
282 && bufferInfo.size != 0)) { in writeOutput()
283 mMuxer.writeSampleData(mTrackId, buff, bufferInfo); in writeOutput()
/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/module/libmediatranscoding/transcoder/include/media/
DVideoTrackTranscoder.h82 void transferBuffer(int32_t bufferIndex, AMediaCodecBufferInfo bufferInfo);
85 void dequeueOutputSample(int32_t bufferIndex, AMediaCodecBufferInfo bufferInfo);
/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/cmds/screenrecord/
Dscreenrecord.cpp434 AMediaCodecBufferInfo bufferInfo = { in writeWinscopeMetadataLegacy() local
440 return AMediaMuxer_writeSampleData(muxer, metaTrackIdx, buffer->data(), &bufferInfo); in writeWinscopeMetadataLegacy()
503 AMediaCodecBufferInfo bufferInfo = { in writeWinscopeMetadata() local
509 return AMediaMuxer_writeSampleData(muxer, metaTrackIdx, buffer->data(), &bufferInfo); in writeWinscopeMetadata()
648 AMediaCodecBufferInfo bufferInfo = { in runEncoder() local
654 err = AMediaMuxer_writeSampleData(muxer, trackIdx, buffer->data(), &bufferInfo); in runEncoder()

12