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

« back to all changes in this revision

Viewing changes to regression_tests/bifs-text-glyph-advance.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 1
 
4
 visualProfileLevelIndication 1
 
5
 sceneProfileLevelIndication 1
 
6
 graphicsProfileLevelIndication 1
 
7
 ODProfileLevelIndication 1
 
8
 esDescr [
 
9
  ES_Descriptor {
 
10
   ES_ID 2
 
11
   decConfigDescr DecoderConfigDescriptor {
 
12
    streamType 3
 
13
    decSpecificInfo BIFSv2Config {
 
14
     isCommandStream true
 
15
     pixelMetric true
 
16
     pixelWidth 480
 
17
     pixelHeight 360
 
18
    }
 
19
   }
 
20
  }
 
21
 ]
 
22
}
 
23
 
 
24
OrderedGroup {
 
25
 children [
 
26
  Background2D { backColor 1 1 1 }
 
27
  WorldInfo {
 
28
   info ["This test shows glyphs, along with their bounding boxes, the font baseline, the word bounding box and the two-lines text bounding box" "If the Arial font is found and used, bounding-boxes should be properly positioned" "" "GPAC Regression Tests" "(C) 2002-2006 GPAC Team"]
 
29
   title "Text bounding boxes test"
 
30
  }
 
31
  Transform2D {
 
32
   translation -140 80
 
33
   children [
 
34
    Transform2D {
 
35
     scale 0.048828125 0.048828125
 
36
     children [
 
37
      # Em Box Y Axis
 
38
      Shape {
 
39
       appearance DEF A1 Appearance {
 
40
        material Material2D {
 
41
         filled FALSE
 
42
         lineProps LineProperties {
 
43
          width 1
 
44
          lineColor 0 0 0
 
45
         }
 
46
        }
 
47
       }
 
48
       geometry IndexedLineSet2D {
 
49
        coord Coordinate2D {
 
50
         point [ 0 -4000 0 1491 ] 
 
51
        }
 
52
       }
 
53
      }
 
54
      
 
55
      # Baseline
 
56
      DEF BASELINE Shape {
 
57
       appearance USE A1 
 
58
       geometry IndexedLineSet2D {
 
59
        coord Coordinate2D {
 
60
         point [ 0 0 8000 0 ] 
 
61
        }
 
62
       }
 
63
      }
 
64
 
 
65
      # bounding box for glyph a
 
66
      Transform2D {
 
67
       translation 0 0
 
68
       children [
 
69
        Shape {
 
70
         appearance DEF A2 Appearance {
 
71
          material Material2D {
 
72
           filled FALSE
 
73
           lineProps LineProperties {
 
74
            width 1
 
75
            lineColor 1 0 0
 
76
           }
 
77
          }
 
78
         }
 
79
         geometry IndexedFaceSet2D {
 
80
          coord Coordinate2D {
 
81
           point [ 74  -24 1052 -24 1052 1086 74 1086 ] 
 
82
          }
 
83
         }
 
84
        }
 
85
       ]
 
86
      }
 
87
 
 
88
      # bounding box for glyph b
 
89
      Transform2D {
 
90
       translation 1139 0
 
91
       children [
 
92
        Shape {
 
93
         appearance USE A2
 
94
         geometry IndexedFaceSet2D {
 
95
          coord Coordinate2D {
 
96
           point [ 134 -24 1055 -24 1055 1466 134 1466 ] 
 
97
          }
 
98
         }
 
99
        }
 
100
       ]
 
101
      }
 
102
 
 
103
      # bounding box for glyph c
 
104
      Transform2D {
 
105
       translation 2278 0
 
106
       children [
 
107
        Shape {
 
108
         appearance USE A2
 
109
         geometry IndexedFaceSet2D {
 
110
          coord Coordinate2D {
 
111
           point [  80  -24 
 
112
                  1005  -24 
 
113
                  1005 1086 
 
114
                    80 1086 ] 
 
115
          }
 
116
         }
 
117
        }
 
118
       ]
 
119
      }
 
120
 
 
121
      # bounding box for glyph d
 
122
      Transform2D {
 
123
       translation 3302 0
 
124
       children [
 
125
        Shape {
 
126
         appearance USE A2
 
127
         geometry IndexedFaceSet2D {
 
128
          coord Coordinate2D {
 
129
           point [  70  -24 
 
130
                   991  -24 
 
131
                   991 1466 
 
132
                    70 1466 ] 
 
133
          }
 
134
         }
 
135
        }
 
136
       ]
 
137
      }
 
138
 
 
139
      # bounding box for glyph e
 
140
      Transform2D {
 
141
       translation 4441 0
 
142
       children [
 
143
        Shape {
 
144
         appearance USE A2
 
145
         geometry IndexedFaceSet2D {
 
146
          coord Coordinate2D {
 
147
           point [  75  -24 
 
148
                  1054  -24 
 
149
                  1054 1086 
 
150
                    75 1086 ] 
 
151
          }
 
152
         }
 
153
        }
 
154
       ]
 
155
      }
 
156
 
 
157
      # bounding box for glyph f
 
158
      Transform2D {
 
159
       translation 5580 0
 
160
       children [
 
161
        Shape {
 
162
         appearance USE A2
 
163
         geometry IndexedFaceSet2D {
 
164
          coord Coordinate2D {
 
165
           point [  19    0 
 
166
                   640    0 
 
167
                   640 1491
 
168
                    19 1491 ] 
 
169
          }
 
170
         }
 
171
        }
 
172
       ]
 
173
      }
 
174
 
 
175
      # bounding box for glyph g
 
176
      Transform2D {
 
177
       translation 6149 0
 
178
       children [
 
179
        Shape {
 
180
         appearance USE A2
 
181
         geometry IndexedFaceSet2D {
 
182
          coord Coordinate2D {
 
183
           point [   66 -431
 
184
                   1002 -431
 
185
                   1002 1086
 
186
                     66 1086 ] 
 
187
          }
 
188
         }
 
189
        }
 
190
       ]
 
191
      }
 
192
      
 
193
      # bounding box for the first line
 
194
      Transform2D {
 
195
       translation 0 0
 
196
       children [
 
197
        Shape {
 
198
         appearance DEF A3 Appearance {
 
199
          material Material2D {
 
200
           filled FALSE
 
201
           lineProps LineProperties {
 
202
            width 1
 
203
            lineColor 0 0.5 0
 
204
           }
 
205
          }
 
206
         }
 
207
         geometry IndexedFaceSet2D {
 
208
          coord Coordinate2D {
 
209
           point [   74 -431
 
210
                     74 1491
 
211
                   7151 1491
 
212
                   7151 -431 ] 
 
213
          }
 
214
         }
 
215
        }
 
216
       ]
 
217
      }
 
218
      Transform2D {
 
219
       translation 0 -2048
 
220
       children [
 
221
        USE BASELINE 
 
222
        # bounding box for glyph h
 
223
        Transform2D {
 
224
         translation 0 0
 
225
         children [
 
226
          Shape {
 
227
           appearance USE A2
 
228
           geometry IndexedFaceSet2D {
 
229
            coord Coordinate2D {
 
230
             point [ 135    0
 
231
                    1000    0
 
232
                    1000 1466
 
233
                     135 1466 ] 
 
234
            }
 
235
           }
 
236
          }
 
237
         ]
 
238
        }
 
239
        
 
240
        # bounding box for glyph i
 
241
        Transform2D {
 
242
         translation 1139 0
 
243
         children [
 
244
          Shape {
 
245
           appearance USE A2
 
246
           geometry IndexedFaceSet2D {
 
247
            coord Coordinate2D {
 
248
             point [ 136    0
 
249
                     316    0
 
250
                     316 1466
 
251
                     136 1466 ] 
 
252
            }
 
253
           }
 
254
          }
 
255
         ]
 
256
        }
 
257
 
 
258
        # bounding box for glyph j
 
259
        Transform2D {
 
260
         translation 1594 0
 
261
         children [
 
262
          Shape {
 
263
           appearance USE A2
 
264
           geometry IndexedFaceSet2D {
 
265
            coord Coordinate2D {
 
266
             point [ -94 -431
 
267
                     314 -431
 
268
                     314 1466
 
269
                     -94 1466 ] 
 
270
            }
 
271
           }
 
272
          }
 
273
         ]
 
274
        }
 
275
 
 
276
        # bounding box for glyph k
 
277
        Transform2D {
 
278
         translation 2049 0
 
279
         children [
 
280
          Shape {
 
281
           appearance USE A2
 
282
           geometry IndexedFaceSet2D {
 
283
            coord Coordinate2D {
 
284
             point [ 136    0
 
285
                    1016    0
 
286
                    1016 1466
 
287
                     136 1466 ] 
 
288
            }
 
289
           }
 
290
          }
 
291
         ]
 
292
        }
 
293
 
 
294
        # bounding box for glyph l
 
295
        Transform2D {
 
296
         translation 3087 0
 
297
         children [
 
298
          Shape {
 
299
           appearance USE A2
 
300
           geometry IndexedFaceSet2D {
 
301
            coord Coordinate2D {
 
302
             point [ 131    0
 
303
                     311    0
 
304
                     311 1466
 
305
                     131 1466 ] 
 
306
            }
 
307
           }
 
308
          }
 
309
         ]
 
310
        }
 
311
 
 
312
        # bounding box for glyph m
 
313
        Transform2D {
 
314
         translation 3542 0
 
315
         children [
 
316
          Shape {
 
317
           appearance USE A2
 
318
           geometry IndexedFaceSet2D {
 
319
            coord Coordinate2D {
 
320
             point [ 135    0
 
321
                    1574    0
 
322
                    1574 1086
 
323
                     135 1086 ] 
 
324
            }
 
325
           }
 
326
          }
 
327
         ]
 
328
        }
 
329
 
 
330
        # bounding box for glyph n
 
331
        Transform2D {
 
332
         translation 5248 0
 
333
         children [
 
334
          Shape {
 
335
           appearance USE A2
 
336
           geometry IndexedFaceSet2D {
 
337
            coord Coordinate2D {
 
338
             point [ 135    0
 
339
                     998    0
 
340
                     998 1086
 
341
                     135 1086 ] 
 
342
            }
 
343
           }
 
344
          }
 
345
         ]
 
346
        }
 
347
 
 
348
        # bounding box for glyph o
 
349
        Transform2D {
 
350
         translation 6387 0
 
351
         children [
 
352
          Shape {
 
353
           appearance USE A2
 
354
           geometry IndexedFaceSet2D {
 
355
            coord Coordinate2D {
 
356
             point [  68  -24
 
357
                    1063  -24
 
358
                    1063 1086
 
359
                      68 1086 ] 
 
360
            }
 
361
           }
 
362
          }
 
363
         ]
 
364
        }
 
365
 
 
366
        # bounding box for the second line
 
367
        Transform2D {
 
368
         translation 0 0
 
369
         children [
 
370
          Shape {
 
371
           appearance USE A3 
 
372
           geometry IndexedFaceSet2D {
 
373
            coord Coordinate2D {
 
374
             point [  135 -431
 
375
                      135 1466
 
376
                     7436 1466
 
377
                     7436 -431 ] 
 
378
            }
 
379
           }
 
380
          }
 
381
         ]
 
382
        }
 
383
 
 
384
       ]
 
385
      }
 
386
 
 
387
        # bounding box for the whole text
 
388
        Transform2D {
 
389
         translation 0 0
 
390
         children [
 
391
          Shape {
 
392
           appearance Appearance {
 
393
            material Material2D {
 
394
             filled FALSE
 
395
             lineProps LineProperties {
 
396
              width 1
 
397
              lineColor 1 1 0
 
398
             }
 
399
            }
 
400
           }
 
401
           geometry IndexedFaceSet2D {
 
402
            coord Coordinate2D {
 
403
             point [   74  1491
 
404
                     7436  1491
 
405
                     7436 -2479
 
406
                       74 -2479 ] 
 
407
            }
 
408
           }
 
409
          }
 
410
         ]
 
411
        }
 
412
 
 
413
     ]
 
414
    }
 
415
    Shape {
 
416
     appearance Appearance {
 
417
      material Material2D {
 
418
       emissiveColor 0 0 0
 
419
       filled TRUE
 
420
      }
 
421
     }
 
422
     geometry Text {
 
423
      string [ "abcdefg" "hijklmno"]
 
424
      fontStyle FontStyle {
 
425
       family ["Arial"]
 
426
       justify ["BEGIN" "FIRST"]
 
427
       size 100
 
428
      }
 
429
     }
 
430
    }
 
431
   ]
 
432
  }
 
433
 ]
 
434
}
 
435
 
 
436