Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DMediaMuxerTest.java511 BufferInfo bufferInfo = new BufferInfo(); in cloneMediaUsingMuxer() local
540 bufferInfo.offset = offset; in cloneMediaUsingMuxer()
541 bufferInfo.size = extractor.readSampleData(dstBuf, offset); in cloneMediaUsingMuxer()
543 if (bufferInfo.size < 0) { in cloneMediaUsingMuxer()
548 bufferInfo.size = 0; in cloneMediaUsingMuxer()
550 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in cloneMediaUsingMuxer()
551 bufferInfo.flags = extractor.getSampleFlags(); in cloneMediaUsingMuxer()
555 bufferInfo); in cloneMediaUsingMuxer() local
561 "PresentationTimeUs:" + bufferInfo.presentationTimeUs + in cloneMediaUsingMuxer()
562 " Flags:" + bufferInfo.flags + in cloneMediaUsingMuxer()
[all …]
DVpxCodecTestBase.java572 MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); in decode() local
609 int result = decoder.dequeueOutputBuffer(bufferInfo, DEFAULT_DEQUEUE_TIMEOUT_US); in decode()
662 result = decoder.dequeueOutputBuffer(bufferInfo, DEFAULT_DEQUEUE_TIMEOUT_US); in decode()
666 outPresentationTimeUs = bufferInfo.presentationTimeUs; in decode()
668 ". Size: " + bufferInfo.size + in decode()
671 if ((bufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { in decode()
676 if (bufferInfo.size > 0) { in decode()
679 byte[] frame = new byte[bufferInfo.size]; in decode()
680 outputBuffers[outputBufIndex].position(bufferInfo.offset); in decode()
681 outputBuffers[outputBufIndex].get(frame, 0, bufferInfo.size); in decode()
[all …]
DMediaCodecTest.java838 MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); in getOutputBufferIndices() local
844 int index = encoder.dequeueOutputBuffer(bufferInfo, TIMEOUT_USEC); in getOutputBufferIndices()
847 index = encoder.dequeueOutputBuffer(bufferInfo, TIMEOUT_USEC_SHORT); in getOutputBufferIndices()
1586 MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); in runVideoEncoding() local
1593 int index = encoder.dequeueOutputBuffer(bufferInfo, TIMEOUT_USEC); in runVideoEncoding()
1598 index = encoder.dequeueOutputBuffer(bufferInfo, TIMEOUT_USEC_SHORT); in runVideoEncoding()
/cts/tests/media/jni/
DNativeCodecEncoderSurfaceTest.cpp66 bool dequeueDecoderOutput(size_t bufferIndex, AMediaCodecBufferInfo* bufferInfo);
256 AMediaCodecBufferInfo* bufferInfo) { in dequeueDecoderOutput() argument
257 if ((bufferInfo->flags & AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM) != 0) { in dequeueDecoderOutput()
260 if (bufferInfo->size > 0 && (bufferInfo->flags & AMEDIACODEC_BUFFER_FLAG_CODEC_CONFIG) == 0) { in dequeueDecoderOutput()
263 ALOGV("output: id: %zu size: %d pts: %d flags: %d", bufferIndex, bufferInfo->size, in dequeueDecoderOutput()
264 (int)bufferInfo->presentationTimeUs, bufferInfo->flags); in dequeueDecoderOutput()
306 if (!dequeueEncoderOutput(element.bufferIndex, &element.bufferInfo)) return false; in tryEncoderOutput()
366 if (!dequeueDecoderOutput(element.bufferIndex, &element.bufferInfo)) return false; in queueEOS()
410 if (!dequeueDecoderOutput(element.bufferIndex, &element.bufferInfo)) { in doWork()
DNativeCodecTestBase.h44 AMediaCodecBufferInfo bufferInfo; member
49 : bufferInfo{*info}, bufferIndex{index}, isInput{false} {} in callbackObject()
154 virtual bool dequeueOutput(size_t bufferIndex, AMediaCodecBufferInfo* bufferInfo) = 0;
DNativeMuxerTest.cpp166 auto* bufferInfo = new AMediaCodecBufferInfo(); in splitMediaToMuxerParameters() local
167 bufferInfo->offset = offset; in splitMediaToMuxerParameters()
168 bufferInfo->size = in splitMediaToMuxerParameters()
170 if (bufferInfo->size < 0) { in splitMediaToMuxerParameters()
173 bufferInfo->presentationTimeUs = AMediaExtractor_getSampleTime(extractor); in splitMediaToMuxerParameters()
174 bufferInfo->flags = AMediaExtractor_getSampleFlags(extractor); in splitMediaToMuxerParameters()
177 mBufferInfo[(mInpIndexMap.at(trackID))].push_back(bufferInfo); in splitMediaToMuxerParameters()
181 offset += bufferInfo->size; in splitMediaToMuxerParameters()
DNativeCodecTestBase.cpp32 AMediaCodecBufferInfo* bufferInfo) { in onAsyncOutputAvailable() argument
36 callbackObject element{index, bufferInfo}; in onAsyncOutputAvailable()
435 isOk = dequeueOutput(element.bufferIndex, &element.bufferInfo); in doWork()
502 isOk = dequeueOutput(element.bufferIndex, &element.bufferInfo); in waitForAllOutputs()
DNativeCodecUnitTest.cpp33 bool dequeueOutput(size_t bufferIndex, AMediaCodecBufferInfo* bufferInfo) override;
857 isOk = dequeueOutput(element.bufferIndex, &element.bufferInfo); in testGetOutputBufferInRunningState()
1315 isOk = dequeueOutput(element.bufferIndex, &element.bufferInfo); in testReleaseOutputBufferInRunningState()
1422 isOk = dequeueOutput(element.bufferIndex, &element.bufferInfo); in testGetBufferFormatInRunningState()
DNativeCodecDecoderTest.cpp49 bool dequeueOutput(size_t bufferIndex, AMediaCodecBufferInfo* bufferInfo) override;
DNativeCodecEncoderTest.cpp61 bool dequeueOutput(size_t bufferIndex, AMediaCodecBufferInfo* bufferInfo) override;
/cts/tests/media/src/android/mediav2/cts/
DMuxerTest.java130 MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); in splitMediaToMuxerParameters() local
131 bufferInfo.offset = offset; in splitMediaToMuxerParameters()
132 bufferInfo.size = extractor.readSampleData(mBuff, offset); in splitMediaToMuxerParameters()
134 if (bufferInfo.size < 0) { in splitMediaToMuxerParameters()
137 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in splitMediaToMuxerParameters()
138 bufferInfo.flags = extractor.getSampleFlags(); in splitMediaToMuxerParameters()
141 mBufferInfo.get(mInpIndexMap.get(trackID)).add(bufferInfo); in splitMediaToMuxerParameters()
145 offset += bufferInfo.size; in splitMediaToMuxerParameters()
163 MediaCodec.BufferInfo bufferInfo = mBufferInfo.get(index).get(frameCount[index]); in insertSampleData() local
164 muxer.writeSampleData(mOutIndexMap.get(index), mBuff, bufferInfo); in insertSampleData() local
[all …]
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp175 void addOutputBuffer(int32_t index, AMediaCodecBufferInfo *bufferInfo) { in addOutputBuffer() argument
178 mOutputBufferInfos.push(*bufferInfo); in addOutputBuffer()
189 int32_t getOutput(AMediaCodecBufferInfo *bufferInfo, AMediaFormat **format) { in getOutput() argument
197 *bufferInfo = mOutputBufferInfos.front(); in getOutput()
222 AMediaCodecBufferInfo *bufferInfo) { in OnOutputAvailableCB() argument
224 index, bufferInfo->offset, bufferInfo->size, in OnOutputAvailableCB()
225 (long long)bufferInfo->presentationTimeUs, bufferInfo->flags); in OnOutputAvailableCB()
227 callbackData->addOutputBuffer(index, bufferInfo); in OnOutputAvailableCB()