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 400
     pixelHeight 300
    }
   }
  }
  ES_Descriptor {
   ES_ID 1
   decConfigDescr DecoderConfigDescriptor {
    streamType 1
   }
  }
 ]
}

OrderedGroup {
 children [
  Background2D {
   backColor 1 1 1
  }
  WorldInfo {
   info [
    "This test shows how to modify the color components of an image using the ColorTransform node."
    "" 
    "GPAC Regression Tests" "$Date: 2007-07-27 09:46:07 $ - $Revision: 1.3 $" 
    "(C) 2002-2006 GPAC Team"
   ]
   title "ColorTranform on an image"
  }
  DEF TR Transform2D {
   children [
    DEF S Shape {
     appearance Appearance {
      material Material2D {
       emissiveColor 0 1 1
       filled TRUE
      }
      texture ImageTexture {
       url ["od:2"]
      }
     }
     geometry Rectangle { size 200  80}
    }
   ]
  }
  DEF CT ColorTransform {
   mrr 1
   mgg 1
   mbb 0.2
   tr 0
   children [
    Transform2D {
     translation 0 -100
     children [
      USE S
     ]
    }
   ]
  }
  DEF TS TimeSensor {
   cycleInterval 2
   loop TRUE
  }
  DEF CI PositionInterpolator2D {
   key [0 0.5 1]
   keyValue [0 0 100 100 0 0]
  }
  DEF SI ScalarInterpolator {
   key [0 0.5 1]
   keyValue [0 1 0]
  }
 ]
}

ROUTE TS.fraction_changed TO CI.set_fraction
ROUTE CI.value_changed TO TR.translation
ROUTE TS.fraction_changed TO SI.set_fraction
ROUTE SI.value_changed TO CT.mrb
ROUTE TS.fraction_changed TO CT.maa

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