InitialObjectDescriptor {
 objectDescriptorID 1
 audioProfileLevelIndication 1
 visualProfileLevelIndication 1
 sceneProfileLevelIndication 1
 graphicsProfileLevelIndication 1
 ODProfileLevelIndication 1
 esDescr [
  ES_Descriptor {
   ES_ID 2
   decConfigDescr DecoderConfigDescriptor {
    streamType 3
    decSpecificInfo BIFSConfig {
     isCommandStream true
     pixelMetric true
     pixelWidth 600
     pixelHeight 400
    }
   }
  }
  ES_Descriptor {
   ES_ID 1
   decConfigDescr DecoderConfigDescriptor {
    streamType 1
   }
  }
 ]
}

OrderedGroup {
 children [
  WorldInfo {
   info ["This shows usage of the viewport per layer" "Translated from SVG" "" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:08 $ - $Revision: 1.2 $" "SVG Test Suite - (C) W3C 2002"]
   title "Animation Stream"
  }
  Background2D {
   backColor 1 1 1
  }
  Transform2D {
   translation -225 225
   children [
    Transform2D {
     translation 0 -30
     children [
      Transform2D {
       translation 10 -30
       children [
        Shape {
         appearance DEF N0 Appearance {
          material Material2D {
           emissiveColor 0 0 0
           filled TRUE
          }
         }
         geometry Text {
          string ["BIFS to fit"]
          fontStyle DEF N13 FontStyle {
           family ["SANS"]
           size 9
          }
         }
        }
       ]
      }
      Transform2D {
       translation 20 -40
       children [
        DEF N4 Transform2D {
         children [
          Transform2D {
           translation 15 -20
           children [
            Shape {
             appearance Appearance {
              material Material2D {
               emissiveColor 0 0 0
               filled TRUE
               lineProps LineProperties {
                lineColor 1 0 0
               }
              }
             }
             geometry Rectangle {
              size 29 39
             }
            }
           ]
          }
          Transform2D {
           translation 0 -5
           children [
            Transform2D {
             translation 15 -15
             children [
              Shape {
               appearance Appearance {
                material Material2D {
                 emissiveColor 1 1 0
                 filled TRUE
                }
               }
               geometry Circle {
                radius 10
               }
              }
             ]
            }
            Transform2D {
             translation 12 -12
             children [
              Shape {
               appearance Appearance {
                material Material2D {
                 emissiveColor 0 0 0
                 filled TRUE
                }
               }
               geometry Circle {
                radius 1.5
               }
              }
             ]
            }
            Transform2D {
             translation 17 -12
             children [
              Shape {
               appearance Appearance {
                material Material2D {
                 emissiveColor 0 0 0
                 filled TRUE
                }
               }
               geometry Circle {
                radius 1.5
               }
              }
             ]
            }
            Shape {
             appearance Appearance {
              material Material2D {
               emissiveColor 0 0 0
               filled TRUE
               lineProps LineProperties {
                width 2
               }
              }
             }
             geometry Curve2D {
              type [2]
              point Coordinate2D {
               point [10 -19 15 -22.75 15 -22.75 20 -19]
              }
             }
            }
           ]
          }
         ]
        }
       ]
      }
      Transform2D {
       translation 10 -110
       children [
        Shape {
         appearance USE N0
         geometry Text {
          string ["Viewport 1"]
          fontStyle USE N13
         }
        }
       ]
      }
      Transform2D {
       translation 10 -120
       children [
        DEF N12 Transform2D {
         translation 25 -15
         children [
          Shape {
           appearance Appearance {
            material Material2D {
             lineProps LineProperties {
              lineColor 0 0 1
             }
            }
           }
           geometry Rectangle {
            size 49 29
           }
          }
         ]
        }
       ]
      }
      Transform2D {
       translation 10 -180
       children [
        Shape {
         appearance USE N0
         geometry Text {
          string ["Viewport 2"]
          fontStyle USE N13
         }
        }
       ]
      }
      Transform2D {
       translation 20 -190
       children [
        DEF N10 Transform2D {
         translation 15 -30
         children [
          Shape {
           appearance Appearance {
            material Material2D {
             lineProps LineProperties {
              lineColor 0 0 1
             }
            }
           }
           geometry Rectangle {
            size 29 59
           }
          }
         ]
        }
       ]
      }
      Transform2D {
       translation 100 -60
       children [
        DEF N7 Transform2D {
         translation 0 30
         children [
          Shape {
           appearance USE N0
           geometry Text {
            string ["-------------- fit= 1 --------------"]
            fontStyle USE N13
           }
          }
         ]
        }
        Transform2D {
         children [
          DEF N14 Transform2D {
           translation 15 15
           children [
            Shape {
             appearance USE N0
             geometry Text {
              string ["alignment" "[ -1 * ]"]
              fontStyle DEF N1 FontStyle {
               family ["SANS"]
               justify ["MIDDLE"]
               size 9
              }
             }
            }
           ]
          }
          USE N12
          Transform2D {
           translation 25 -15
           children [
            Layer2D {
             size 50 30
             children [
              USE N4
             ]
             viewport Viewport {
              position 15 -20
              size 30 40
              alignment [-1 0]
              fit 1
             }
            }
           ]
          }
         ]
        }
        Transform2D {
         translation 70 0
         children [
          DEF N9 Transform2D {
           translation 15 15
           children [
            Shape {
             appearance USE N0
             geometry Text {
              string ["alignment" "[ 0 * ]"]
              fontStyle USE N1
             }
            }
           ]
          }
          USE N12
          Transform2D {
           translation 25 -15
           children [
            Layer2D {
             size 50 30
             children [
              USE N4
             ]
             viewport Viewport {
              position 15 -20
              size 30 40
              alignment [0 0]
              fit 1
             }
            }
           ]
          }
         ]
        }
        Transform2D {
         translation 0 -70
         children [
          DEF N5 Transform2D {
           translation 15 15
           children [
            Shape {
             appearance USE N0
             geometry Text {
              string ["alignment" "[ 1 * ]"]
              fontStyle USE N1
             }
            }
           ]
          }
          USE N12
          Transform2D {
           translation 25 -15
           children [
            Layer2D {
             size 50 30
             children [
              USE N4
             ]
             viewport Viewport {
              position 15 -20
              size 30 40
              alignment [1 0]
              fit 1
             }
            }
           ]
          }
         ]
        }
       ]
      }
      Transform2D {
       translation 250 -60
       children [
        USE N7
        Transform2D {
         children [
          DEF N11 Transform2D {
           translation 15 15
           children [
            Shape {
             appearance USE N0
             geometry Text {
              string ["alignment" "[ * -1 ]"]
              fontStyle USE N1
             }
            }
           ]
          }
          USE N10
          Transform2D {
           translation 15 -30
           children [
            Layer2D {
             size 30 60
             children [
              USE N4
             ]
             viewport Viewport {
              position 15 -20
              size 30 40
              alignment [0 -1]
              fit 1
             }
            }
           ]
          }
          Transform2D {
           translation 50 0
           children [
            DEF N3 Transform2D {
             translation 15 15
             children [
              Shape {
               appearance USE N0
               geometry Text {
                string ["alignment" "[ * 0 ]"]
                fontStyle USE N1
               }
              }
             ]
            }
            USE N10
            Transform2D {
             translation 15 -30
             children [
              Layer2D {
               size 30 60
               children [
                USE N4
               ]
               viewport Viewport {
                position 15 -20
                size 30 40
                alignment [0 0]
                fit 1
               }
              }
             ]
            }
           ]
          }
          Transform2D {
           translation 100 0
           children [
            DEF N2 Transform2D {
             translation 15 15
             children [
              Shape {
               appearance USE N0
               geometry Text {
                string ["alignment" "[ * 1 ]"]
                fontStyle USE N1
               }
              }
             ]
            }
            USE N10
            Transform2D {
             translation 15 -30
             children [
              Layer2D {
               size 30 60
               children [
                USE N4
               ]
               viewport Viewport {
                position 15 -20
                size 30 40
                alignment [0 1]
                fit 1
               }
              }
             ]
            }
           ]
          }
         ]
        }
       ]
      }
      Transform2D {
       translation 100 -220
       children [
        DEF N6 Transform2D {
         translation 0 30
         children [
          Shape {
           appearance USE N0
           geometry Text {
            string ["---------- fit = 2 ----------"]
            fontStyle USE N13
           }
          }
         ]
        }
        USE N14
        USE N10
        Transform2D {
         translation 15 -30
         children [
          Layer2D {
           size 30 60
           children [
            USE N4
           ]
           viewport Viewport {
            position 15 -20
            size 30 40
            alignment [-1 0]
            fit 2
           }
          }
         ]
        }
        Transform2D {
         translation 50 0
         children [
          USE N9
          USE N10
          Transform2D {
           translation 15 -30
           children [
            Layer2D {
             size 30 60
             children [
              USE N4
             ]
             viewport Viewport {
              position 15 -20
              size 30 40
              alignment [0 0]
              fit 2
             }
            }
           ]
          }
         ]
        }
        Transform2D {
         translation 100 0
         children [
          USE N5
          USE N10
          Transform2D {
           translation 15 -30
           children [
            Layer2D {
             size 30 60
             children [
              USE N4
             ]
             viewport Viewport {
              position 15 -20
              size 30 40
              alignment [1 0]
              fit 2
             }
            }
           ]
          }
         ]
        }
       ]
      }
      Transform2D {
       translation 250 -190
       children [
        Transform2D {
         translation 0 -30
         children [
          USE N6
          Transform2D {
           children [
            USE N11
            USE N12
            Transform2D {
             translation 25 -15
             children [
              Layer2D {
               size 50 30
               children [
                USE N4
               ]
               viewport Viewport {
                position 15 -20
                size 30 40
                alignment [0 -1]
                fit 2
               }
              }
             ]
            }
           ]
          }
          Transform2D {
           translation 70 0
           children [
            USE N3
            USE N12
            Transform2D {
             translation 25 -15
             children [
              Layer2D {
               size 50 30
               children [
                USE N4
               ]
               viewport Viewport {
                position 15 -20
                size 30 40
                alignment [0 0]
                fit 2
               }
              }
             ]
            }
           ]
          }
          Transform2D {
           translation 140 0
           children [
            USE N2
            USE N12
            Transform2D {
             translation 25 -15
             children [
              Layer2D {
               size 50 30
               children [
                USE N4
               ]
               viewport Viewport {
                position 15 -20
                size 30 40
                alignment [0 1]
                fit 2
               }
              }
             ]
            }
           ]
          }
         ]
        }
       ]
      }
      Transform2D {
       translation 175 -300
       children [
        Transform2D {
         translation 0 -30
         children [
          Transform2D {
           translation 0 30
           children [
            Shape {
             appearance USE N0
             geometry Text {
              string ["---------- fit = 0 ----------"]
              fontStyle USE N13
             }
            }
           ]
          }
          Transform2D {
           children [
            DEF N8 Transform2D {
             translation 15 15
             children [
              Shape {
               appearance USE N0
               geometry Text {
                string ["alignment" "[ * * ]"]
                fontStyle USE N1
               }
              }
             ]
            }
            USE N12
            Transform2D {
             translation 25 -15
             children [
              Layer2D {
               size 50 30
               children [
                USE N4
               ]
               viewport Viewport {
                position 15 -20
                size 30 40
               }
              }
             ]
            }
           ]
          }
          Transform2D {
           translation 100 0
           children [
            USE N8
            USE N10
            Transform2D {
             translation 15 -30
             children [
              Layer2D {
               size 30 60
               children [
                USE N4
               ]
               viewport Viewport {
                position 15 -20
                size 30 40
               }
              }
             ]
            }
           ]
          }
         ]
        }
       ]
      }
     ]
    }
   ]
  }
 ]
}


