Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/wifi-display/
DMediaSender.cpp89 ssize_t trackIndex, in initAsync() argument
96 if (trackIndex < 0) { in initAsync()
163 if ((size_t)trackIndex >= mTrackInfos.size()) { in initAsync()
167 TrackInfo *info = &mTrackInfos.editItemAt(trackIndex); in initAsync()
175 notify->setSize("trackIndex", trackIndex); in initAsync()
205 size_t trackIndex, const sp<ABuffer> &accessUnit) { in queueAccessUnit() argument
210 if (trackIndex >= mTrackInfos.size()) { in queueAccessUnit()
215 TrackInfo *info = &mTrackInfos.editItemAt(trackIndex); in queueAccessUnit()
276 TrackInfo *info = &mTrackInfos.editItemAt(trackIndex); in queueAccessUnit()
389 size_t trackIndex, in packetizeAccessUnit() argument
[all …]
DMediaSender.h62 ssize_t trackIndex,
71 size_t trackIndex, const sp<ABuffer> &accessUnit);
122 size_t trackIndex,
/frameworks/base/media/java/android/media/
DMediaMuxer.java108 long nativeObject, int trackIndex, @NonNull ByteBuffer byteBuf, in nativeWriteSampleData() argument
278 int trackIndex = -1; in addTrack() local
294 trackIndex = nativeAddTrack(mNativeObject, keys, values); in addTrack()
301 if (mLastTrackIndex >= trackIndex) { in addTrack()
304 mLastTrackIndex = trackIndex; in addTrack()
305 return trackIndex; in addTrack()
320 public void writeSampleData(int trackIndex, @NonNull ByteBuffer byteBuf, in writeSampleData() argument
322 if (trackIndex < 0 || trackIndex > mLastTrackIndex) { in writeSampleData()
348 nativeWriteSampleData(mNativeObject, trackIndex, byteBuf, in writeSampleData()
/frameworks/av/media/libstagefright/include/
DAVIExtractor.h96 size_t trackIndex, size_t sampleIndex,
101 size_t trackIndex, size_t sampleIndex, int64_t *sampleTimeUs);
104 size_t trackIndex,
108 status_t addMPEG4CodecSpecificData(size_t trackIndex);
109 status_t addH264CodecSpecificData(size_t trackIndex);
112 ssize_t trackIndex, Track::Kind kind, uint32_t chunkType);
/frameworks/av/media/libstagefright/rtsp/
DMyHandler.h653 size_t trackIndex; in onMessageReceived() local
654 if (msg->findSize("track-index", &trackIndex)) { in onMessageReceived()
655 track = &mTracks.editItemAt(trackIndex); in onMessageReceived()
714 notify->setSize("track-index", trackIndex); in onMessageReceived()
758 mTracks.removeItemsAt(trackIndex); in onMessageReceived()
984 size_t trackIndex; in onMessageReceived() local
985 CHECK(msg->findSize("track-index", &trackIndex)); in onMessageReceived()
992 onTimeUpdate(trackIndex, rtpTime, ntpTime); in onMessageReceived()
1010 size_t trackIndex; in onMessageReceived() local
1011 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/libstagefright/wifi-display/source/
DPlaybackSession.cpp493 size_t trackIndex; in onMessageReceived() local
494 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
500 const sp<Track> &track = mTracks.valueFor(trackIndex); in onMessageReceived()
513 ALOGI("output EOS on track %zu", trackIndex); in onMessageReceived()
515 ssize_t index = mTracks.indexOfKey(trackIndex); in onMessageReceived()
582 size_t trackIndex; in onMessageReceived() local
583 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
586 ALOGI("Track %zu stopped", trackIndex); in onMessageReceived()
588 sp<Track> track = mTracks.valueFor(trackIndex); in onMessageReceived()
590 mTracks.removeItem(trackIndex); in onMessageReceived()
[all …]
DTSPacketizer.h51 size_t trackIndex, const sp<ABuffer> &accessUnit,
57 status_t extractCSDIfNecessary(size_t trackIndex);
62 size_t trackIndex, const sp<ABuffer> &accessUnit) const;
DTSPacketizer.cpp442 status_t TSPacketizer::extractCSDIfNecessary(size_t trackIndex) { in extractCSDIfNecessary() argument
443 if (trackIndex >= mTracks.size()) { in extractCSDIfNecessary()
447 const sp<Track> &track = mTracks.itemAt(trackIndex); in extractCSDIfNecessary()
454 size_t trackIndex, in packetize() argument
467 if (trackIndex >= mTracks.size()) { in packetize()
471 const sp<Track> &track = mTracks.itemAt(trackIndex); in packetize()
1038 size_t trackIndex, const sp<ABuffer> &accessUnit) const { in prependCSD() argument
1039 CHECK_LT(trackIndex, mTracks.size()); in prependCSD()
1041 const sp<Track> &track = mTracks.itemAt(trackIndex); in prependCSD()
/frameworks/av/media/libstagefright/timedtext/
DTimedTextDriver.cpp191 size_t trackIndex, const sp<MediaSource>& mediaSource) { in addInBandTextSource() argument
198 mTextSourceVector.add(trackIndex, source); in addInBandTextSource()
204 size_t trackIndex, const char *uri, const char *mimeType) { in addOutOfBandTextSource() argument
214 return createOutOfBandTextSource(trackIndex, mimeType, dataSource); in addOutOfBandTextSource()
218 size_t trackIndex, int fd, off64_t offset, off64_t length, const char *mimeType) { in addOutOfBandTextSource() argument
226 return createOutOfBandTextSource(trackIndex, mimeType, dataSource); in addOutOfBandTextSource()
230 size_t trackIndex, in createOutOfBandTextSource() argument
250 mTextSourceVector.add(trackIndex, source); in createOutOfBandTextSource()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DRTSPSource.cpp417 size_t trackIndex; in onMessageReceived() local
418 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
421 CHECK_LT(trackIndex, mTracks.size()); in onMessageReceived()
423 CHECK_EQ(trackIndex, 0u); in onMessageReceived()
467 TrackInfo *info = &mTracks.editItemAt(trackIndex); in onMessageReceived()
514 size_t trackIndex; in onMessageReceived() local
515 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
516 CHECK_LT(trackIndex, mTracks.size()); in onMessageReceived()
518 TrackInfo *info = &mTracks.editItemAt(trackIndex); in onMessageReceived()
529 size_t trackIndex; in onMessageReceived() local
[all …]
DGenericSource.cpp760 int32_t trackIndex; in onMessageReceived() local
761 CHECK(msg->findInt32("trackIndex", &trackIndex)); in onMessageReceived()
762 const sp<MediaSource> source = mSources.itemAt(trackIndex); in onMessageReceived()
786 track->mIndex = trackIndex; in onMessageReceived()
1063 sp<AMessage> NuPlayer::GenericSource::getTrackInfo(size_t trackIndex) const { in getTrackInfo()
1065 if (trackIndex >= trackCount) { in getTrackInfo()
1070 sp<MetaData> meta = mSources.itemAt(trackIndex)->getFormat(); in getTrackInfo()
1163 status_t NuPlayer::GenericSource::selectTrack(size_t trackIndex, bool select, int64_t timeUs) { in selectTrack() argument
1164 ALOGV("%s track: %zu", select ? "select" : "deselect", trackIndex); in selectTrack()
1166 msg->setInt32("trackIndex", trackIndex); in selectTrack()
[all …]
DHTTPLiveSource.cpp141 sp<AMessage> NuPlayer::HTTPLiveSource::getTrackInfo(size_t trackIndex) const { in getTrackInfo()
142 return mLiveSession->getTrackInfo(trackIndex); in getTrackInfo()
157 status_t NuPlayer::HTTPLiveSource::selectTrack(size_t trackIndex, bool select, int64_t /*timeUs*/) { in selectTrack() argument
164 if (!mHasMetadata || trackIndex != mLiveSession->getTrackCount() - 1) { in selectTrack()
165 err = mLiveSession->selectTrack(trackIndex, select); in selectTrack()
DHTTPLiveSource.h46 virtual sp<AMessage> getTrackInfo(size_t trackIndex) const;
48 virtual status_t selectTrack(size_t trackIndex, bool select, int64_t timeUs);
DGenericSource.h71 virtual sp<AMessage> getTrackInfo(size_t trackIndex) const;
73 virtual status_t selectTrack(size_t trackIndex, bool select, int64_t timeUs);
178 status_t doSelectTrack(size_t trackIndex, bool select, int64_t timeUs);
/frameworks/av/include/media/stagefright/timedtext/
DTimedTextDriver.h52 size_t trackIndex, const sp<MediaSource>& source);
55 size_t trackIndex, const char *uri, const char *mimeType);
59 size_t trackIndex, int fd, off64_t offset,
96 size_t trackIndex, const char* mimeType,
/frameworks/av/media/libstagefright/
DAVIExtractor.cpp39 AVISource(const sp<AVIExtractor> &extractor, size_t trackIndex);
90 const sp<AVIExtractor> &extractor, size_t trackIndex) in AVISource() argument
92 mTrackIndex(trackIndex), in AVISource()
93 mTrack(mExtractor->mTracks.itemAt(trackIndex)), in AVISource()
724 ssize_t trackIndex, Track::Kind kind, uint32_t chunkType) { in IsCorrectChunkType() argument
749 if (trackIndex < 0) { in IsCorrectChunkType()
760 if (trackIndex != (10 * (hi - '0') + (lo - '0'))) { in IsCorrectChunkType()
791 size_t trackIndex = 10 * (hi - '0') + (lo - '0'); in parseIndex() local
793 if (trackIndex >= mTracks.size()) { in parseIndex()
797 Track *track = &mTracks.editItemAt(trackIndex); in parseIndex()
[all …]
DMediaMuxer.cpp149 status_t MediaMuxer::writeSampleData(const sp<ABuffer> &buffer, size_t trackIndex, in writeSampleData() argument
163 if (trackIndex >= mTrackList.size()) { in writeSampleData()
164 ALOGE("WriteSampleData() get an invalid index %zu", trackIndex); in writeSampleData()
182 sp<MediaAdapter> currentTrack = mTrackList[trackIndex]; in writeSampleData()
DAwesomePlayer.cpp1525 void AwesomePlayer::addTextSource_l(size_t trackIndex, const sp<MediaSource>& source) { in addTextSource_l() argument
1532 mTextDriver->addInBandTextSource(trackIndex, source); in addTextSource_l()
2696 const sp<MediaSource>& source, size_t trackIndex) { in selectAudioTrack_l() argument
2698 ALOGI("selectAudioTrack_l: trackIndex=%zu, mFlags=0x%x", trackIndex, mFlags); in selectAudioTrack_l()
2702 if ((ssize_t)trackIndex == mActiveAudioTrackIndex) { in selectAudioTrack_l()
2703 ALOGI("Track %zu is active. Does nothing.", trackIndex); in selectAudioTrack_l()
2762 mActiveAudioTrackIndex = trackIndex; in selectAudioTrack_l()
2767 status_t AwesomePlayer::selectTrack(size_t trackIndex, bool select) { in selectTrack() argument
2769 ALOGV("selectTrack: trackIndex = %zu and select=%d", trackIndex, select); in selectTrack()
2775 if (trackIndex >= trackCount) { in selectTrack()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaMuxer.cpp63 jint trackIndex = muxer->addTrack(trackformat); in android_media_MediaMuxer_addTrack() local
65 if (trackIndex < 0) { in android_media_MediaMuxer_addTrack()
70 return trackIndex; in android_media_MediaMuxer_addTrack()
74 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint trackIndex, in android_media_MediaMuxer_writeSampleData() argument
121 status_t err = muxer->writeSampleData(buffer, trackIndex, timeUs, flags); in android_media_MediaMuxer_writeSampleData()
/frameworks/base/core/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()
/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()
/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()

12