blob: 1d0a607b9b4c7473eaa12ba36d991c8ca4831210 [file] [log] [blame]
Andreas Huber20111aa2009-07-14 16:56:47 -07001/*
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
Marco Nelissenfeba11f2012-03-21 12:27:00 -070017//#define LOG_NDEBUG 0
18#define LOG_TAG "MetaData"
Kévin PETIT377b2ec2014-02-03 12:35:36 +000019#include <inttypes.h>
Dongwon Kang84415e02018-01-26 15:10:06 -080020#include <binder/Parcel.h>
Marco Nelissen389f0fe2018-01-23 11:22:14 -080021#include <utils/KeyedVector.h>
Marco Nelissenfeba11f2012-03-21 12:27:00 -070022#include <utils/Log.h>
23
Andreas Huber20111aa2009-07-14 16:56:47 -070024#include <stdlib.h>
25#include <string.h>
26
James Dongf1d5aa12012-02-06 23:46:37 -080027#include <media/stagefright/foundation/ADebug.h>
Marco Nelissen56997122012-08-28 15:09:49 -070028#include <media/stagefright/foundation/AString.h>
29#include <media/stagefright/foundation/hexdump.h>
Andreas Huber20111aa2009-07-14 16:56:47 -070030#include <media/stagefright/MetaData.h>
31
32namespace android {
33
Marco Nelissen389f0fe2018-01-23 11:22:14 -080034
Marco Nelissen3d21ae32018-02-16 08:24:08 -080035MetaData::MetaData() {
Andreas Huber20111aa2009-07-14 16:56:47 -070036}
37
38MetaData::MetaData(const MetaData &from)
Marco Nelissen3d21ae32018-02-16 08:24:08 -080039 : MetaDataBase(from) {
40}
41MetaData::MetaData(const MetaDataBase &from)
42 : MetaDataBase(from) {
Andreas Huber20111aa2009-07-14 16:56:47 -070043}
44
45MetaData::~MetaData() {
Andreas Huber20111aa2009-07-14 16:56:47 -070046}
47
Marco Nelissenb2487f02015-09-01 13:23:23 -070048/* static */
49sp<MetaData> MetaData::createFromParcel(const Parcel &parcel) {
50
51 sp<MetaData> meta = new MetaData();
52 meta->updateFromParcel(parcel);
53 return meta;
54}
55
Andreas Huber20111aa2009-07-14 16:56:47 -070056} // namespace android
57