~ubuntu-branches/ubuntu/utopic/gpac/utopic-proposed

1.1.2 by John Dong
Import upstream version 0.4.2~rc2
1
InitialObjectDescriptor {
2
  objectDescriptorID 1
3
  ODProfileLevelIndication 0xFF
4
  sceneProfileLevelIndication 0xFE
5
  audioProfileLevelIndication 0xFF
6
  visualProfileLevelIndication 0xFE
7
  graphicsProfileLevelIndication 0xFE
8
9
  esdescr [
10
    ES_Descriptor {
11
      es_id 1
12
      decConfigDescr DecoderConfigDescriptor {
13
				streamType 3
14
				decSpecificInfo BIFSConfig {
15
				  isCommandStream true
16
				  pixelMetric true
17
				  pixelWidth 600
18
				  pixelHeight 400
19
				}
20
      }
21
    }
22
    ES_Descriptor {
23
      es_id 2
24
      decConfigDescr DecoderConfigDescriptor {
25
				streamType 1
26
      }
27
    }
28
  ]
29
}
30
31
OrderedGroup {
32
 children [
33
  DEF B1 Background2D {backColor 1 1 1}
34
  WorldInfo {
35
   title "Nested Clipping - Layer2D"
36
   info [
37
    "This test shows nested Layer2D nodes." 
38
    "Both layer sizes are animated" 
39
    "" 
1.1.4 by Julien Lavergne
Import upstream version 0.4.5
40
    "GPAC Regression Tests" "$Date: 2007/07/27 09:46:07 $ - $Revision: 1.3 $" 
1.1.2 by John Dong
Import upstream version 0.4.2~rc2
41
    "(C) 2002-2006 GPAC Team"
42
   ]
43
  }
44
45
  Transform2D {
46
   translation 100 0
47
   children [
48
    DEF L1 Layer2D {
49
     size 300 300
50
     background Background2D {url 10}
51
     children [
52
      Shape {
53
       appearance Appearance { material Material2D { filled TRUE } }
54
       geometry DEF RC Rectangle {size 100 75}
55
      }
56
      Transform2D {
57
       translation -150 0
58
       children [
59
      	DEF L2 Layer2D {
60
         size 100 100
61
		     background Background2D {backColor 0 0 1}
62
      	 children [
63
				  Shape {
64
				   appearance Appearance { material Material2D { emissiveColor 1 0 0 filled TRUE } }
65
				   geometry Circle {radius 20}
66
				  }
67
				 ]
68
				}
69
       ]
70
     	}
71
     ]
72
    }
73
   ]
74
  }
75
  DEF TS TimeSensor {
76
   cycleInterval 2.0
77
   loop TRUE
78
  }
79
  DEF PI1 PositionInterpolator2D {
80
   key [0.0 1.0]
81
   keyValue [400.0 300.0 0.0 0.0]
82
  }
83
  DEF PI2 PositionInterpolator2D {
84
   key [0.0 1.0]
85
   keyValue [100.0 100.0 0.0 0.0]
86
  }
87
 ]
88
}
89
90
91
ROUTE TS.fraction_changed TO PI1.set_fraction
92
ROUTE PI1.value_changed TO L1.size
93
ROUTE TS.fraction_changed TO PI2.set_fraction
94
ROUTE PI2.value_changed TO L2.size
95
96
AT 0 {
97
	UPDATE OD [
98
		ObjectDescriptor {
99
		  objectDescriptorID  10
100
		  esDescr [
101
		    ES_Descriptor {
102
		      ES_ID 20
103
		      muxInfo MuxInfo {
104
		       fileName "./auxiliary_files/sky.jpg"
105
		      }
106
		    }
107
		  ]
108
		}
109
	]
110
}
111