• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
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
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 /*********************************************************************************/
19 /*     -------------------------------------------------------------------       */
20 /*                   MPEG-4 MediaInformationHeaderAtom Class                     */
21 /*     -------------------------------------------------------------------       */
22 /*********************************************************************************/
23 /*
24     This MediaInformationHeaderAtom Class is an abstract base class for the
25     atoms VideoMediaHeaderAton, AudioMediaHeaderAtom, HintMediaHeaderAtom,
26     and Mpeg4MediaHeaderAtom.  This class onbly contains one pure virtual method
27     getMediaHeaderType() that will return what type of mediaInformationHeader
28     this atom is.
29 */
30 
31 
32 #define IMPLEMENT_MediaInformationAtomHeader
33 
34 #include "mediainformationheaderatom.h"
35 #include "atomdefs.h"
36 
37 // Stream-in ctor
MediaInformationHeaderAtom(MP4_FF_FILE * fp,uint32 size,uint32 type)38 MediaInformationHeaderAtom::MediaInformationHeaderAtom(MP4_FF_FILE *fp, uint32 size, uint32 type)
39         : FullAtom(fp, size, type)
40 {
41     if (!_success)
42     {
43         if (_mp4ErrorCode != ATOM_VERSION_NOT_SUPPORTED)
44             _mp4ErrorCode = READ_MEDIA_INFORMATION_HEADER_ATOM_FAILED;
45     }
46 }
47 
48 // Destructor
~MediaInformationHeaderAtom()49 MediaInformationHeaderAtom::~MediaInformationHeaderAtom()
50 {
51 
52 }
53 
54