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 ESID_Inc Class */
21 /* ------------------------------------------------------------------- */
22 /*********************************************************************************/
23 /*
24 This ESID_Inc Class contains information on the Elementary Stream that will
25 be replaced when streaming to a client. The file format replaces the actual
26 ES_Descriptor with this object that references the actual descriptor.
27 */
28
29 #define IMPLEMENT_ES_ID_Inc
30
31 #include "es_id_inc.h"
32 #include "atomutils.h"
33 #include "atomdefs.h"
34
35
36 // Stream-in constructor
ES_ID_Inc(MP4_FF_FILE * fp)37 ES_ID_Inc::ES_ID_Inc(MP4_FF_FILE *fp)
38 : BaseDescriptor(fp)
39 {
40 AtomUtils::read32(fp, _trackID);
41 }
42
43
44 // Destructor
~ES_ID_Inc()45 ES_ID_Inc::~ES_ID_Inc()
46 {
47 // Empty
48 }
49
50
51