~ubuntu-branches/ubuntu/intrepid/gpac/intrepid-proposed

« back to all changes in this revision

Viewing changes to regression_tests/bifs-proto-sftime-protocode.bt

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2007-01-24 23:34:57 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070124233457-zzlls8afkt0nyakj
Tags: 0.4.2~rc2-0ubuntu1
* New upstream release
  * Most notably MP4 tagging support via MP4Box -itags
* debian/patches/01_64bits.dpatch: dropped; included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
InitialObjectDescriptor {
 
2
 objectDescriptorID 1
 
3
 audioProfileLevelIndication 255
 
4
 visualProfileLevelIndication 254
 
5
 sceneProfileLevelIndication 1
 
6
 graphicsProfileLevelIndication 1
 
7
 ODProfileLevelIndication 1
 
8
 esDescr [
 
9
  ES_Descriptor {
 
10
   ES_ID 1
 
11
   decConfigDescr DecoderConfigDescriptor {
 
12
    streamType 3
 
13
    decSpecificInfo BIFSConfig {
 
14
     isCommandStream true
 
15
     pixelMetric true
 
16
     pixelWidth 600
 
17
     pixelHeight 400
 
18
    }
 
19
   }
 
20
  }
 
21
 ]
 
22
}
 
23
 
 
24
PROTO GEOMETRY_PROTO [
 
25
 exposedField SFVec2f translation 0 0
 
26
 exposedField SFVec2f scale 1 1
 
27
 exposedField SFColor Color 1 1 1
 
28
 exposedField SFBool filled TRUE
 
29
 exposedField SFFloat transparency 0
 
30
 exposedField SFColor lineColor 0 0 0
 
31
 exposedField SFFloat lineWidth 0
 
32
 exposedField SFNode obj NULL
 
33
] {
 
34
 DEF TR Transform2D {
 
35
  scale IS scale
 
36
  translation IS translation
 
37
  children [
 
38
   Shape {
 
39
    geometry IS obj
 
40
    appearance Appearance {
 
41
     material Material2D {
 
42
      emissiveColor IS Color
 
43
      filled IS filled
 
44
      transparency IS transparency
 
45
      lineProps LineProperties {
 
46
       lineColor IS lineColor
 
47
       width IS lineWidth
 
48
      }
 
49
     }
 
50
    }
 
51
   }
 
52
   DEF TS TimeSensor {
 
53
    cycleInterval 4
 
54
    loop TRUE
 
55
   }
 
56
  ]
 
57
 }
 
58
 DEF SI ScalarInterpolator {
 
59
  key [0 0.5 1]
 
60
  keyValue [0 1.76 0]
 
61
 }
 
62
 ROUTE TS.fraction_changed TO SI.set_fraction
 
63
 ROUTE SI.value_changed TO TR.rotationAngle
 
64
}
 
65
OrderedGroup {
 
66
 children [
 
67
  Background2D {
 
68
   backColor 1 1 1
 
69
  }
 
70
  WorldInfo {
 
71
   info ["The animation start time embedded in proto body" "Animation shall begin at node creation time" "if objects rotations are in sync the player is broken" "" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"]
 
72
   title "Proto SFTime Test"
 
73
  }
 
74
  DEF ROOT Transform2D {
 
75
   children [
 
76
    GEOMETRY_PROTO {
 
77
     translation -120 0
 
78
     Color 0 1 1
 
79
     obj Rectangle {
 
80
      size 200 100
 
81
     }
 
82
    }
 
83
   ]
 
84
  }
 
85
 ]
 
86
}
 
87
 
 
88
 
 
89
AT 2000 {
 
90
 APPEND TO ROOT.children GEOMETRY_PROTO {
 
91
  translation 120 0
 
92
  Color 1 0 1
 
93
  lineColor 1 0 0
 
94
  obj Rectangle {
 
95
   size 200 100
 
96
  }
 
97
 }
 
98
}
 
99