InitialObjectDescriptor {
  objectDescriptorID 1
  ODProfileLevelIndication 0x01
  sceneProfileLevelIndication 0xFE
  audioProfileLevelIndication 0xFF
  visualProfileLevelIndication 0x01
  graphicsProfileLevelIndication 0xFE

  esdescr [
    ES_Descriptor {
      es_id 1
      decConfigDescr DecoderConfigDescriptor {
				streamType 3
				decSpecificInfo BIFSConfig {
				  isCommandStream true
				  pixelMetric TRUE
				  pixelWidth 300
				  pixelHeight 200
				}
      }
    }
    ES_Descriptor {
      es_id 2
      decConfigDescr DecoderConfigDescriptor {
				streamType 1
      }
    }
  ]
}

Group {
 children [
	Background2D {backColor 1 1 1}
  WorldInfo {
   title "Bitmap Test"
   info ["This shows dragable bitmap with outscale" "with movieTexture in Meter Metrics" "and an animated textured box" "" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:08 $ - $Revision: 1.3 $" "(C) 2002-2004 GPAC Team"]
  }

  DEF TR Transform {
  	children [
     Shape {
     	appearance Appearance {
     		material DEF MAT Material{}
     		texture ImageTexture { url 5}
     	}
      geometry Box {size 50 50 50}
     }
    ]
  }

  Transform2D {
   children [
    Transform2D {
     children [
      Shape {
       appearance Appearance {
        texture MovieTexture { 
         url 10 
         loop TRUE
        }
       }
       geometry Bitmap {scale 2 2}
      }
      DEF PS PlaneSensor2D {
       maxPosition 200 200
       minPosition -200 -200
      }
     ]
    }
   ]
  }

  DEF TS TimeSensor { cycleInterval 10.0 loop TRUE }
  DEF OI OrientationInterpolator  {
  	key [0 0.25 0.5 0.75 1]
  	keyValue [1 1 1 0, 1 1 1 3.14, 1 1 1 6.26, 1 1 1 3.14, 1 1 1 6.26]
 	}
  DEF PI PositionInterpolator  {
  	key [0 0.25 0.5 0.75 1]
  	keyValue [-180 120 0, 180 120 0, 180 -120 0, -180 -120 0, -180 120 0]
 	}
 ]
}

ROUTE TS.fraction_changed TO OI.set_fraction
ROUTE OI.value_changed TO TR.rotation
ROUTE TS.fraction_changed TO PI.set_fraction
ROUTE PI.value_changed TO TR.translation
#ROUTE TS.fraction_changed TO MAT.transparency


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

