Home
last modified time | relevance | path

Searched refs:trackIndex (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/av/media/extractors/fuzzers/
DExtractorFuzzerBase.cpp60 for (size_t trackIndex = 0; trackIndex < trackCount; ++trackIndex) { in extractTracks() local
61 MediaTrackHelper* track = mExtractor->getTrack(trackIndex); in extractTracks()
100 for (size_t trackIndex = 0; trackIndex < trackCount; ++trackIndex) { in getTracksMetadata() local
101 mExtractor->getTrackMetaData(format, trackIndex, flags); in getTracksMetadata()
123 for (size_t trackIndex = 0; trackIndex < trackCount; ++trackIndex) { in seekAndExtractTracks() local
124 MediaTrackHelper* track = mExtractor->getTrack(trackIndex); in seekAndExtractTracks()
132 mExtractor->getTrackMetaData(trackMetaData, trackIndex, flags); in seekAndExtractTracks()
/frameworks/base/media/java/android/media/
DMediaMuxer.java302 long nativeObject, int trackIndex, @NonNull ByteBuffer byteBuf, in nativeWriteSampleData() argument
621 int trackIndex = -1; in addTrack() local
637 trackIndex = nativeAddTrack(mNativeObject, keys, values); in addTrack()
644 if (mLastTrackIndex >= trackIndex) { in addTrack()
647 mLastTrackIndex = trackIndex; in addTrack()
648 return trackIndex; in addTrack()
665 public void writeSampleData(int trackIndex, @NonNull ByteBuffer byteBuf, in writeSampleData() argument
667 if (trackIndex < 0 || trackIndex > mLastTrackIndex) { in writeSampleData()
693 nativeWriteSampleData(mNativeObject, trackIndex, byteBuf, in writeSampleData()
DSubtitleData.java91 public SubtitleData(int trackIndex, long startTimeUs, long durationUs, @NonNull byte[] data) { in SubtitleData() argument
95 mTrackIndex = trackIndex; in SubtitleData()
DMediaExtractor.java436 public List<AudioPresentation> getAudioPresentations(int trackIndex) {
437 return native_getAudioPresentations(trackIndex);
441 private native List<AudioPresentation> native_getAudioPresentations(int trackIndex);
/frameworks/av/media/libstagefright/rtsp/
DMyHandler.h668 size_t trackIndex; in onMessageReceived() local
669 if (msg->findSize("track-index", &trackIndex)) { in onMessageReceived()
670 track = &mTracks.editItemAt(trackIndex); in onMessageReceived()
729 notify->setSize("track-index", trackIndex); in onMessageReceived()
773 mTracks.removeItemsAt(trackIndex); in onMessageReceived()
1008 size_t trackIndex; in onMessageReceived() local
1009 CHECK(msg->findSize("track-index", &trackIndex)); in onMessageReceived()
1016 onTimeUpdate(trackIndex, rtpTime, ntpTime); in onMessageReceived()
1034 size_t trackIndex; in onMessageReceived() local
1035 CHECK(msg->findSize("track-index", &trackIndex)); in onMessageReceived()
[all …]
DARTPSession.cpp138 size_t trackIndex; in onMessageReceived() local
139 CHECK(msg->findSize("track-index", &trackIndex)); in onMessageReceived()
143 TrackInfo *info = &mTracks.editItemAt(trackIndex); in onMessageReceived()
186 TrackInfo *info = &mTracks.editItemAt(trackIndex); in onMessageReceived()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DMuxer.java44 int trackIndex = mMuxer.addTrack(trackFormat); in setUpMuxer() local
49 return trackIndex; in setUpMuxer()
64 public int mux(int trackIndex, ArrayList<ByteBuffer> inputExtractedBuffer, in mux() argument
69 mMuxer.writeSampleData(trackIndex, inputExtractedBuffer.get(sampleCount), in mux()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DRTSPSource.cpp582 size_t trackIndex; in onMessageReceived() local
583 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
586 CHECK_LT(trackIndex, mTracks.size()); in onMessageReceived()
588 CHECK_EQ(trackIndex, 0u); in onMessageReceived()
626 TrackInfo *info = &mTracks.editItemAt(trackIndex); in onMessageReceived()
664 size_t trackIndex; in onMessageReceived() local
665 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
666 CHECK_LT(trackIndex, mTracks.size()); in onMessageReceived()
668 TrackInfo *info = &mTracks.editItemAt(trackIndex); in onMessageReceived()
679 size_t trackIndex; in onMessageReceived() local
[all …]
DGenericSource.cpp658 int32_t trackIndex; in onMessageReceived() local
659 CHECK(msg->findInt32("trackIndex", &trackIndex)); in onMessageReceived()
660 const sp<IMediaSource> source = mSources.itemAt(trackIndex); in onMessageReceived()
684 track->mIndex = trackIndex; in onMessageReceived()
958 sp<AMessage> NuPlayer::GenericSource::getTrackInfo(size_t trackIndex) const { in getTrackInfo()
961 if (trackIndex >= trackCount) { in getTrackInfo()
966 sp<MetaData> meta = mSources.itemAt(trackIndex)->getFormat(); in getTrackInfo()
968 ALOGE("no metadata for track %zu", trackIndex); in getTrackInfo()
1039 status_t NuPlayer::GenericSource::selectTrack(size_t trackIndex, bool select, int64_t timeUs) { in selectTrack() argument
1041 ALOGV("%s track: %zu", select ? "select" : "deselect", trackIndex); in selectTrack()
[all …]
DHTTPLiveSource.cpp183 sp<AMessage> NuPlayer::HTTPLiveSource::getTrackInfo(size_t trackIndex) const { in getTrackInfo()
184 return mLiveSession->getTrackInfo(trackIndex); in getTrackInfo()
199 status_t NuPlayer::HTTPLiveSource::selectTrack(size_t trackIndex, bool select, int64_t /*timeUs*/) { in selectTrack() argument
206 if (!mHasMetadata || trackIndex != mLiveSession->getTrackCount() - 1) { in selectTrack()
207 err = mLiveSession->selectTrack(trackIndex, select); in selectTrack()
DHTTPLiveSource.h51 virtual sp<AMessage> getTrackInfo(size_t trackIndex) const;
53 virtual status_t selectTrack(size_t trackIndex, bool select, int64_t timeUs);
DGenericSource.h79 virtual sp<AMessage> getTrackInfo(size_t trackIndex) const;
81 virtual status_t selectTrack(size_t trackIndex, bool select, int64_t timeUs);
/frameworks/base/media/jni/
Dandroid_media_JetPlayer.cpp320 for (jint trackIndex=0; trackIndex<maxTracks; trackIndex++) { in android_media_JetPlayer_queueSegmentMuteArray() local
321 if (muteTracks[maxTracks-1-trackIndex]==JNI_TRUE) in android_media_JetPlayer_queueSegmentMuteArray()
391 for (jint trackIndex=0; trackIndex<maxTracks; trackIndex++) { in android_media_JetPlayer_setMuteArray() local
392 if (muteTracks[maxTracks-1-trackIndex]==JNI_TRUE) in android_media_JetPlayer_setMuteArray()
Dandroid_media_MediaMuxer.cpp66 jint trackIndex = muxer->addTrack(trackformat); in android_media_MediaMuxer_addTrack() local
68 if (trackIndex < 0) { in android_media_MediaMuxer_addTrack()
73 return trackIndex; in android_media_MediaMuxer_addTrack()
77 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint trackIndex, in android_media_MediaMuxer_writeSampleData() argument
124 status_t err = muxer->writeSampleData(buffer, trackIndex, timeUs, flags); in android_media_MediaMuxer_writeSampleData()
/frameworks/av/media/libstagefright/
DMediaMuxer.cpp173 status_t MediaMuxer::writeSampleData(const sp<ABuffer> &buffer, size_t trackIndex, in writeSampleData() argument
187 if (trackIndex >= mTrackList.size()) { in writeSampleData()
188 ALOGE("WriteSampleData() get an invalid index %zu", trackIndex); in writeSampleData()
210 sp<MediaAdapter> currentTrack = mTrackList[trackIndex]; in writeSampleData()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DVideoTrackDecoder.java35 protected VideoTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { in VideoTrackDecoder() argument
36 super(trackIndex, format, listener); in VideoTrackDecoder()
DAudioTrackDecoder.java45 public AudioTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { in AudioTrackDecoder() argument
46 super(trackIndex, format, listener); in AudioTrackDecoder()
DTrackDecoder.java69 protected TrackDecoder(int trackIndex, MediaFormat mediaFormat, Listener listener) { in TrackDecoder() argument
70 mTrackIndex = trackIndex; in TrackDecoder()
DGpuVideoTrackDecoder.java68 int trackIndex, MediaFormat format, Listener listener) { in GpuVideoTrackDecoder() argument
69 super(trackIndex, format, listener); in GpuVideoTrackDecoder()
DCpuVideoTrackDecoder.java58 protected CpuVideoTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { in CpuVideoTrackDecoder() argument
59 super(trackIndex, format, listener); in CpuVideoTrackDecoder()
/frameworks/av/cmds/stagefright/
Dmuxer.cpp158 size_t trackIndex = -1; in muxing() local
165 status_t err = extractor->getSampleTrackIndex(&trackIndex); in muxing()
170 } else if (trackIndexMap.indexOfKey(trackIndex) < 0) { in muxing()
209 trackIndexMap.valueFor(trackIndex), in muxing()
DSimplePlayer.cpp469 size_t trackIndex; in onDoMoreStuff() local
470 status_t err = mExtractor->getSampleTrackIndex(&trackIndex); in onDoMoreStuff()
476 CodecState *state = &mStateByTrackIndex.editValueFor(trackIndex); in onDoMoreStuff()
505 ALOGV("enqueued input data on track %zu", trackIndex); in onDoMoreStuff()
572 size_t trackIndex __unused, CodecState *state) { in onOutputFormatChanged()
Dcodec.cpp162 size_t trackIndex; in decode() local
163 status_t err = extractor->getSampleTrackIndex(&trackIndex); in decode()
169 CodecState *state = &stateByTrack.editValueFor(trackIndex); in decode()
/frameworks/av/media/ndk/
DNdkMediaExtractor.cpp437 size_t trackIndex; in AMediaExtractor_getSampleFormat() local
438 err = ex->mImpl->getSampleTrackIndex(&trackIndex); in AMediaExtractor_getSampleFormat()
440 meta->setInt32(AMEDIAFORMAT_KEY_TRACK_INDEX, trackIndex); in AMediaExtractor_getSampleFormat()
443 err = ex->mImpl->getTrackFormat(trackIndex, &trackFormat); in AMediaExtractor_getSampleFormat()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaMuxer.h117 status_t writeSampleData(const sp<ABuffer> &buffer, size_t trackIndex,

12