diff options
Diffstat (limited to 'media/libstagefright/include/StagefrightMetadataRetriever.h')
-rw-r--r-- | media/libstagefright/include/StagefrightMetadataRetriever.h | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/media/libstagefright/include/StagefrightMetadataRetriever.h b/media/libstagefright/include/StagefrightMetadataRetriever.h index 16127d7..b80387f 100644 --- a/media/libstagefright/include/StagefrightMetadataRetriever.h +++ b/media/libstagefright/include/StagefrightMetadataRetriever.h @@ -1,19 +1,18 @@ /* -** -** Copyright 2009, The Android Open Source Project -** -** Licensed under the Apache License, Version 2.0 (the "License"); -** you may not use this file except in compliance with the License. -** You may obtain a copy of the License at -** -** http://www.apache.org/licenses/LICENSE-2.0 -** -** Unless required by applicable law or agreed to in writing, software -** distributed under the License is distributed on an "AS IS" BASIS, -** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -** See the License for the specific language governing permissions and -** limitations under the License. -*/ + * Copyright (C) 2010 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #ifndef STAGEFRIGHT_METADATA_RETRIEVER_H_ @@ -22,9 +21,11 @@ #include <media/MediaMetadataRetrieverInterface.h> #include <media/stagefright/OMXClient.h> +#include <utils/KeyedVector.h> namespace android { +struct DataSource; class MediaExtractor; struct StagefrightMetadataRetriever : public MediaMetadataRetrieverInterface { @@ -40,8 +41,15 @@ struct StagefrightMetadataRetriever : public MediaMetadataRetrieverInterface { private: OMXClient mClient; + sp<DataSource> mSource; sp<MediaExtractor> mExtractor; + bool mParsedMetaData; + KeyedVector<int, String8> mMetaData; + MediaAlbumArt *mAlbumArt; + + void parseMetaData(); + StagefrightMetadataRetriever(const StagefrightMetadataRetriever &); StagefrightMetadataRetriever &operator=( |