1/*
2 * Copyright (C) 2009 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17//#define LOG_NDEBUG 0
18#define LOG_TAG "MetaData"
19#include <inttypes.h>
20#include <binder/Parcel.h>
21#include <utils/KeyedVector.h>
22#include <utils/Log.h>
23
24#include <stdlib.h>
25#include <string.h>
26
27#include <media/stagefright/foundation/ADebug.h>
28#include <media/stagefright/foundation/AString.h>
29#include <media/stagefright/foundation/hexdump.h>
30#include <media/stagefright/MetaData.h>
31
32namespace android {
33
34
35MetaData::MetaData() {
36}
37
38MetaData::MetaData(const MetaData &from)
39    : MetaDataBase(from) {
40}
41MetaData::MetaData(const MetaDataBase &from)
42    : MetaDataBase(from) {
43}
44
45MetaData::~MetaData() {
46}
47
48/* static */
49sp<MetaData> MetaData::createFromParcel(const Parcel &parcel) {
50
51    sp<MetaData> meta = new MetaData();
52    meta->updateFromParcel(parcel);
53    return meta;
54}
55
56}  // namespace android
57
58