Home
last modified time | relevance | path

Searched refs:mBufferInfo (Results 1 – 6 of 6) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraGPURecordingTest.java90 private MediaCodec.BufferInfo mBufferInfo; field in CameraGPURecordingTest
217 mBufferInfo = new MediaCodec.BufferInfo(); in prepareEncoder()
307 int encoderStatus = mEncoder.dequeueOutputBuffer(mBufferInfo, /*timeoutUs=*/ 1000); in drainEncoder()
335 if ((mBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) { in drainEncoder()
339 mBufferInfo.size = 0; in drainEncoder()
342 if (mBufferInfo.size != 0) { in drainEncoder()
346 encodedData.position(mBufferInfo.offset); in drainEncoder()
347 encodedData.limit(mBufferInfo.offset + mBufferInfo.size); in drainEncoder()
349 mMuxer.writeSampleData(mTrackIndex, encodedData, mBufferInfo); in drainEncoder()
350 Log.v(TAG, "sent " + mBufferInfo.size + " bytes to muxer"); in drainEncoder()
[all …]
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoDecodeEditEncodeTest.java254 private final ArrayList<MediaCodec.BufferInfo> mBufferInfo = new ArrayList<>(); field in VideoDecodeEditEncodeTest.VideoChunks
293 mBufferInfo.clear(); in splitMediaToMuxerParameters()
312 mBufferInfo.add(bufferInfo); in splitMediaToMuxerParameters()
327 mBufferInfo.add(copy); in addChunkData()
355 return mBufferInfo.size(); in getNumChunks()
362 int offset = mBufferInfo.get(chunk).offset; in getChunkData()
363 int size = mBufferInfo.get(chunk).size; in getChunkData()
371 return mBufferInfo.get(chunk).flags; in getChunkFlags()
378 return mBufferInfo.get(chunk).presentationTimeUs; in getChunkTime()
382 return mBufferInfo; in getChunkInfos()
/cts/tests/media/jni/
DNativeMuxerTest.cpp58 for (const auto& buffInfoTrack : mBufferInfo) { in ~MuxerNativeTestHelper()
69 return mBufferInfo[(mInpIndexMap.at(trackId))].size(); in getSampleCount()
110 std::vector<std::vector<AMediaCodecBufferInfo*>> mBufferInfo; member in MuxerNativeTestHelper
192 mBufferInfo.resize(mTrackCount); in splitMediaToMuxerParameters()
205 mBufferInfo[(mInpIndexMap.at(trackID))].push_back(bufferInfo); in splitMediaToMuxerParameters()
230 AMediaCodecBufferInfo* info = mBufferInfo[index][frameCount[index]]; in insertSampleData()
266 AMediaCodecBufferInfo* info = mBufferInfo[trackIndex][frameCount[trackIndex]]; in writeAFewSamplesData()
298 AMediaCodecBufferInfo* info = mBufferInfo[trackIndex][frameCount[trackIndex]]; in writeAFewSamplesDataFromTime()
417 for (int p = 0; p < group[k]->mBufferInfo[i].size(); p++) { in combineMedias()
418 AMediaCodecBufferInfo* info = group[k]->mBufferInfo[i][p]; in combineMedias()
[all …]
/cts/tests/media/src/android/mediav2/cts/
DMuxerTest.java77 private ArrayList<ArrayList<MediaCodec.BufferInfo>> mBufferInfo; field in MuxerTestHelper
139 mBufferInfo = new ArrayList<>(mTrackCount); in splitMediaToMuxerParameters()
141 mBufferInfo.add(new ArrayList<MediaCodec.BufferInfo>()); in splitMediaToMuxerParameters()
161 mBufferInfo.get(mInpIndexMap.get(trackID)).add(bufferInfo); in splitMediaToMuxerParameters()
183 MediaCodec.BufferInfo bufferInfo = mBufferInfo.get(index).get(frameCount[index]); in insertSampleData()
228 ArrayList<MediaCodec.BufferInfo> bufInfos = group[k].mBufferInfo.get(i); in combineMedias()
284 for (int i = sampleOffset; i < mBufferInfo.get(trackID).size(); i++) { in offsetTimeStamp()
285 MediaCodec.BufferInfo bufferInfo = mBufferInfo.get(trackID).get(i); in offsetTimeStamp()
309 if (mBufferInfo.get(i).size() == that.mBufferInfo.get(j).size()) { in isSubsetOf()
312 for (; k < mBufferInfo.get(i).size(); k++) { in isSubsetOf()
[all …]
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DVideoCodecTestBase.java943 private MediaCodec.BufferInfo mBufferInfo; field in VideoCodecTestBase.MediaEncoderAsync
1157 mBufferInfo = new MediaCodec.BufferInfo(); in createCodecInternal()
1254 int result = mCodec.dequeueOutputBuffer(mBufferInfo, mTimeout); in getOutputInternal()
1262 result = mCodec.dequeueOutputBuffer(mBufferInfo, mTimeout); in getOutputInternal()
1270 mOutput.buffer = new byte[mBufferInfo.size]; in getOutputInternal()
1272 outputBuffer.position(mBufferInfo.offset); in getOutputInternal()
1273 outputBuffer.get(mOutput.buffer, 0, mBufferInfo.size); in getOutputInternal()
1274 mOutPresentationTimeUs = mBufferInfo.presentationTimeUs; in getOutputInternal()
1277 if ((mBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) { in getOutputInternal()
1280 if ((mBufferInfo.flags & MediaCodec.BUFFER_FLAG_SYNC_FRAME) != 0) { in getOutputInternal()
[all …]
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DImageReaderDecoderTest.java104 private MediaCodec.BufferInfo mBufferInfo = new MediaCodec.BufferInfo(); field in ImageReaderDecoderTest