Home
last modified time | relevance | path

Searched refs:mMuxer (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/media/tests/benchmark/src/native/muxer/
DMuxer.cpp30 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()
DMuxer.h36 Muxer() : mFormat(nullptr), mMuxer(nullptr), mStats(nullptr) { mExtractor = new Extractor(); } in Muxer()
58 AMediaMuxer *mMuxer; variable
/frameworks/av/media/libstagefright/tests/fuzzers/
DMediaMuxerFuzzer.cpp55 sp<MediaMuxer> mMuxer(new MediaMuxer(fd, format)); in LLVMFuzzerTestOneInput() local
66 mMuxer->addTrack(a_format); in LLVMFuzzerTestOneInput()
70 mMuxer->start(); in LLVMFuzzerTestOneInput()
75 mMuxer->setOrientationHint(degrees); in LLVMFuzzerTestOneInput()
81 mMuxer->setLocation(latitude, longitude); in LLVMFuzzerTestOneInput()
91 mMuxer->writeSampleData(a_buffer, trackIndex, timeUs, flags); in LLVMFuzzerTestOneInput()
97 mMuxer->stop(); in LLVMFuzzerTestOneInput()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DMuxer.java29 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/libmediatranscoding/transcoder/
DMediaSampleWriter.cpp41 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/
DMediaCodecSurfaceEncoder.java58 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/
DScreenInternalAudioRecorder.java49 private MediaMuxer mMuxer; field in ScreenInternalAudioRecorder
58 mMuxer = new MediaMuxer(outFile, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in ScreenInternalAudioRecorder()
245 mTrackId = mMuxer.addTrack(mCodec.getOutputFormat()); in writeOutput()
246 mMuxer.start(); in writeOutput()
257 mMuxer.writeSampleData(mTrackId, buff, bufferInfo); in writeOutput()
304 mMuxer.stop(); in end()
305 mMuxer.release(); in end()
DScreenMediaRecorder.java81 private ScreenRecordingMuxer mMuxer; field in ScreenMediaRecorder
328 mMuxer = new ScreenRecordingMuxer(MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4, in save()
332 mMuxer.mux(); in save()
/frameworks/av/media/libstagefright/
DMediaAppender.cpp289 mMuxer.clear(); in ~MediaAppender()
300 mMuxer = new (std::nothrow) MediaMuxer(mFd, mFormat); in start()
302 ssize_t muxIndex = mMuxer->addTrack(n.second); in start()
311 status_t status = mMuxer->start(); in start()
351 status = mMuxer->writeSampleData(data, mTrackIndexMap[mSDI[i].exTrackIndex], mSDI[i].time, in start()
366 status_t status = mMuxer->stop(); in stop()
407 return mMuxer->writeSampleData(buffer, trackIndex, timeUs, flags); in writeSampleData()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaAppender.h65 sp<MediaMuxer> mMuxer; member
/frameworks/av/media/libmediatranscoding/transcoder/include/media/
DMediaSampleWriter.h197 std::shared_ptr<MediaSampleWriterMuxerInterface> mMuxer; variable