Home | History | Annotate | Download | only in libstagefright

Lines Matching refs:source

2  * Copyright (C) 2017 The Android Open Source Project
26 sp<DataSource> CreateDataSourceFromIDataSource(const sp<IDataSource> &source) {
27 if (source == nullptr) {
30 return new TinyCacheSource(new CallbackDataSource(source));
33 sp<IDataSource> CreateIDataSourceFromDataSource(const sp<DataSource> &source) {
34 if (source == nullptr) {
37 return RemoteDataSource::wrap(source);
42 const sp<DataSource> &source,
47 return RemoteMediaExtractor::wrap(extractor, source, plugin);
50 sp<MediaSource> CreateMediaSourceFromIMediaSource(const sp<IMediaSource> &source) {
51 if (source == nullptr) {
54 return new CallbackMediaSource(source);
59 MediaTrack *source, const sp<RefBase> &plugin) {
60 if (source == nullptr) {
63 return RemoteMediaSource::wrap(extractor, source, plugin);