Home
last modified time | relevance | path

Searched refs:muxer (Results 1 – 14 of 14) sorted by relevance

/frameworks/av/media/ndk/
DNdkMediaMuxer.cpp58 media_status_t AMediaMuxer_delete(AMediaMuxer *muxer) { in AMediaMuxer_delete() argument
60 delete muxer; in AMediaMuxer_delete()
65 media_status_t AMediaMuxer_setLocation(AMediaMuxer *muxer, float latitude, float longtitude) { in AMediaMuxer_setLocation() argument
66 return translate_error(muxer->mImpl->setLocation(latitude * 10000, longtitude * 10000)); in AMediaMuxer_setLocation()
70 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer *muxer, int degrees) { in AMediaMuxer_setOrientationHint() argument
71 return translate_error(muxer->mImpl->setOrientationHint(degrees)); in AMediaMuxer_setOrientationHint()
75 ssize_t AMediaMuxer_addTrack(AMediaMuxer *muxer, const AMediaFormat *format) { in AMediaMuxer_addTrack() argument
78 ssize_t ret = muxer->mImpl->addTrack(msg); in AMediaMuxer_addTrack()
83 media_status_t AMediaMuxer_start(AMediaMuxer *muxer) { in AMediaMuxer_start() argument
84 return translate_error(muxer->mImpl->start()); in AMediaMuxer_start()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaMuxer.cpp49 sp<MediaMuxer> muxer(reinterpret_cast<MediaMuxer *>(nativeObject)); in android_media_MediaMuxer_addTrack() local
50 if (muxer == NULL) { in android_media_MediaMuxer_addTrack()
66 jint trackIndex = muxer->addTrack(trackformat); in android_media_MediaMuxer_addTrack()
79 sp<MediaMuxer> muxer(reinterpret_cast<MediaMuxer *>(nativeObject)); in android_media_MediaMuxer_writeSampleData() local
80 if (muxer == NULL) { in android_media_MediaMuxer_writeSampleData()
124 status_t err = muxer->writeSampleData(buffer, trackIndex, timeUs, flags); in android_media_MediaMuxer_writeSampleData()
168 sp<MediaMuxer> muxer = new MediaMuxer(fd, fileFormat); in android_media_MediaMuxer_native_setup() local
169 muxer->incStrong(clazz); in android_media_MediaMuxer_native_setup()
170 return reinterpret_cast<jlong>(muxer.get()); in android_media_MediaMuxer_native_setup()
175 sp<MediaMuxer> muxer(reinterpret_cast<MediaMuxer *>(nativeObject)); in android_media_MediaMuxer_setOrientationHint() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenRecordingMuxer.java56 MediaMuxer muxer = null; in mux() local
57 muxer = new MediaMuxer(mOutFile, mFormat); in mux()
71 int muxId = muxer.addTrack(extractor.getTrackFormat(i)); in mux()
77 muxer.start(); in mux()
93 muxer.writeSampleData(muxId, buffer, info); in mux()
101 muxer.stop(); in mux()
102 muxer.release(); in mux()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp384 const ssize_t metaTrackIdx, AMediaMuxer *muxer) { in writeWinscopeMetadataLegacy() argument
408 return AMediaMuxer_writeSampleData(muxer, metaTrackIdx, buffer->data(), &bufferInfo); in writeWinscopeMetadataLegacy()
430 const ssize_t metaTrackIdx, AMediaMuxer *muxer) { in writeWinscopeMetadata() argument
477 return AMediaMuxer_writeSampleData(muxer, metaTrackIdx, buffer->data(), &bufferInfo); in writeWinscopeMetadata()
490 AMediaMuxer *muxer, FILE* rawFp, const sp<IBinder>& display, in runEncoder() argument
503 assert((rawFp == NULL && muxer != NULL) || (rawFp != NULL && muxer == NULL)); in runEncoder()
540 if (muxer != NULL) { in runEncoder()
577 if (muxer == NULL) { in runEncoder()
603 err = AMediaMuxer_writeSampleData(muxer, trackIdx, buffer->data(), &bufferInfo); in runEncoder()
638 if (muxer != NULL) { in runEncoder()
[all …]
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DMuxerTest.java144 Muxer muxer = new Muxer(); in testMuxer() local
145 int trackIndex = muxer.setUpMuxer(mContext, outputFormat, format); in testMuxer()
146 int status = muxer.mux(trackIndex, inputBuffer, inputBufferInfo); in testMuxer()
149 muxer.deInitMuxer(); in testMuxer()
150 muxer.dumpStatistics(mInputFileName, mFormat, extractor.getClipDuration(), mStatsFile); in testMuxer()
151 muxer.resetMuxer(); in testMuxer()
/frameworks/av/cmds/stagefright/
Dmuxer.cpp84 sp<MediaMuxer> muxer = new MediaMuxer(fd, container); in muxing() local
144 ssize_t newTrackIndex = muxer->addTrack(format); in muxing()
161 muxer->setOrientationHint(rotationDegrees); in muxing()
162 muxer->start(); in muxing()
208 err = muxer->writeSampleData(newBuffer, in muxing()
217 muxer->stop(); in muxing()
DAndroid.bp254 name: "muxer",
256 srcs: ["muxer.cpp"],
/frameworks/av/media/ndk/include/media/
DNdkMediaMuxer.h148 media_status_t AMediaMuxer_writeSampleData(AMediaMuxer *muxer,
190 AMediaFormat* AMediaMuxer_getTrackFormat(AMediaMuxer* muxer, size_t idx) __INTRODUCED_IN(31);
/frameworks/av/media/libmediatranscoding/transcoder/
DMediaSampleWriter.cpp71 DefaultMuxer(AMediaMuxer* muxer) : mMuxer(muxer){}; in DefaultMuxer() argument
94 bool MediaSampleWriter::init(const std::shared_ptr<MediaSampleWriterMuxerInterface>& muxer, in init() argument
100 } else if (muxer == nullptr) { in init()
112 mMuxer = muxer; in init()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DCMakeLists.txt32 ${native_source_path}/muxer/Muxer.cpp
38 include_directories(${native_source_path}/muxer)
/frameworks/av/services/camera/libcameraservice/api2/
DHeicCompositeStream.cpp800 it.second.muxer != nullptr; in getNextReadyInputLocked()
804 bool hasOutputBuffer = it.second.muxer != nullptr || in getNextReadyInputLocked()
841 inputFrame.muxer != nullptr; in processInputFrame()
845 bool hasOutputBuffer = inputFrame.muxer != nullptr || in processInputFrame()
870 if (inputFrame.muxer == nullptr) { in processInputFrame()
934 inputFrame.muxer = new MediaMuxer(inputFrame.fileFd, MediaMuxer::OUTPUT_FORMAT_HEIF); in startMuxerForInputFrame()
935 if (inputFrame.muxer == nullptr) { in startMuxerForInputFrame()
941 res = inputFrame.muxer->setOrientationHint(inputFrame.orientation); in startMuxerForInputFrame()
948 ssize_t trackId = inputFrame.muxer->addTrack(inputFrame.format); in startMuxerForInputFrame()
957 res = inputFrame.muxer->start(); in startMuxerForInputFrame()
[all …]
DHeicCompositeStream.h168 sp<MediaMuxer> muxer; member
/frameworks/av/media/libmediatranscoding/transcoder/include/media/
DMediaSampleWriter.h123 bool init(const std::shared_ptr<MediaSampleWriterMuxerInterface>& muxer /* nonnull */,
/frameworks/av/media/tests/benchmark/
DREADME.md236 * MediaMuxer: includes creating the object, adding track, and starting the muxer.