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

« back to all changes in this revision

Viewing changes to regression_tests/bifs-2D-texturing-movietexture-shapes.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 1
 
5
 sceneProfileLevelIndication 254
 
6
 graphicsProfileLevelIndication 254
 
7
 ODProfileLevelIndication 255
 
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 440
 
17
     pixelHeight 440
 
18
    }
 
19
   }
 
20
  }
 
21
  ES_Descriptor {
 
22
   ES_ID 2
 
23
   decConfigDescr DecoderConfigDescriptor {
 
24
    streamType 1
 
25
   }
 
26
  }
 
27
 ]
 
28
}
 
29
 
 
30
OrderedGroup {
 
31
 children [
 
32
  Background2D {
 
33
   backColor 1 1 1
 
34
  }
 
35
  WorldInfo {
 
36
   info [
 
37
    "This test shows a video displayed on the basic 2D shapes." 
 
38
    "Video, like image, is considered as a texture and described in the MovieTexture node." 
 
39
    "The url of this node points to the video using any internet protocol (http, rtsp) or using MPEG-4 OD." 
 
40
    "The MovieTexture node is associated to the geometry as a children of the Shape node. The video is then clipped along the bounding box of the shape." 
 
41
    "" 
 
42
    "GPAC Regression Tests" 
 
43
    "(C) 2002-2006 GPAC Team"
 
44
   ]
 
45
   title "Displaying Videos as a texture on any shape"
 
46
  }
 
47
  Transform2D {
 
48
   translation -150 150
 
49
   children [
 
50
    Shape {
 
51
     appearance DEF APP Appearance {
 
52
      texture MovieTexture {
 
53
       loop TRUE
 
54
       url [od:10]
 
55
       repeatS FALSE
 
56
       repeatT FALSE
 
57
      }
 
58
     }
 
59
     geometry IndexedLineSet2D {
 
60
      coord Coordinate2D {
 
61
       point [-50 0 0 50 50 0]
 
62
      }
 
63
     }
 
64
    }
 
65
    Transform2D {
 
66
     translation 0 -20
 
67
     children [
 
68
      Shape {
 
69
       appearance DEF TEXTAPP Appearance {
 
70
        material Material2D {
 
71
         emissiveColor 0 0 1
 
72
         filled TRUE
 
73
        }
 
74
       }
 
75
       geometry Text {
 
76
        string ["IndexedLineSet2D" "[-50 0 0 50 50 0]"]
 
77
        fontStyle DEF FS FontStyle {
 
78
         justify ["MIDDLE" "MIDDLE"]
 
79
         size 12
 
80
        }
 
81
       }
 
82
      }
 
83
     ]
 
84
    }
 
85
   ]
 
86
  }
 
87
  Transform2D {
 
88
   translation 0 150
 
89
   children [
 
90
    Shape {
 
91
     appearance USE APP
 
92
     geometry Circle {
 
93
      radius 50
 
94
     }
 
95
    }
 
96
    Transform2D {
 
97
     children [
 
98
      Shape {
 
99
       appearance USE TEXTAPP
 
100
       geometry Text {
 
101
        string ["Circle" "radius 50"]
 
102
        fontStyle USE FS
 
103
       }
 
104
      }
 
105
     ]
 
106
    }
 
107
   ]
 
108
  }
 
109
  Transform2D {
 
110
   translation 150 150
 
111
   children [
 
112
    Shape {
 
113
     appearance USE APP
 
114
     geometry Rectangle {
 
115
      size 100 50
 
116
     }
 
117
    }
 
118
    Transform2D {
 
119
     children [
 
120
      Shape {
 
121
       appearance USE TEXTAPP
 
122
       geometry Text {
 
123
        string ["Rectangle" "Size 100 50"]
 
124
        fontStyle USE FS
 
125
       }
 
126
      }
 
127
     ]
 
128
    }
 
129
   ]
 
130
  }
 
131
  Transform2D {
 
132
   translation 0 -40
 
133
   children [
 
134
    Shape {
 
135
     appearance USE TEXTAPP
 
136
     geometry Text {
 
137
      string ["Curve2D Points:" "-50 0, -100 50, 0 20, 10 30, 40 80, 50 0"]
 
138
      fontStyle USE FS
 
139
     }
 
140
    }
 
141
   ]
 
142
  }
 
143
  Transform2D {
 
144
   translation -150 0
 
145
   children [
 
146
    Shape {
 
147
     appearance USE APP
 
148
     geometry Curve2D {
 
149
      point DEF C2D Coordinate2D {
 
150
       point [-50 0 -100 50 0 20 10 30 40 80 50 0]
 
151
      }
 
152
     }
 
153
    }
 
154
    Transform2D {
 
155
     translation 0 -10
 
156
     children [
 
157
      Shape {
 
158
       appearance USE TEXTAPP
 
159
       geometry Text {
 
160
        string ["no type"]
 
161
        fontStyle USE FS
 
162
       }
 
163
      }
 
164
     ]
 
165
    }
 
166
   ]
 
167
  }
 
168
  Transform2D {
 
169
   children [
 
170
    Shape {
 
171
     appearance USE APP
 
172
     geometry Curve2D {
 
173
      type [2 3]
 
174
      point USE C2D
 
175
     }
 
176
    }
 
177
    Transform2D {
 
178
     translation 0 -10
 
179
     children [
 
180
      Shape {
 
181
       appearance USE TEXTAPP
 
182
       geometry Text {
 
183
        string ["type [2 3]"]
 
184
        fontStyle USE FS
 
185
       }
 
186
      }
 
187
     ]
 
188
    }
 
189
   ]
 
190
  }
 
191
  Transform2D {
 
192
   translation 170 0
 
193
   children [
 
194
    Shape {
 
195
     appearance USE APP
 
196
     geometry Curve2D {
 
197
      type [1 3 1]
 
198
      point USE C2D
 
199
     }
 
200
    }
 
201
    Transform2D {
 
202
     translation 0 -10
 
203
     children [
 
204
      Shape {
 
205
       appearance USE TEXTAPP
 
206
       geometry Text {
 
207
        string ["type [1 3 1]"]
 
208
        fontStyle USE FS
 
209
       }
 
210
      }
 
211
     ]
 
212
    }
 
213
   ]
 
214
  }
 
215
  Transform2D {
 
216
   translation -150 -150
 
217
   children [
 
218
    Shape {
 
219
     appearance USE APP
 
220
     geometry IndexedFaceSet2D {
 
221
      coord Coordinate2D {
 
222
       point [-50 0 -25 25 0 80 50 0]
 
223
      }
 
224
     }
 
225
    }
 
226
    Transform2D {
 
227
     translation 0 -20
 
228
     children [
 
229
      Shape {
 
230
       appearance USE TEXTAPP
 
231
       geometry Text {
 
232
        string ["IndexedFaceSet2D" "-50 0, -25, 25, 0 80, 50 0"]
 
233
        fontStyle USE FS
 
234
       }
 
235
      }
 
236
     ]
 
237
    }
 
238
   ]
 
239
  }
 
240
  Transform2D {
 
241
   translation 0 -150
 
242
   children [
 
243
    Shape {
 
244
     appearance USE APP
 
245
     geometry PointSet2D {
 
246
      coord Coordinate2D {
 
247
       point [-50 0 -25 25 0 80 50 0]
 
248
      }
 
249
     }
 
250
    }
 
251
    Transform2D {
 
252
     translation 0 -20
 
253
     children [
 
254
      Shape {
 
255
       appearance USE TEXTAPP
 
256
       geometry Text {
 
257
        string ["PointSet2D" "-50 0, -25, 25, 0 80, 50 0"]
 
258
        fontStyle USE FS
 
259
       }
 
260
      }
 
261
     ]
 
262
    }
 
263
   ]
 
264
  }
 
265
 ]
 
266
}
 
267
 
 
268
 
 
269
AT 0 {
 
270
  UPDATE OD [
 
271
   ObjectDescriptor {
 
272
    objectDescriptorID 10
 
273
    esDescr [
 
274
     ES_Descriptor {
 
275
      ES_ID 20
 
276
      OCR_ES_ID 20
 
277
      muxInfo MuxInfo {
 
278
       fileName "auxiliary_files/enst_video.h264"
 
279
      }
 
280
     }
 
281
    ]
 
282
   }
 
283
  ]
 
284
}
 
285