Home
last modified time | relevance | path

Searched refs:mDataSource (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/av/media/libstagefright/
DMPEG4Extractor.cpp77 sp<DataSource> mDataSource; member in android::MPEG4Source
355 mDataSource(source), in MPEG4Extractor()
508 if (mDataSource->readAt(offset, hdr, 8) < 8) { in readMetaData()
596 if (mDataSource->readAt(data_offset, &updateIdTag, 1) < 1) { in parseDrmSINF()
606 int32_t size = readSize(data_offset, mDataSource, &numOfBytes); in parseDrmSINF()
615 if (mDataSource->readAt(data_offset, &descriptorTag, 1) < 1) { in parseDrmSINF()
626 if (mDataSource->readAt(data_offset, buffer, 2) < 2) { in parseDrmSINF()
635 if (mDataSource->readAt(data_offset, buffer, 8) < 8) { in parseDrmSINF()
658 if (mDataSource->readAt(data_offset, &updateIdTag, 1) < 1) { in parseDrmSINF()
667 size = readSize(data_offset, mDataSource, &numOfBytes); in parseDrmSINF()
[all …]
DAMRExtractor.cpp54 sp<DataSource> mDataSource; member in android::AMRSource
117 : mDataSource(source), in AMRExtractor()
122 if (!SniffAMR(mDataSource, &mimeType, &confidence, NULL)) { in AMRExtractor()
141 if (mDataSource->getSize(&streamSize) == OK) { in AMRExtractor()
188 return new AMRSource(mDataSource, mMeta, mIsWide, in getTrack()
205 : mDataSource(source), in AMRSource()
270 if ((err = getFrameSizeByOffset(mDataSource, mOffset, in read()
279 ssize_t n = mDataSource->readAt(mOffset, &header, 1); in read()
306 n = mDataSource->readAt(mOffset, buffer->data(), frameSize); in read()
DAACExtractor.cpp57 sp<DataSource> mDataSource; member in android::AACSource
137 : mDataSource(source), in AACExtractor()
147 if (!SniffAAC(mDataSource, &mimeType, &confidence, &meta)) { in AACExtractor()
156 if (mDataSource->readAt(offset + 2, &header, 2) < 2) { in AACExtractor()
174 if (mDataSource->getSize(&streamSize) == OK) { in AACExtractor()
219 return new AACSource(mDataSource, mMeta, mOffsetVector, mFrameDurationUs); in getTrack()
239 : mDataSource(source), in AACSource()
302 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) { in read()
313 if (mDataSource->readAt(mOffset + headerSize, buffer->data(), in read()
DMP3Extractor.cpp233 sp<DataSource> mDataSource; member in android::MP3Source
252 mDataSource(source), in MP3Extractor()
275 success = Resync(mDataSource, 0, &pos, &post_id3_pos, &header); in MP3Extractor()
315 sp<XINGSeeker> seeker = XINGSeeker::CreateFromSource(mDataSource, mFirstFramePos); in MP3Extractor()
318 mSeeker = VBRISeeker::CreateFromSource(mDataSource, post_id3_pos); in MP3Extractor()
340 if (mDataSource->getSize(&fileSize) == OK) { in MP3Extractor()
356 ID3 id3(mDataSource, true); in MP3Extractor()
397 mMeta, mDataSource, mFirstFramePos, mFixedHeader, in getTrack()
424 mDataSource(source), in MP3Source()
517 ssize_t n = mDataSource->readAt(mCurrentPos, buffer->data(), 4); in read()
[all …]
DSampleIterator.cpp193 if (mTable->mDataSource->readAt( in getChunkOffset()
205 if (mTable->mDataSource->readAt( in getChunkOffset()
234 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
247 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
260 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
275 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
DWAVExtractor.cpp77 sp<DataSource> mDataSource; member
94 : mDataSource(source), in WAVExtractor()
125 mDataSource, mTrackMeta, in getTrack()
140 if (mDataSource->readAt( in init()
155 if (mDataSource->readAt(offset, chunkHeader, 8) < 8) { in init()
174 if (mDataSource->readAt(offset, formatSpec, 2) < 2) { in init()
191 if (mDataSource->readAt(offset, formatSpec, fmtSize) < fmtSize) { in init()
339 : mDataSource(dataSource), in WAVSource()
455 ssize_t n = mDataSource->readAt( in read()
DSampleTable.cpp109 : mDataSource(source), in SampleTable()
179 if (mDataSource->readAt( in setChunkOffsetParams()
217 if (mDataSource->readAt( in setSampleToChunkParams()
238 if (mDataSource->readAt( in setSampleToChunkParams()
270 if (mDataSource->readAt( in setSampleSizeParams()
322 if (mDataSource->readAt( in setTimeToSampleParams()
340 if (mDataSource->readAt( in setTimeToSampleParams()
361 if (mDataSource->readAt( in setCompositionTimeToSampleParams()
386 if (mDataSource->readAt( in setCompositionTimeToSampleParams()
413 if (mDataSource->readAt( in setSyncSampleParams()
[all …]
DFLACExtractor.cpp57 sp<DataSource> mDataSource; member in android::FLACSource
117 sp<DataSource> mDataSource; member in android::FLACParser
271 ssize_t actual = mDataSource->readAt(mCurrentPos, buffer, requested); in readCallback()
306 if (OK == mDataSource->getSize(&size)) { in lengthCallback()
489 : mDataSource(dataSource), in FLACParser()
706 : mDataSource(dataSource), in FLACSource()
782 mParser = new FLACParser(mDataSource); in init()
790 : mDataSource(dataSource), in FLACExtractor()
812 return new FLACSource(mDataSource, mTrackMetadata); in getTrack()
828 mParser = new FLACParser(mDataSource, mFileMetadata, mTrackMetadata); in init()
DNuMediaExtractor.cpp123 mDataSource = dataSource; in setDataSource()
151 mDataSource = fileSource; in setDataSource()
176 mDataSource = source; in setDataSource()
545 if (mDurationUs >= 0 && mDataSource->getSize(&size) == OK) { in getTotalBitrate()
567 } else if ((mDataSource->flags() & DataSource::kIsCachingDataSource) in getCachedDuration()
570 static_cast<NuCachedSource2 *>(mDataSource.get()); in getCachedDuration()
DAVIExtractor.cpp188 ssize_t n = mExtractor->mDataSource->readAt(offset, out->data(), size); in read()
369 : mDataSource(dataSource) { in AVIExtractor()
428 ssize_t n = mDataSource->readAt(offset, tmp, 8); in parseChunk()
452 n = mDataSource->readAt(offset + 8, &tmp[8], 4); in parseChunk()
599 ssize_t n = mDataSource->readAt(offset, buffer->data(), buffer->size()); in parseStreamHeader()
689 ssize_t n = mDataSource->readAt(offset, buffer->data(), buffer->size()); in parseStreamFormat()
773 ssize_t n = mDataSource->readAt(offset, buffer->data(), buffer->size()); in parseIndex()
1014 ssize_t n = mDataSource->readAt(offset, buffer->data(), buffer->size()); in addMPEG4CodecSpecificData()
1075 ssize_t n = mDataSource->readAt(offset, buffer->data(), buffer->size()); in addH264CodecSpecificData()
1129 ssize_t n = mDataSource->readAt(*offset, tmp, 8); in getSampleInfo()
/frameworks/wilhelm/src/android/util/
DAacAdtsExtractor.cpp94 : mDataSource(source), in AacAdtsExtractor()
107 ssize_t readSize = mDataSource->readAt(2, &header, 2); in AacAdtsExtractor()
132 if (mDataSource->getSize(&streamSize) == OK) { in AacAdtsExtractor()
136 if ((frameSize = getFrameSize(mDataSource, offset)) == 0) { in AacAdtsExtractor()
191 return new AacAdtsSource(mDataSource, mMeta, mFrameDurationUs); in getTrack()
212 : mDataSource(source), in AacAdtsSource()
271 if ((frameSize = getFrameSize(mDataSource, mOffset)) == 0) { in read()
284 ssize_t readSize = mDataSource->readAt(mOffset + ADTS_HEADER_LENGTH, buffer->data(), in read()
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
DVariableSpeed.java54 @GuardedBy("lock") private MediaPlayerDataSource mDataSource; field in VariableSpeed
184 check(mDataSource == null, "cannot setDataSource more than once"); in innerSetDataSource()
185 mDataSource = source; in innerSetDataSource()
200 mDataSource = null; in reset()
220 check(mDataSource != null, "must setDataSource before you prepare"); in prepare()
223 dataSource = mDataSource; in prepare()
257 dataSource = mDataSource; in seekTo()
299 mExecutor.execute(new PlaybackRunnable(mDataSource)); in start()
303 restartWithThisDataSource = mDataSource; in start()
/frameworks/wilhelm/src/itf/
DIEngine.c62 assert(SL_DATAFORMAT_MIME == ap->mDataSource.mFormat.mFormatType); in initializeAndroidBufferQueueMembers()
63 switch(ap->mDataSource.mFormat.mMIME.containerType) { in initializeAndroidBufferQueueMembers()
69 const char* mime = (char*)ap->mDataSource.mFormat.mMIME.mimeType; in initializeAndroidBufferQueueMembers()
198 thiz->mDataSource.mLocator.mLocatorType = SL_DATALOCATOR_NULL; in IEngine_CreateAudioPlayer()
199 thiz->mDataSource.mFormat.mFormatType = SL_DATAFORMAT_NULL; in IEngine_CreateAudioPlayer()
248 result = checkDataSource("pAudioSrc", pAudioSrc, &thiz->mDataSource, in IEngine_CreateAudioPlayer()
281 result = checkSourceSinkVsInterfacesCompatibility(&thiz->mDataSource, in IEngine_CreateAudioPlayer()
295 switch (thiz->mDataSource.mLocator.mLocatorType) { in IEngine_CreateAudioPlayer()
301 nbBuffers = (SLuint16) thiz->mDataSource.mLocator.mBufferQueue.numBuffers; in IEngine_CreateAudioPlayer()
302 assert(SL_DATAFORMAT_PCM == thiz->mDataSource.mFormat.mFormatType in IEngine_CreateAudioPlayer()
[all …]
DIDynamicSource.c41 thiz->mDataSource = pDataSource; in IDynamicSource_SetSource()
59 thiz->mDataSource = NULL; in IDynamicSource_init()
/frameworks/wilhelm/src/android/
DMediaPlayer_to_android.cpp308 const SLDataSource *pSrc = &mp->mDataSource.u.mSource; in android_Player_checkSourceSink()
369 const SLDataSource *pDataSrc = &mp->mDataSource.u.mSource; in android_Player_create()
413 const SLDataSource *pDataSrc = &mp->mDataSource.u.mSource; in android_Player_realize()
430 switch (mp->mDataSource.mLocator.mLocatorType) { in android_Player_realize()
433 (const char*)mp->mDataSource.mLocator.mURI.URI); in android_Player_realize()
436 int64_t offset = (int64_t)mp->mDataSource.mLocator.mFD.offset; in android_Player_realize()
438 (int)mp->mDataSource.mLocator.mFD.fd, in android_Player_realize()
441 (int64_t)mp->mDataSource.mLocator.mFD.length); in android_Player_realize()
446 mp->mDataSource.mLocator.mLocatorType); in android_Player_realize()
Dandroid_AudioSfDecoder.cpp35 mDataSource(0), in AudioSfDecoder()
324 mDataSource = dataSource; in onPrepare()
452 if (mDataSource == 0) { in onDecode()
651 if (mDataSource != 0) { in wantPrefetch()
652 return (mDataSource->flags() & DataSource::kWantsPrefetching); in wantPrefetch()
676 static_cast<NuCachedSource2 *>(mDataSource.get()); in getCacheRemaining()
DAudioPlayer_to_android.cpp567 const SLDataSource *pAudioSrc = &ap->mDataSource.u.mSource; in audioPlayer_getAndroidObjectTypeForSourceSink()
921 const SLDataSource *pAudioSrc = &pAudioPlayer->mDataSource.u.mSource; in android_audioPlayer_checkSourceSink()
1511 pAudioPlayer->mDynamicSource.mDataSource; in android_audioPlayer_realize()
1513 pAudioPlayer->mDynamicSource.mDataSource->pFormat; in android_audioPlayer_realize()
1561 switch (pAudioPlayer->mDataSource.mLocator.mLocatorType) { in android_audioPlayer_realize()
1572 const char *uri = (const char *)pAudioPlayer->mDataSource.mLocator.mURI.URI; in android_audioPlayer_realize()
1599 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; in android_audioPlayer_realize()
1601 (int)pAudioPlayer->mDataSource.mLocator.mFD.fd, in android_audioPlayer_realize()
1604 (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.length); in android_audioPlayer_realize()
1635 switch (pAudioPlayer->mDataSource.mLocator.mLocatorType) { in android_audioPlayer_realize()
[all …]
/frameworks/wilhelm/src/android/include/
DAacAdtsExtractor.h59 sp<DataSource> mDataSource; variable
88 sp<DataSource> mDataSource;
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp119 CHECK(mDataSource != NULL); in initFromDataSource()
127 success = SniffWVM(mDataSource, &mimeType, &confidence, &dummy); in initFromDataSource()
135 mWVMExtractor = new WVMExtractor(mDataSource); in initFromDataSource()
142 extractor = MediaExtractor::Create(mDataSource, in initFromDataSource()
151 checkDrmStatus(mDataSource); in initFromDataSource()
288 if (mDataSource == NULL) { in onPrepareAsync()
304 mDataSource = DataSource::CreateFromURI( in onPrepareAsync()
312 mDataSource = new FileSource(mFd, mOffset, mLength); in onPrepareAsync()
315 if (mDataSource == NULL) { in onPrepareAsync()
321 if (mDataSource->flags() & DataSource::kIsCachingDataSource) { in onPrepareAsync()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaExtractor.cpp57 jobject mDataSource; member in android::JavaDataSourceBridge
60 mDataSource = env->NewGlobalRef(source); in JavaDataSourceBridge()
62 jclass datasourceclass = env->GetObjectClass(mDataSource); in JavaDataSourceBridge()
77 env->CallVoidMethod(mDataSource, mCloseMethod); in ~JavaDataSourceBridge()
78 env->DeleteGlobalRef(mDataSource); in ~JavaDataSourceBridge()
90 env->DeleteLocalRef(env->GetObjectClass(mDataSource)); in readAt()
92 … ssize_t numread = env->CallIntMethod(mDataSource, mReadMethod, offset, byteArrayObj, (jint)size); in readAt()
109 int64_t len = env->CallLongMethod(mDataSource, mGetSizeMethod); in getSize()
/frameworks/wilhelm/src/
Dclasses.h67 DataLocatorFormat mDataSource; member
145 DataLocatorFormat mDataSource; member
331 DataLocatorFormat mDataSource; member
/frameworks/wilhelm/src/objects/
DCAudioRecorder.c50 freeDataLocatorFormat(&thiz->mDataSource); in CAudioRecorder_Destroy()
DCMediaPlayer.c52 freeDataLocatorFormat(&thiz->mDataSource); in CMediaPlayer_Destroy()
/frameworks/av/media/libstagefright/mpeg2ts/
DMPEG2TSExtractor.cpp112 : mDataSource(source), in MPEG2TSExtractor()
200 ssize_t n = mDataSource->readAt(mOffset, packet, kTSPacketSize); in feedMore()
/frameworks/av/media/libstagefright/include/
DAMRExtractor.h44 sp<DataSource> mDataSource;

123