• 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 ESID_Ref Class                            */
21 /*     -------------------------------------------------------------------       */
22 /*********************************************************************************/
23 /*
24     This ESID_Ref 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.  This
27     is used in the OD Stream!
28 */
29 
30 #define IMPLEMENT_ES_ID_Ref
31 
32 #include "es_id_ref.h"
33 #include "atomutils.h"
34 #include "atomdefs.h"
35 
36 
37 // Stream-in constructor
ES_ID_Ref(MP4_FF_FILE * fp)38 ES_ID_Ref::ES_ID_Ref(MP4_FF_FILE *fp)
39         : BaseDescriptor(fp)
40 {
41     AtomUtils::read16(fp, _trackIndex);
42 }
43 
44 // Destructor
~ES_ID_Ref()45 ES_ID_Ref::~ES_ID_Ref()
46 {
47     // Empty
48 }
49 
50 
51 
52 
53