/cts/tests/media/src/android/mediav2/cts/ |
D | CodecEncoderMultiAccessUnitTest.java | 195 if (mMuxer != null) { in dequeueOutputs() 197 mTrackID = mMuxer.addTrack(mCodec.getOutputFormat()); in dequeueOutputs() 198 mMuxer.start(); in dequeueOutputs() 201 mMuxer.writeSampleData(mTrackID, buf, info); in dequeueOutputs() 219 mMuxer = new MediaMuxer(mMuxedOutputFile, muxerFormat); in doWork() 268 mMuxer.stop(); in waitForAllOutputs() 271 if (mMuxer != null) { in waitForAllOutputs() 272 mMuxer.release(); in waitForAllOutputs() 273 mMuxer = null; in waitForAllOutputs()
|
D | CodecEncoderBlockModelMultiAccessUnitTest.java | 218 if (mMuxer != null) { in dequeueOutputs() 220 mTrackID = mMuxer.addTrack(mCodec.getOutputFormat()); in dequeueOutputs() 221 mMuxer.start(); in dequeueOutputs() 223 mMuxer.writeSampleData(mTrackID, buf, callBackInfo); in dequeueOutputs() 248 mMuxer = new MediaMuxer(mMuxedOutputFile, muxerFormat); in doWork() 280 mMuxer.stop(); in waitForAllOutputs() 283 if (mMuxer != null) { in waitForAllOutputs() 284 mMuxer.release(); in waitForAllOutputs() 285 mMuxer = null; in waitForAllOutputs()
|
/cts/tests/media/jni/ |
D | NativeCodecEncoderSurfaceTest.cpp | 37 AMediaMuxer* mMuxer; member in CodecEncoderSurfaceTest 98 mMuxer = nullptr; 130 if (mMuxer) { in ~CodecEncoderSurfaceTest() 131 AMediaMuxer_delete(mMuxer); in ~CodecEncoderSurfaceTest() 132 mMuxer = nullptr; in ~CodecEncoderSurfaceTest() 337 if (mMuxer != nullptr) { in dequeueEncoderOutput() 339 mMuxTrackID = AMediaMuxer_addTrack(mMuxer, AMediaCodec_getOutputFormat(mEncoder)); in dequeueEncoderOutput() 340 RETURN_IF_FAIL(AMediaMuxer_start(mMuxer), "AMediaMuxer_start failed") in dequeueEncoderOutput() 343 RETURN_IF_FAIL(AMediaMuxer_writeSampleData(mMuxer, mMuxTrackID, buf, info), in dequeueEncoderOutput() 595 mMuxer = AMediaMuxer_new(fileno(ofp), muxerFormat); in testSimpleEncode() [all …]
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | CodecEncoderSurfaceTestBase.java | 99 protected MediaMuxer mMuxer; field in CodecEncoderSurfaceTestBase 191 if (mMuxer != null) { in tearDownCodecEncoderSurfaceTestBase() 192 mMuxer.release(); in tearDownCodecEncoderSurfaceTestBase() 193 mMuxer = null; in tearDownCodecEncoderSurfaceTestBase() 340 if (mMuxer != null) { in dequeueEncoderOutput() 342 mTrackID = mMuxer.addTrack(mEncoder.getOutputFormat()); in dequeueEncoderOutput() 343 mMuxer.start(); in dequeueEncoderOutput() 346 mMuxer.writeSampleData(mTrackID, buf, info); in dequeueEncoderOutput() 564 mMuxer = new MediaMuxer(outPath, muxerFormat); in encodeToMemory() 583 mMuxer.stop(); in encodeToMemory() [all …]
|
D | CodecEncoderTestBase.java | 77 protected MediaMuxer mMuxer; field in CodecEncoderTestBase 332 if (mMuxer != null) { in tearDown() 333 mMuxer.release(); in tearDown() 334 mMuxer = null; in tearDown() 537 if (mMuxer != null) { in dequeueOutput() 539 mTrackID = mMuxer.addTrack(mCodec.getOutputFormat()); in dequeueOutput() 540 mMuxer.start(); in dequeueOutput() 543 mMuxer.writeSampleData(mTrackID, buf, info); in dequeueOutput() 556 mMuxer = new MediaMuxer(mMuxedOutputFile, muxerFormat); in doWork() 566 mMuxer.stop(); in waitForAllOutputs() [all …]
|
D | CodecEncoderBlockModelTestBase.java | 170 if (mMuxer != null) { in dequeueOutput() 172 mTrackID = mMuxer.addTrack(mCodec.getOutputFormat()); in dequeueOutput() 173 mMuxer.start(); in dequeueOutput() 176 mMuxer.writeSampleData(mTrackID, buf, info); in dequeueOutput()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraGPURecordingTest.java | 86 private MediaMuxer mMuxer; field in CameraGPURecordingTest 243 mMuxer = new MediaMuxer(outputPath, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in prepareEncoder() 284 if (mMuxer != null) { in releaseEncoder() 285 mMuxer.stop(); in releaseEncoder() 286 mMuxer.release(); in releaseEncoder() 287 mMuxer = null; in releaseEncoder() 327 mTrackIndex = mMuxer.addTrack(newFormat); in drainEncoder() 328 mMuxer.start(); in drainEncoder() 349 mMuxer.writeSampleData(mTrackIndex, encodedData, mBufferInfo); in drainEncoder()
|
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/ |
D | VideoEncoderTest.java | 278 protected MediaMuxer mMuxer; field in VideoEncoderTest.VideoProcessorBase 380 mMuxer = new MediaMuxer( in initCodecsAndConfigureEncoder() 383 mMuxer = new MediaMuxer( in initCodecsAndConfigureEncoder() 409 if (mMuxer != null) { in close() 410 mMuxer.stop(); in close() 411 mMuxer.release(); in close() 412 mMuxer = null; in close() 458 if (mMuxer != null) { in emptyEncoderOutputBuffer() 462 mMuxer.writeSampleData(mMuxIndex, outputBuffer, info); in emptyEncoderOutputBuffer() 487 if (mMuxer != null) { in saveEncoderFormat() [all …]
|