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

OrderedGroup {
 children [
  Background2D {
   backColor 1 1 1
  }
  WorldInfo {
   info [
    "This test shows image displayed on the basic 2D shapes." 
    "Image is considered as a texture and described in the ImageTexture node." 
    "The url of this node points to the image using any internet protocol (http, rtsp) or using MPEG-4 OD." 
    "The ImageTexture node is associated to the geometry as a children of the Shape node. The image is then clipped along the bounding box of the shape." 
    "" 
    "GPAC Regression Tests" "$Date: 2007-07-27 09:46:08 $ - $Revision: 1.3 $" 
    "(C) 2002-2006 GPAC Team"
   ]
   title "Displaying Images as a texture on any shape"
  }
  Transform2D {
   translation -150 150
   children [
    Shape {
     appearance DEF APP Appearance {
      texture ImageTexture {
       url [od:10]
      }
     }
     geometry IndexedLineSet2D {
      coord Coordinate2D {
       point [-50 0 0 50 50 0]
      }
     }
    }
    Transform2D {
     translation 0 -20
     children [
      Shape {
       appearance DEF TEXTAPP Appearance {
        material Material2D {
         emissiveColor 0 0 0
         filled TRUE
        }
       }
       geometry Text {
        string ["IndexedLineSet2D" "[-50 0 0 50 50 0]"]
        fontStyle DEF FS FontStyle {
         justify ["MIDDLE" "MIDDLE"]
         size 12
        }
       }
      }
     ]
    }
   ]
  }
  Transform2D {
   translation 0 150
   children [
    Shape {
     appearance USE APP
     geometry Circle {
      radius 50
     }
    }
    Transform2D {
     children [
      Shape {
       appearance USE TEXTAPP
       geometry Text {
        string ["Circle" "radius 50"]
        fontStyle USE FS
       }
      }
     ]
    }
   ]
  }
  Transform2D {
   translation 150 150
   children [
    Shape {
     appearance USE APP
     geometry Rectangle {
      size 100 50
     }
    }
    Transform2D {
     translation 0 -40
     children [
      Shape {
       appearance USE TEXTAPP
       geometry Text {
        string ["Rectangle" "Size 100 50"]
        fontStyle USE FS
       }
      }
     ]
    }
   ]
  }
  Transform2D {
   translation 0 -40
   children [
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Curve2D Points:" "-50 0, -100 50, 0 20, 10 30, 40 80, 50 0"]
      fontStyle USE FS
     }
    }
   ]
  }
  Transform2D {
   translation -150 0
   children [
    Shape {
     appearance USE APP
     geometry Curve2D {
      point DEF C2D Coordinate2D {
       point [-50 0 -100 50 0 20 10 30 40 80 50 0]
      }
     }
    }
    Transform2D {
     translation 0 -10
     children [
      Shape {
       appearance USE TEXTAPP
       geometry Text {
        string ["no type"]
        fontStyle USE FS
       }
      }
     ]
    }
   ]
  }
  Transform2D {
   children [
    Shape {
     appearance USE APP
     geometry Curve2D {
      type [2 3]
      point USE C2D
     }
    }
    Transform2D {
     translation 0 -10
     children [
      Shape {
       appearance USE TEXTAPP
       geometry Text {
        string ["type [2 3]"]
        fontStyle USE FS
       }
      }
     ]
    }
   ]
  }
  Transform2D {
   translation 170 0
   children [
    Shape {
     appearance USE APP
     geometry Curve2D {
      type [1 3 1]
      point USE C2D
     }
    }
    Transform2D {
     translation 0 -10
     children [
      Shape {
       appearance USE TEXTAPP
       geometry Text {
        string ["type [1 3 1]"]
        fontStyle USE FS
       }
      }
     ]
    }
   ]
  }
  Transform2D {
   translation -150 -150
   children [
    Shape {
     appearance USE APP
     geometry IndexedFaceSet2D {
      coord Coordinate2D {
       point [-50 0 -25 25 0 80 50 0]
      }
     }
    }
    Transform2D {
     translation 0 -20
     children [
      Shape {
       appearance USE TEXTAPP
       geometry Text {
        string ["IndexedFaceSet2D" "-50 0, -25, 25, 0 80, 50 0"]
        fontStyle USE FS
       }
      }
     ]
    }
   ]
  }
  Transform2D {
   translation 0 -150
   children [
    Shape {
     appearance USE APP
     geometry PointSet2D {
      coord Coordinate2D {
       point [-50 0 -25 25 0 80 50 0]
      }
     }
    }
    Transform2D {
     translation 0 -20
     children [
      Shape {
       appearance USE TEXTAPP
       geometry Text {
        string ["PointSet2D" "-50 0, -25, 25, 0 80, 50 0"]
        fontStyle USE FS
       }
      }
     ]
    }
   ]
  }
 ]
}


AT 0 {
  UPDATE OD [
   ObjectDescriptor {
    objectDescriptorID 10
    esDescr [
     ES_Descriptor {
      ES_ID 20
      muxInfo MuxInfo {
       fileName "../auxiliary_files/logo.jpg"
      }
     }
    ]
   }
  ]
}

