IBM MPEG-4 XMT-O Tutorial IBM MPEG-4 Technologies
IBM MPEG-4 Technologies
Overview
Presentation
Images
Text
Definitions
Regions
Animation
Transition
Credits
Transition credits
Video

Add Images

This exercise will demonstrate how to add pictures to the presentation. The pictures are four images set on the background. The pictures appear one at a time.

Add four images. The timing of each picture is set so that the picture follows the previous picture by having its begin time equal to the previous image's end time. All the pictures have a duration of 10 seconds, except for the last which is indefinite.

<xmt-o ...> 
  <head> ... </head>
  <body> 
    <par>
      ...
      <img id="slide1" src="../multimedia/QueenMary.jpg"    begin="0s"         dur="10s"/>
      <img id="slide2" src="../multimedia/Montpellier.jpg"  begin="slide1.end" dur="10s"/>
      <img id="slide3" src="../multimedia/AiguesMortes.jpg" begin="slide2.end" dur="10s"/>
      <img id="slide4" src="../multimedia/HongKong.jpg"     begin="slide3.end" dur="indefinite"/>
    </par>
  </body>
</xmt-o>

Each picture is placed in the center of the picture frame with a transformation tag.

<xmt-o ...> 
  <head> ... </head>
  <body> 
    <par>
      ...
      <img ...>
        <transformation translation="0 16"/>
      </img>
      <img ...>
        <transformation translation="0 16"/>
      </img>
      <img ...>
        <transformation translation="0 16"/>
      </img>
      <img ...>
        <transformation translation="0 16"/>
      </img>
    </par>
  </body>
</xmt-o>

The following is the complete XMT-O file used for this exercise:

IBMSlideShow2.xml

Here is a snap shot of the exercise:


In the next exercise, you will add text descriptions for the pictures.

 

  IBM Home | Research Home | MPEG-4 Technologies | alphaWorks | © Copyright IBM Corp. 1998, 2004. All Rights Reserved.