~ubuntu-branches/ubuntu/raring/gpac/raring

« back to all changes in this revision

Viewing changes to regression_tests/bifs-command-route-remove-children.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 300
 
17
     pixelHeight 300
 
18
    }
 
19
   }
 
20
  }
 
21
 ]
 
22
}
 
23
 
 
24
DEF OG OrderedGroup {
 
25
 children [
 
26
  WorldInfo {
 
27
   info ["This shows node deletion" "through removeChildren field" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"]
 
28
   title "Node delete test"
 
29
  }
 
30
  DEF BACK Background2D {
 
31
   backColor 1 1 1
 
32
  }
 
33
  DEF TR1 Transform2D {
 
34
   translation -100 0
 
35
  }
 
36
  DEF TR2 Transform2D {
 
37
   translation 100 0
 
38
   children [
 
39
    Shape {
 
40
     appearance Appearance {
 
41
      material Material2D {
 
42
       emissiveColor 1 1 0
 
43
       filled TRUE
 
44
      }
 
45
     }
 
46
     geometry Circle {
 
47
      radius 50
 
48
     }
 
49
    }
 
50
   ]
 
51
  }
 
52
 ]
 
53
}
 
54
 
 
55
DEF R1 ROUTE TR1.children TO TR2.addChildren
 
56
 
 
57
AT 2000 {
 
58
 APPEND TO TR1.children Shape {
 
59
  appearance Appearance {
 
60
   material DEF M1 Material2D {
 
61
    emissiveColor 1 0 0
 
62
    filled TRUE
 
63
   }
 
64
  }
 
65
  geometry Rectangle {
 
66
   size 100 50
 
67
  }
 
68
 }
 
69
}
 
70
 
 
71
AT 3000 {
 
72
 DELETE ROUTE R1
 
73
 INSERT ROUTE TR1.children TO TR2.removeChildren
 
74
}
 
75
 
 
76
AT 4000 {
 
77
 APPEND TO TR1.children Shape {
 
78
  appearance Appearance {
 
79
   material Material2D {
 
80
    emissiveColor 1 1 1
 
81
    filled TRUE
 
82
   }
 
83
  }
 
84
  geometry Circle {
 
85
   radius 20
 
86
  }
 
87
 }
 
88
}
 
89
 
 
90
AT 100000 {
 
91
 DELETE ROUTE R1
 
92
}
 
93