Searched defs:trackIndex (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DVideoTrackDecoder.java35 protected VideoTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { argument
36 super(trackIndex, format, listener);
H A DAudioTrackDecoder.java45 public AudioTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { argument
46 super(trackIndex, format, listener);
H A DCpuVideoTrackDecoder.java58 protected CpuVideoTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { argument
59 super(trackIndex, format, listener);
H A DGpuVideoTrackDecoder.java68 int trackIndex, MediaFormat format, Listener listener) {
69 super(trackIndex, format, listener);
67 GpuVideoTrackDecoder( int trackIndex, MediaFormat format, Listener listener) argument
H A DTrackDecoder.java69 protected TrackDecoder(int trackIndex, MediaFormat mediaFormat, Listener listener) { argument
70 mTrackIndex = trackIndex;
/frameworks/av/media/libstagefright/
H A DMediaMuxer.cpp149 status_t MediaMuxer::writeSampleData(const sp<ABuffer> &buffer, size_t trackIndex, argument
163 if (trackIndex >= mTrackList.size()) {
164 ALOGE("WriteSampleData() get an invalid index %zu", trackIndex);
182 sp<MediaAdapter> currentTrack = mTrackList[trackIndex];
H A DNuMediaExtractor.cpp491 status_t NuMediaExtractor::getSampleTrackIndex(size_t *trackIndex) { argument
501 *trackIndex = info->mTrackIndex;
H A DAVIExtractor.cpp39 AVISource(const sp<AVIExtractor> &extractor, size_t trackIndex);
90 const sp<AVIExtractor> &extractor, size_t trackIndex)
92 mTrackIndex(trackIndex),
93 mTrack(mExtractor->mTracks.itemAt(trackIndex)),
724 ssize_t trackIndex, Track::Kind kind, uint32_t chunkType) {
749 if (trackIndex < 0) {
760 if (trackIndex != (10 * (hi - '0') + (lo - '0'))) {
791 size_t trackIndex = 10 * (hi - '0') + (lo - '0'); local
793 if (trackIndex >= mTracks.size()) {
797 Track *track = &mTracks.editItemAt(trackIndex);
89 AVISource( const sp<AVIExtractor> &extractor, size_t trackIndex) argument
723 IsCorrectChunkType( ssize_t trackIndex, Track::Kind kind, uint32_t chunkType) argument
999 addMPEG4CodecSpecificData(size_t trackIndex) argument
1047 addH264CodecSpecificData(size_t trackIndex) argument
1104 getSampleInfo( size_t trackIndex, size_t sampleIndex, off64_t *offset, size_t *size, bool *isKey, int64_t *sampleTimeUs) argument
1163 getSampleTime( size_t trackIndex, size_t sampleIndex, int64_t *sampleTimeUs) argument
1172 getSampleIndexAtTime( size_t trackIndex, int64_t timeUs, MediaSource::ReadOptions::SeekMode mode, size_t *sampleIndex) const argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DARTPSession.cpp138 size_t trackIndex; local
139 CHECK(msg->findSize("track-index", &trackIndex));
143 TrackInfo *info = &mTracks.editItemAt(trackIndex);
186 TrackInfo *info = &mTracks.editItemAt(trackIndex);
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextDriver.cpp191 size_t trackIndex, const sp<MediaSource>& mediaSource) {
198 mTextSourceVector.add(trackIndex, source);
204 size_t trackIndex, const char *uri, const char *mimeType) {
214 return createOutOfBandTextSource(trackIndex, mimeType, dataSource);
218 size_t trackIndex, int fd, off64_t offset, off64_t length, const char *mimeType) {
226 return createOutOfBandTextSource(trackIndex, mimeType, dataSource);
230 size_t trackIndex,
250 mTextSourceVector.add(trackIndex, source);
190 addInBandTextSource( size_t trackIndex, const sp<MediaSource>& mediaSource) argument
203 addOutOfBandTextSource( size_t trackIndex, const char *uri, const char *mimeType) argument
217 addOutOfBandTextSource( size_t trackIndex, int fd, off64_t offset, off64_t length, const char *mimeType) argument
229 createOutOfBandTextSource( size_t trackIndex, const char *mimeType, const sp<DataSource>& dataSource) argument
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp468 size_t trackIndex; local
469 status_t err = mExtractor->getSampleTrackIndex(&trackIndex);
475 CodecState *state = &mStateByTrackIndex.editValueFor(trackIndex);
502 ALOGV("enqueued input data on track %zu", trackIndex);
569 size_t trackIndex __unused, CodecState *state) {
H A Dcodec.cpp162 size_t trackIndex; local
163 status_t err = extractor->getSampleTrackIndex(&trackIndex);
169 CodecState *state = &stateByTrack.editValueFor(trackIndex);
H A Dmuxer.cpp158 size_t trackIndex = -1; local
165 status_t err = extractor->getSampleTrackIndex(&trackIndex);
170 } else if (trackIndexMap.indexOfKey(trackIndex) < 0) {
171 // ALOGV("skipping input from unsupported track %zu", trackIndex);
175 // ALOGV("reading sample from track index %zu\n", trackIndex);
209 trackIndexMap.valueFor(trackIndex),
H A Dmediafilter.cpp520 size_t trackIndex; local
521 status_t err = extractor->getSampleTrackIndex(&trackIndex);
527 CodecState *state = &stateByTrack.editValueFor(trackIndex);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DHTTPLiveSource.cpp141 sp<AMessage> NuPlayer::HTTPLiveSource::getTrackInfo(size_t trackIndex) const {
142 return mLiveSession->getTrackInfo(trackIndex);
157 status_t NuPlayer::HTTPLiveSource::selectTrack(size_t trackIndex, bool select, int64_t /*timeUs*/) { argument
164 if (!mHasMetadata || trackIndex != mLiveSession->getTrackCount() - 1) {
165 err = mLiveSession->selectTrack(trackIndex, select);
169 // metadata track; i.e. (mHasMetadata && trackIndex == mLiveSession->getTrackCount() - 1)
H A DRTSPSource.cpp417 size_t trackIndex; local
418 CHECK(msg->findSize("trackIndex", &trackIndex));
421 CHECK_LT(trackIndex, mTracks.size());
423 CHECK_EQ(trackIndex, 0u);
467 TrackInfo *info = &mTracks.editItemAt(trackIndex);
514 size_t trackIndex; local
515 CHECK(msg->findSize("trackIndex", &trackIndex));
516 CHECK_LT(trackIndex, mTrack
529 size_t trackIndex; local
547 size_t trackIndex; local
[all...]
H A DNuPlayerDriver.cpp546 int trackIndex = request.readInt32(); local
550 return mPlayer->selectTrack(trackIndex, true /* select */, msec * 1000ll);
555 int trackIndex = request.readInt32(); local
556 return mPlayer->selectTrack(trackIndex, false /* select */, 0xdeadbeef /* not used */);
H A DGenericSource.cpp760 int32_t trackIndex; local
761 CHECK(msg->findInt32("trackIndex", &trackIndex));
762 const sp<MediaSource> source = mSources.itemAt(trackIndex);
786 track->mIndex = trackIndex;
1063 sp<AMessage> NuPlayer::GenericSource::getTrackInfo(size_t trackIndex) const {
1065 if (trackIndex >= trackCount) {
1070 sp<MetaData> meta = mSources.itemAt(trackIndex)->getFormat();
1163 status_t NuPlayer::GenericSource::selectTrack(size_t trackIndex, bool select, int64_t timeUs) { argument
1164 ALOGV("%s track: %zu", select ? "select" : "deselect", trackIndex);
1180 int32_t trackIndex, select; local
1195 doSelectTrack(size_t trackIndex, bool select, int64_t timeUs) argument
[all...]
H A DNuPlayer.cpp559 size_t trackIndex; local
562 CHECK(msg->findSize("trackIndex", &trackIndex));
577 if (trackIndex < inbandTracks) {
578 err = mSource->selectTrack(trackIndex, select, timeUs);
582 sp<AMessage> info = mSource->getTrackInfo(trackIndex);
590 trackIndex -= inbandTracks;
592 if (trackIndex < ccTracks) {
593 err = mCCDecoder->selectTrack(trackIndex, select);
1755 status_t NuPlayer::selectTrack(size_t trackIndex, boo argument
2259 int32_t trackIndex; local
[all...]
/frameworks/av/media/libstagefright/wifi-display/
H A DMediaSender.cpp89 ssize_t trackIndex,
96 if (trackIndex < 0) {
163 if ((size_t)trackIndex >= mTrackInfos.size()) {
167 TrackInfo *info = &mTrackInfos.editItemAt(trackIndex);
175 notify->setSize("trackIndex", trackIndex);
205 size_t trackIndex, const sp<ABuffer> &accessUnit) {
210 if (trackIndex >= mTrackInfos.size()) {
215 TrackInfo *info = &mTrackInfos.editItemAt(trackIndex);
276 TrackInfo *info = &mTrackInfos.editItemAt(trackIndex);
88 initAsync( ssize_t trackIndex, const char *remoteHost, int32_t remoteRTPPort, RTPSender::TransportMode rtpMode, int32_t remoteRTCPPort, RTPSender::TransportMode rtcpMode, int32_t *localRTPPort) argument
204 queueAccessUnit( size_t trackIndex, const sp<ABuffer> &accessUnit) argument
388 packetizeAccessUnit( size_t trackIndex, sp<ABuffer> accessUnit, sp<ABuffer> *tsPackets) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaMuxer.java108 long nativeObject, int trackIndex, @NonNull ByteBuffer byteBuf,
278 int trackIndex = -1;
294 trackIndex = nativeAddTrack(mNativeObject, keys, values);
300 // However, if format is invalid, it will get a negative trackIndex.
301 if (mLastTrackIndex >= trackIndex) {
304 mLastTrackIndex = trackIndex;
305 return trackIndex;
315 * @param trackIndex The track index for this sample.
320 public void writeSampleData(int trackIndex, @NonNull ByteBuffer byteBuf, argument
322 if (trackIndex <
107 nativeWriteSampleData( long nativeObject, int trackIndex, @NonNull ByteBuffer byteBuf, int offset, int size, long presentationTimeUs, @MediaCodec.BufferFlag int flags) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaMuxer.cpp63 jint trackIndex = muxer->addTrack(trackformat); local
65 if (trackIndex < 0) {
70 return trackIndex;
74 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint trackIndex,
121 status_t err = muxer->writeSampleData(buffer, trackIndex, timeUs, flags);
73 android_media_MediaMuxer_writeSampleData( JNIEnv *env, jclass , jlong nativeObject, jint trackIndex, jobject byteBuf, jint offset, jint size, jlong timeUs, jint flags) argument
H A Dandroid_media_MediaExtractor.cpp210 status_t JMediaExtractor::getSampleTrackIndex(size_t *trackIndex) { argument
211 return mImpl->getSampleTrackIndex(trackIndex);
437 size_t trackIndex; local
438 status_t err = extractor->getSampleTrackIndex(&trackIndex);
447 return (jint) trackIndex;
/frameworks/av/media/libstagefright/wifi-display/source/
H A DTSPacketizer.cpp442 status_t TSPacketizer::extractCSDIfNecessary(size_t trackIndex) { argument
443 if (trackIndex >= mTracks.size()) {
447 const sp<Track> &track = mTracks.itemAt(trackIndex);
454 size_t trackIndex,
467 if (trackIndex >= mTracks.size()) {
471 const sp<Track> &track = mTracks.itemAt(trackIndex);
1038 size_t trackIndex, const sp<ABuffer> &accessUnit) const {
1039 CHECK_LT(trackIndex, mTracks.size());
1041 const sp<Track> &track = mTracks.itemAt(trackIndex);
453 packetize( size_t trackIndex, const sp<ABuffer> &_accessUnit, sp<ABuffer> *packets, uint32_t flags, const uint8_t *PES_private_data, size_t PES_private_data_len, size_t numStuffingBytes) argument
1037 prependCSD( size_t trackIndex, const sp<ABuffer> &accessUnit) const argument
H A DPlaybackSession.cpp404 -1 /* trackIndex */,
493 size_t trackIndex; local
494 CHECK(msg->findSize("trackIndex", &trackIndex));
500 const sp<Track> &track = mTracks.valueFor(trackIndex);
513 ALOGI("output EOS on track %zu", trackIndex);
515 ssize_t index = mTracks.indexOfKey(trackIndex);
582 size_t trackIndex; local
583 CHECK(msg->findSize("trackIndex", &trackIndex));
789 size_t trackIndex = mTracks.size(); local
865 size_t trackIndex; local
939 size_t trackIndex; local
[all...]

Completed in 396 milliseconds

12