Andreas Huber | 20111aa | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 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 | |
Marco Nelissen | feba11f | 2012-03-21 12:27:00 -0700 | [diff] [blame] | 17 | //#define LOG_NDEBUG 0 |
| 18 | #define LOG_TAG "MetaData" |
Kévin PETIT | 377b2ec | 2014-02-03 12:35:36 +0000 | [diff] [blame] | 19 | #include <inttypes.h> |
Dongwon Kang | 84415e0 | 2018-01-26 15:10:06 -0800 | [diff] [blame] | 20 | #include <binder/Parcel.h> |
Marco Nelissen | 389f0fe | 2018-01-23 11:22:14 -0800 | [diff] [blame] | 21 | #include <utils/KeyedVector.h> |
Marco Nelissen | feba11f | 2012-03-21 12:27:00 -0700 | [diff] [blame] | 22 | #include <utils/Log.h> |
| 23 | |
Andreas Huber | 20111aa | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 24 | #include <stdlib.h> |
| 25 | #include <string.h> |
| 26 | |
James Dong | f1d5aa1 | 2012-02-06 23:46:37 -0800 | [diff] [blame] | 27 | #include <media/stagefright/foundation/ADebug.h> |
Marco Nelissen | 5699712 | 2012-08-28 15:09:49 -0700 | [diff] [blame] | 28 | #include <media/stagefright/foundation/AString.h> |
| 29 | #include <media/stagefright/foundation/hexdump.h> |
Andreas Huber | 20111aa | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 30 | #include <media/stagefright/MetaData.h> |
| 31 | |
| 32 | namespace android { |
| 33 | |
Marco Nelissen | 389f0fe | 2018-01-23 11:22:14 -0800 | [diff] [blame] | 34 | |
Marco Nelissen | 3d21ae3 | 2018-02-16 08:24:08 -0800 | [diff] [blame^] | 35 | MetaData::MetaData() { |
Andreas Huber | 20111aa | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | MetaData::MetaData(const MetaData &from) |
Marco Nelissen | 3d21ae3 | 2018-02-16 08:24:08 -0800 | [diff] [blame^] | 39 | : MetaDataBase(from) { |
| 40 | } |
| 41 | MetaData::MetaData(const MetaDataBase &from) |
| 42 | : MetaDataBase(from) { |
Andreas Huber | 20111aa | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | MetaData::~MetaData() { |
Andreas Huber | 20111aa | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 46 | } |
| 47 | |
Marco Nelissen | b2487f0 | 2015-09-01 13:23:23 -0700 | [diff] [blame] | 48 | /* static */ |
| 49 | sp<MetaData> MetaData::createFromParcel(const Parcel &parcel) { |
| 50 | |
| 51 | sp<MetaData> meta = new MetaData(); |
| 52 | meta->updateFromParcel(parcel); |
| 53 | return meta; |
| 54 | } |
| 55 | |
Andreas Huber | 20111aa | 2009-07-14 16:56:47 -0700 | [diff] [blame] | 56 | } // namespace android |
| 57 | |