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

« back to all changes in this revision

Viewing changes to regression_tests/bifs-3D-texturing-transform-matrix-box.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
  ODProfileLevelIndication 0xFF
 
4
  sceneProfileLevelIndication 0xFE
 
5
  audioProfileLevelIndication 0xFF
 
6
  visualProfileLevelIndication 0xFF
 
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 200
 
18
                                  pixelHeight 200
 
19
                                }
 
20
      }
 
21
    }
 
22
    ES_Descriptor {
 
23
      es_id 2
 
24
      decConfigDescr DecoderConfigDescriptor {
 
25
                                streamType 1
 
26
      }
 
27
    }
 
28
  ]
 
29
}
 
30
 
 
31
Group { 
 
32
 children [
 
33
 
 
34
  WorldInfo {
 
35
   title "Texture Transform test"
 
36
   info ["This shows a 3D cube" "mapped with an alpha PNG and texture transform" "" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"]
 
37
  }
 
38
                        
 
39
        DEF TR Transform {
 
40
        rotation 1 1 1 0.75
 
41
        children [
 
42
     Shape {
 
43
        appearance Appearance {
 
44
                material DEF MAT Material {}
 
45
                textureTransform DEF MX TransformMatrix2D {mxx 3 myy 2}
 
46
              texture ImageTexture { url "10"}
 
47
         }
 
48
     geometry Box {size 64 64 64 }
 
49
    }
 
50
   ]
 
51
  }
 
52
 
 
53
  DEF TS TimeSensor { cycleInterval 8.0 loop TRUE }
 
54
  DEF SI ScalarInterpolator  {
 
55
        key [0 0.25 0.5 0.75 1]
 
56
        keyValue [1 1 1 6 1]
 
57
        }
 
58
  DEF SI2 ScalarInterpolator  {
 
59
        key [0 0.25 0.5 0.75 1]
 
60
        keyValue [1 6 1 1 1]
 
61
        }
 
62
  DEF CI ColorInterpolator {
 
63
        key [0 0.5 1]
 
64
        keyValue [1 1 1, 0 0 1, 1 1 1]
 
65
        }
 
66
 ]
 
67
}
 
68
 
 
69
ROUTE TS.fraction_changed TO SI.set_fraction
 
70
ROUTE SI.value_changed TO MX.mxy
 
71
ROUTE TS.fraction_changed TO SI2.set_fraction
 
72
ROUTE SI2.value_changed TO MX.myx
 
73
ROUTE TS.fraction_changed TO CI.set_fraction
 
74
ROUTE CI.value_changed TO MAT.diffuseColor
 
75
 
 
76
AT 0 {
 
77
        UPDATE OD [
 
78
                ObjectDescriptor {
 
79
                  objectDescriptorID  10
 
80
                  esDescr [
 
81
                    ES_Descriptor {
 
82
                      ES_ID 20
 
83
                      muxInfo MuxInfo {
 
84
                       fileName "auxiliary_files/logo.jpg"
 
85
                      }
 
86
                    }
 
87
                  ]
 
88
                }
 
89
        ]
 
90
}
 
91