Home
last modified time | relevance | path

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

123

/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/av/media/libstagefright/
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()
DMPEG4Extractor.cpp68 sp<DataSource> mDataSource; member in android::MPEG4Source
266 : mDataSource(source), in MPEG4Extractor()
433 if (mDataSource->readAt(data_offset, &updateIdTag, 1) < 1) { in parseDrmSINF()
443 int32_t size = readSize(data_offset, mDataSource, &numOfBytes); in parseDrmSINF()
452 if (mDataSource->readAt(data_offset, &descriptorTag, 1) < 1) { in parseDrmSINF()
463 if (mDataSource->readAt(data_offset, buffer, 2) < 2) { in parseDrmSINF()
472 if (mDataSource->readAt(data_offset, buffer, 8) < 8) { in parseDrmSINF()
495 if (mDataSource->readAt(data_offset, &updateIdTag, 1) < 1) { in parseDrmSINF()
504 size = readSize(data_offset, mDataSource, &numOfBytes); in parseDrmSINF()
514 if (mDataSource->readAt(data_offset, &tag, 1) < 1) { in parseDrmSINF()
[all …]
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.cpp232 sp<DataSource> mDataSource; member in android::MP3Source
251 mDataSource(source), in MP3Extractor()
274 success = Resync(mDataSource, 0, &pos, &post_id3_pos, &header); in MP3Extractor()
314 sp<XINGSeeker> seeker = XINGSeeker::CreateFromSource(mDataSource, mFirstFramePos); in MP3Extractor()
317 mSeeker = VBRISeeker::CreateFromSource(mDataSource, post_id3_pos); in MP3Extractor()
339 if (mDataSource->getSize(&fileSize) == OK) { in MP3Extractor()
353 ID3 id3(mDataSource); in MP3Extractor()
394 mMeta, mDataSource, mFirstFramePos, mFixedHeader, in getTrack()
413 mDataSource(source), in MP3Source()
507 ssize_t n = mDataSource->readAt(mCurrentPos, buffer->data(), 4); in read()
[all …]
DSampleIterator.cpp192 if (mTable->mDataSource->readAt( in getChunkOffset()
204 if (mTable->mDataSource->readAt( in getChunkOffset()
233 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
246 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
259 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
274 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
DWAVExtractor.cpp76 sp<DataSource> mDataSource; member
93 : mDataSource(source), in WAVExtractor()
124 mDataSource, mTrackMeta, in getTrack()
139 if (mDataSource->readAt( in init()
154 if (mDataSource->readAt(offset, chunkHeader, 8) < 8) { in init()
173 if (mDataSource->readAt(offset, formatSpec, 2) < 2) { in init()
189 if (mDataSource->readAt(offset, formatSpec, fmtSize) < fmtSize) { in init()
323 : mDataSource(dataSource), in WAVSource()
415 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()
336 if (mDataSource->readAt( in setTimeToSampleParams()
357 if (mDataSource->readAt( in setCompositionTimeToSampleParams()
377 if (mDataSource->readAt( in setCompositionTimeToSampleParams()
404 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()
441 : mDataSource(dataSource), in FLACParser()
658 : mDataSource(dataSource), in FLACSource()
734 mParser = new FLACParser(mDataSource); in init()
742 : mDataSource(dataSource), in FLACExtractor()
764 return new FLACSource(mDataSource, mTrackMetadata); in getTrack()
781 mParser = new FLACParser(mDataSource, mFileMetadata, mTrackMetadata); in init()
DNuMediaExtractor.cpp115 mDataSource = dataSource; in setDataSource()
142 mDataSource = fileSource; in setDataSource()
483 if (mDurationUs >= 0 && mDataSource->getSize(&size) == OK) { in getTotalBitrate()
505 } else if ((mDataSource->flags() & DataSource::kIsCachingDataSource) in getCachedDuration()
508 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/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/av/media/libstagefright/httplive/
DLiveSession.cpp47 mDataSource(new LiveDataSource), in LiveSession()
72 return mDataSource; in getDataSource()
184 mDataSource->queueEOS(ERROR_IO); in onConnect()
212 mDataSource->queueEOS(ERROR_END_OF_STREAM); in onDisconnect()
535 mDataSource->queueEOS(ERROR_IO); in onDownloadNext()
603 mDataSource->reset(); in onDownloadNext()
667 mDataSource->queueEOS(ERROR_END_OF_STREAM); in onDownloadNext()
697 mDataSource->queueEOS(err); in onDownloadNext()
708 mDataSource->queueEOS(err); in onDownloadNext()
720 mDataSource->queueEOS(ERROR_UNSUPPORTED); in onDownloadNext()
[all …]
/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.cpp34 mDataSource(0), in AudioSfDecoder()
322 mDataSource = dataSource; in onPrepare()
450 if (mDataSource == 0) { in onDecode()
649 if (mDataSource != 0) { in wantPrefetch()
650 return (mDataSource->flags() & DataSource::kWantsPrefetching); in wantPrefetch()
674 static_cast<NuCachedSource2 *>(mDataSource.get()); in getCacheRemaining()
DAudioPlayer_to_android.cpp591 const SLDataSource *pAudioSrc = &ap->mDataSource.u.mSource; in audioPlayer_getAndroidObjectTypeForSourceSink()
891 const SLDataSource *pAudioSrc = &pAudioPlayer->mDataSource.u.mSource; in android_audioPlayer_checkSourceSink()
1446 pAudioPlayer->mDynamicSource.mDataSource; in android_audioPlayer_realize()
1448 pAudioPlayer->mDynamicSource.mDataSource->pFormat; in android_audioPlayer_realize()
1496 switch (pAudioPlayer->mDataSource.mLocator.mLocatorType) { in android_audioPlayer_realize()
1507 const char *uri = (const char *)pAudioPlayer->mDataSource.mLocator.mURI.URI; in android_audioPlayer_realize()
1534 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; in android_audioPlayer_realize()
1536 (int)pAudioPlayer->mDataSource.mLocator.mFD.fd, in android_audioPlayer_realize()
1539 (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.length); in android_audioPlayer_realize()
1570 switch (pAudioPlayer->mDataSource.mLocator.mLocatorType) { in android_audioPlayer_realize()
[all …]
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/
DVideoEditorMp3Reader.cpp61 sp<DataSource> mDataSource; member
168 pReaderContext->mDataSource = new FileSource ((char*)pFileDescriptor); in VideoEditorMp3Reader_open()
171 if (pReaderContext->mDataSource == NULL) { in VideoEditorMp3Reader_open()
178 pReaderContext->mDataSource,MEDIA_MIMETYPE_AUDIO_MPEG); in VideoEditorMp3Reader_open()
241 pReaderContext->mDataSource.clear(); in VideoEditorMp3Reader_close()
478 pReaderContext->mDataSource.clear(); in VideoEditorMp3Reader_getNextStream()
509 pReaderContext->mDataSource.clear(); in VideoEditorMp3Reader_getNextStream()
707 pReaderContext->mDataSource.clear(); in VideoEditorMp3Reader_getNextAu()
/frameworks/wilhelm/src/android/include/
DAacAdtsExtractor.h59 sp<DataSource> mDataSource; variable
88 sp<DataSource> mDataSource;
/frameworks/wilhelm/src/
Dclasses.h67 DataLocatorFormat mDataSource; member
142 DataLocatorFormat mDataSource; member
326 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/include/
DAMRExtractor.h44 sp<DataSource> mDataSource;
DAACExtractor.h44 sp<DataSource> mDataSource;

123