Home
last modified time | relevance | path

Searched refs:trackIndex (Results 1 – 25 of 39) 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.java290 long nativeObject, int trackIndex, @NonNull ByteBuffer byteBuf, in nativeWriteSampleData() argument
603 int trackIndex = -1; in addTrack() local
619 trackIndex = nativeAddTrack(mNativeObject, keys, values); in addTrack()
626 if (mLastTrackIndex >= trackIndex) { in addTrack()
629 mLastTrackIndex = trackIndex; in addTrack()
630 return trackIndex; in addTrack()
647 public void writeSampleData(int trackIndex, @NonNull ByteBuffer byteBuf, in writeSampleData() argument
649 if (trackIndex < 0 || trackIndex > mLastTrackIndex) { in writeSampleData()
675 nativeWriteSampleData(mNativeObject, trackIndex, byteBuf, in writeSampleData()
/frameworks/av/media/libstagefright/include/
DAVIExtractor.h97 size_t trackIndex, size_t sampleIndex,
102 size_t trackIndex, size_t sampleIndex, int64_t *sampleTimeUs);
105 size_t trackIndex,
109 status_t addMPEG4CodecSpecificData(size_t trackIndex);
110 status_t addH264CodecSpecificData(size_t trackIndex);
113 ssize_t trackIndex, Track::Kind kind, uint32_t chunkType);
DMediaMuxer.h115 status_t writeSampleData(const sp<ABuffer> &buffer, size_t trackIndex,
/frameworks/av/media/libstagefright/rtsp/
DMyHandler.h658 size_t trackIndex; in onMessageReceived() local
659 if (msg->findSize("track-index", &trackIndex)) { in onMessageReceived()
660 track = &mTracks.editItemAt(trackIndex); in onMessageReceived()
719 notify->setSize("track-index", trackIndex); in onMessageReceived()
763 mTracks.removeItemsAt(trackIndex); in onMessageReceived()
990 size_t trackIndex; in onMessageReceived() local
991 CHECK(msg->findSize("track-index", &trackIndex)); in onMessageReceived()
998 onTimeUpdate(trackIndex, rtpTime, ntpTime); in onMessageReceived()
1016 size_t trackIndex; in onMessageReceived() local
1017 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.cpp492 size_t trackIndex; in onMessageReceived() local
493 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
499 const sp<Track> &track = mTracks.valueFor(trackIndex); in onMessageReceived()
512 ALOGI("output EOS on track %zu", trackIndex); in onMessageReceived()
514 ssize_t index = mTracks.indexOfKey(trackIndex); in onMessageReceived()
581 size_t trackIndex; in onMessageReceived() local
582 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
585 ALOGI("Track %zu stopped", trackIndex); in onMessageReceived()
587 sp<Track> track = mTracks.valueFor(trackIndex); in onMessageReceived()
589 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/
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()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DRTSPSource.cpp617 size_t trackIndex; in onMessageReceived() local
618 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
621 CHECK_LT(trackIndex, mTracks.size()); in onMessageReceived()
623 CHECK_EQ(trackIndex, 0u); in onMessageReceived()
661 TrackInfo *info = &mTracks.editItemAt(trackIndex); in onMessageReceived()
699 size_t trackIndex; in onMessageReceived() local
700 CHECK(msg->findSize("trackIndex", &trackIndex)); in onMessageReceived()
701 CHECK_LT(trackIndex, mTracks.size()); in onMessageReceived()
703 TrackInfo *info = &mTracks.editItemAt(trackIndex); in onMessageReceived()
714 size_t trackIndex; in onMessageReceived() local
[all …]
DGenericSource.cpp596 int32_t trackIndex; in onMessageReceived() local
597 CHECK(msg->findInt32("trackIndex", &trackIndex)); in onMessageReceived()
598 const sp<IMediaSource> source = mSources.itemAt(trackIndex); in onMessageReceived()
622 track->mIndex = trackIndex; in onMessageReceived()
935 sp<AMessage> NuPlayer::GenericSource::getTrackInfo(size_t trackIndex) const { in getTrackInfo()
937 msg->setSize("trackIndex", trackIndex); in getTrackInfo()
951 size_t trackIndex; in onGetTrackInfo() local
952 CHECK(msg->findSize("trackIndex", &trackIndex)); in onGetTrackInfo()
955 sp<AMessage> format = doGetTrackInfo(trackIndex); in onGetTrackInfo()
963 sp<AMessage> NuPlayer::GenericSource::doGetTrackInfo(size_t trackIndex) const { in doGetTrackInfo()
[all …]
DHTTPLiveSource.cpp202 sp<AMessage> NuPlayer::HTTPLiveSource::getTrackInfo(size_t trackIndex) const { in getTrackInfo()
203 return mLiveSession->getTrackInfo(trackIndex); in getTrackInfo()
218 status_t NuPlayer::HTTPLiveSource::selectTrack(size_t trackIndex, bool select, int64_t /*timeUs*/) { in selectTrack() argument
225 if (!mHasMetadata || trackIndex != mLiveSession->getTrackCount() - 1) { in selectTrack()
226 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.h75 virtual sp<AMessage> getTrackInfo(size_t trackIndex) const;
77 virtual status_t selectTrack(size_t trackIndex, bool select, int64_t timeUs);
268 sp<AMessage> doGetTrackInfo(size_t trackIndex) const;
274 status_t doSelectTrack(size_t trackIndex, bool select, int64_t timeUs);
/frameworks/base/media/jni/
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/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()
DGpuVideoTrackDecoder.java68 int trackIndex, MediaFormat format, Listener listener) { in GpuVideoTrackDecoder() argument
69 super(trackIndex, format, listener); in GpuVideoTrackDecoder()
/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()

12