~ubuntu-branches/debian/experimental/gpac/experimental

« back to all changes in this revision

Viewing changes to regression_tests/bifs/bifs-text-maxextend.bt

  • Committer: Package Import Robot
  • Author(s): Andres Mejia
  • Date: 2012-02-04 00:12:54 UTC
  • Revision ID: package-import@ubuntu.com-20120204001254-l7v7u4kc4m7cxcqn
Tags: upstream-0.4.5+svn3450~dfsg3
ImportĀ upstreamĀ versionĀ 0.4.5+svn3450~dfsg3

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 350
 
17
     pixelHeight 450
 
18
    }
 
19
   }
 
20
  }
 
21
 ]
 
22
}
 
23
 
 
24
OrderedGroup {
 
25
 children [
 
26
  Background2D {
 
27
   backColor 1 1 1
 
28
  }
 
29
  WorldInfo {
 
30
   info ["This shows Text with and without max Extent" "All texts use the same font and size" "" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:10 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
 
31
   title "Text maxExtend Test"
 
32
  }
 
33
  Shape {
 
34
   geometry IndexedLineSet2D {
 
35
    coord Coordinate2D {
 
36
     point [0 200 0 -160]
 
37
    }
 
38
   }
 
39
  }
 
40
  Transform2D {
 
41
   translation -80 160
 
42
   children [
 
43
    Shape {
 
44
     appearance DEF TEXTAPP Appearance {
 
45
      material Material2D {
 
46
       emissiveColor 0 0 0
 
47
       filled TRUE
 
48
      }
 
49
     }
 
50
     geometry Text {
 
51
      string ["maxExtent off"]
 
52
      fontStyle FontStyle {
 
53
       justify ["MIDDLE"]
 
54
       size 20
 
55
      }
 
56
     }
 
57
    }
 
58
   ]
 
59
  }
 
60
  Transform2D {
 
61
   translation 80 160
 
62
   children [
 
63
    Shape {
 
64
     appearance USE TEXTAPP
 
65
     geometry Text {
 
66
      string ["maxExtent on"]
 
67
      fontStyle FontStyle {
 
68
       justify ["MIDDLE"]
 
69
       size 20
 
70
      }
 
71
     }
 
72
    }
 
73
   ]
 
74
  }
 
75
  Transform2D {
 
76
   translation -80 100
 
77
   children [
 
78
    DEF SQUARE Shape {
 
79
     appearance DEF APP Appearance {
 
80
      material Material2D {
 
81
       emissiveColor 1 1 0
 
82
       filled TRUE
 
83
      }
 
84
     }
 
85
     geometry Rectangle {
 
86
      size 90 80
 
87
     }
 
88
    }
 
89
    Shape {
 
90
     appearance USE TEXTAPP
 
91
     geometry Text {
 
92
      string ["Some Text" "to test extent"]
 
93
      fontStyle FontStyle {
 
94
       justify ["MIDDLE"]
 
95
       size 20
 
96
      }
 
97
     }
 
98
    }
 
99
   ]
 
100
  }
 
101
  Transform2D {
 
102
   translation 80 100
 
103
   children [
 
104
    USE SQUARE
 
105
    Shape {
 
106
     appearance USE TEXTAPP
 
107
     geometry Text {
 
108
      string ["Some Text" "to test extent"]
 
109
      maxExtent 90
 
110
      fontStyle FontStyle {
 
111
       justify ["MIDDLE"]
 
112
       size 20
 
113
      }
 
114
     }
 
115
    }
 
116
   ]
 
117
  }
 
118
  Transform2D {
 
119
   translation -80 -60
 
120
   children [
 
121
    DEF VSQUARE Shape {
 
122
     appearance USE APP
 
123
     geometry Rectangle {
 
124
      size 80 100
 
125
     }
 
126
    }
 
127
    Shape {
 
128
     appearance USE TEXTAPP
 
129
     geometry Text {
 
130
      string ["Extent" "Text"]
 
131
      fontStyle FontStyle {
 
132
       horizontal FALSE
 
133
       justify ["MIDDLE" "MIDDLE"]
 
134
       size 20
 
135
      }
 
136
     }
 
137
    }
 
138
   ]
 
139
  }
 
140
  Transform2D {
 
141
   translation 80 -60
 
142
   children [
 
143
    USE VSQUARE
 
144
    Shape {
 
145
     appearance USE TEXTAPP
 
146
     geometry Text {
 
147
      string ["Extent" "Text"]
 
148
      maxExtent 100
 
149
      fontStyle FontStyle {
 
150
       horizontal FALSE
 
151
       justify ["MIDDLE" "MIDDLE"]
 
152
       size 20
 
153
      }
 
154
     }
 
155
    }
 
156
   ]
 
157
  }
 
158
  Transform2D {
 
159
   translation 0 -180
 
160
   children [
 
161
    Shape {
 
162
     appearance USE TEXTAPP
 
163
     geometry Text {
 
164
      string ["Horizontal Rectangles: 100x80 pixels" "Vertical Rectangles: 80x100 pixels" "MaxExtent: longest dimension"]
 
165
      fontStyle FontStyle {
 
166
       justify ["MIDDLE"]
 
167
       size 20
 
168
      }
 
169
     }
 
170
    }
 
171
   ]
 
172
  }
 
173
 ]
 
174
}
 
175
 
 
176