/frameworks/av/media/tests/benchmark/src/native/muxer/ |
D | Muxer.cpp | 30 mMuxer = AMediaMuxer_new(fd, (OutputFormat)outputFormat); in initMuxer() 31 if (!mMuxer) { in initMuxer() 39 ssize_t index = AMediaMuxer_addTrack(mMuxer, mFormat); in initMuxer() 44 AMediaMuxer_start(mMuxer); in initMuxer() 56 if (!mMuxer) return; in deInitMuxer() 58 AMediaMuxer_stop(mMuxer); in deInitMuxer() 59 AMediaMuxer_delete(mMuxer); in deInitMuxer() 81 media_status_t status = AMediaMuxer_writeSampleData(mMuxer, 0, inputBuffer, &info); in mux()
|
D | Muxer.h | 36 Muxer() : mFormat(nullptr), mMuxer(nullptr), mStats(nullptr) { mExtractor = new Extractor(); } in Muxer() 58 AMediaMuxer *mMuxer; variable
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/ |
D | Muxer.java | 29 private MediaMuxer mMuxer; field in Muxer 43 mMuxer = new MediaMuxer(context.getFilesDir().getPath() + "/mux.out.", outputFormat); in setUpMuxer() 44 int trackIndex = mMuxer.addTrack(trackFormat); in setUpMuxer() 45 mMuxer.start(); in setUpMuxer() 69 mMuxer.writeSampleData(trackIndex, inputExtractedBuffer.get(sampleCount), in mux() 86 mMuxer.stop(); in deInitMuxer() 87 mMuxer.release(); in deInitMuxer()
|
/frameworks/av/media/libstagefright/tests/fuzzers/ |
D | MediaMuxerFuzzer.cpp | 154 sp<MediaMuxer> mMuxer = MediaMuxer::create(fd, outputFormat); in LLVMFuzzerTestOneInput() local 155 if (mMuxer == nullptr) { in LLVMFuzzerTestOneInput() 177 mMuxer->addTrack(fdp.ConsumeBool() ? format : nullptr); in LLVMFuzzerTestOneInput() 180 mMuxer->setLocation(fdp.ConsumeIntegral<int32_t>() /* latitude */, in LLVMFuzzerTestOneInput() 183 [&]() { mMuxer->setOrientationHint(fdp.ConsumeIntegral<int32_t>() /* degrees */); }, in LLVMFuzzerTestOneInput() 184 [&]() { mMuxer->start(); }, in LLVMFuzzerTestOneInput() 212 kMinTrackCount, mMuxer->getTrackCount()) in LLVMFuzzerTestOneInput() 215 mMuxer->writeSampleData(fdp.ConsumeBool() ? buffer : nullptr, trackIndex, in LLVMFuzzerTestOneInput() 219 mMuxer->getTrackFormat( in LLVMFuzzerTestOneInput() 221 kMinTrackCount, mMuxer->getTrackCount()) in LLVMFuzzerTestOneInput() [all …]
|
/frameworks/av/media/module/libmediatranscoding/transcoder/ |
D | MediaSampleWriter.cpp | 41 AMediaMuxer_setOrientationHint(mMuxer, rotation); in addTrack() 45 return AMediaMuxer_addTrack(mMuxer, trackFormat); in addTrack() 47 media_status_t start() override { return AMediaMuxer_start(mMuxer); } in start() 50 return AMediaMuxer_writeSampleData(mMuxer, trackIndex, data, info); in writeSampleData() 52 media_status_t stop() override { return AMediaMuxer_stop(mMuxer); } in stop() 66 if (mMuxer != nullptr) { in ~DefaultMuxer() 67 AMediaMuxer_delete(mMuxer); in ~DefaultMuxer() 71 DefaultMuxer(AMediaMuxer* muxer) : mMuxer(muxer){}; in DefaultMuxer() 75 AMediaMuxer* mMuxer; member in android::DefaultMuxer 112 mMuxer = muxer; in init() [all …]
|
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/ |
D | MediaCodecSurfaceEncoder.java | 58 private MediaMuxer mMuxer; field in MediaCodecSurfaceEncoder 115 mMuxer = new MediaMuxer(mOutputPath, muxerFormat); in startEncodingSurface() 125 mMuxer.stop(); in startEncodingSurface() 128 if (mMuxer != null) { in startEncodingSurface() 129 mMuxer.release(); in startEncodingSurface() 130 mMuxer = null; in startEncodingSurface() 364 if (mMuxer != null) { in dequeueEncoderOutput() 366 mTrackID = mMuxer.addTrack(mEncoder.getOutputFormat()); in dequeueEncoderOutput() 367 mMuxer.start(); in dequeueEncoderOutput() 369 mMuxer.writeSampleData(mTrackID, buf, info); in dequeueEncoderOutput()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenInternalAudioRecorder.java | 50 private MediaMuxer mMuxer; field in ScreenInternalAudioRecorder 59 mMuxer = new MediaMuxer(outFile, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in ScreenInternalAudioRecorder() 271 mTrackId = mMuxer.addTrack(mCodec.getOutputFormat()); in writeOutput() 272 mMuxer.start(); in writeOutput() 283 mMuxer.writeSampleData(mTrackId, buff, bufferInfo); in writeOutput() 330 mMuxer.stop(); in end() 331 mMuxer.release(); in end()
|
D | ScreenMediaRecorder.java | 90 private ScreenRecordingMuxer mMuxer; field in ScreenMediaRecorder 350 mMuxer = new ScreenRecordingMuxer(MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4, in save() 354 mMuxer.mux(); in save()
|
/frameworks/av/media/libstagefright/ |
D | MediaAppender.cpp | 300 mMuxer.clear(); in ~MediaAppender() 311 mMuxer = MediaMuxer::create(mFd, mFormat); in start() 312 if (mMuxer == nullptr) { in start() 317 ssize_t muxIndex = mMuxer->addTrack(n.second); in start() 326 status_t status = mMuxer->start(); in start() 366 status = mMuxer->writeSampleData(data, mTrackIndexMap[mSDI[i].exTrackIndex], mSDI[i].time, in start() 381 status_t status = mMuxer->stop(); in stop() 422 return mMuxer->writeSampleData(buffer, trackIndex, timeUs, flags); in writeSampleData()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaAppender.h | 65 sp<MediaMuxer> mMuxer; member
|
/frameworks/av/media/module/libmediatranscoding/transcoder/include/media/ |
D | MediaSampleWriter.h | 197 std::shared_ptr<MediaSampleWriterMuxerInterface> mMuxer; variable
|