Searched refs:bufferInfo (Results 1 – 3 of 3) sorted by relevance
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/ |
D | VideoRenderer.kt | 70 val bufferInfo = MediaCodec.BufferInfo() in <lambda>() constant 115 val outputBufferIndex = encoder.dequeueOutputBuffer(bufferInfo, DEQUEUE_TIMEOUT_US) in <lambda>() 127 if (bufferInfo.flags and MediaCodec.BUFFER_FLAG_CODEC_CONFIG != 0) { in <lambda>() 129 bufferInfo.size = 0 in <lambda>() 132 if (bufferInfo.size != 0) { in <lambda>() 133 encodedDataBuffer.position(bufferInfo.offset) in <lambda>() 134 encodedDataBuffer.limit(bufferInfo.offset + bufferInfo.size) in <lambda>() 138 bufferInfo.presentationTimeUs = framePresentationTimesUsIterator.next() in <lambda>() 139 muxer.writeSampleData(videoTrackIndex, encodedDataBuffer, bufferInfo) in <lambda>() 144 if (bufferInfo.flags and MediaCodec.BUFFER_FLAG_END_OF_STREAM != 0) { in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/ |
D | ScreenRecordingRunnable.kt | 84 val bufferInfo = MediaCodec.BufferInfo() in run() constant 87 val bufferIndex = encoder.dequeueOutputBuffer(bufferInfo, TIMEOUT_MS) in run() 91 val timestampMonotonicUs = writeSample(bufferIndex, bufferInfo) in run() 92 val endOfStream = bufferInfo.flags and MediaCodec.BUFFER_FLAG_END_OF_STREAM in run() 117 private fun writeSample(bufferIndex: Int, bufferInfo: MediaCodec.BufferInfo): Long { in writeSample() 120 val endOfStream = bufferInfo.flags and MediaCodec.BUFFER_FLAG_END_OF_STREAM in writeSample() 126 muxer.writeSampleData(videoTrackIndex, outputBuffer, bufferInfo) in writeSample() 130 bufferInfo.presentationTimeUs in writeSample() 198 val bufferInfo = MediaCodec.BufferInfo() in writeMetadata() constant 199 bufferInfo.size = bufferSize in writeMetadata() [all …]
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/stressmodes/ |
D | IOContentionStressTestMode.java | 111 MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); in doCopyFile() local 115 bufferInfo.offset = offset; in doCopyFile() 116 bufferInfo.size = extractor.readSampleData(dstBuf, offset); in doCopyFile() 118 if (bufferInfo.size < 0) { in doCopyFile() 120 bufferInfo.size = 0; in doCopyFile() 122 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in doCopyFile() 123 bufferInfo.flags = extractor.getSampleFlags(); in doCopyFile() 126 muxer.writeSampleData(indexMap.get(trackIndex), dstBuf, bufferInfo); in doCopyFile() local
|