13.07.2015 Views

Quicktime File Format (2012-08-14).pdf

Quicktime File Format (2012-08-14).pdf

Quicktime File Format (2012-08-14).pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Some Useful Examples and ScenariosCreating an Effect DescriptionFigure 6-5 (page 340) shows the set of atoms that must be added to the entry description.Figure 6-5An example effect description for the Push effectRequired atomsByteUse the effect component withthe name 'push'.kParameterWhatName'push'1The first source is 'srcA'which is the name of a sourcedefined in the input map.kEffectSourceName'srcA'1The second source is 'srcB'from the input map.kEffectSourceName'srcB'2The percentage value, whichis tweened for 25% to 75%.Parameter atoms'pcnt''srcB'kTweenTypekParamTypeDataFixed11kTweenData0.250.751The direction from which thesecond source pushes thefirst. The value 2 indicatesit pushes in from below.'from'21An important property of effect parameters is that most can be tweened (and some must be tweened). Tweeningis QuickTime’s general purpose interpolation mechanism (see “Tween Media” (page 235) for more information).For many parameters, it is desirable to allow the value of the parameter to change as the effect executes. Inthe example shown in Figure 6-5 (page 340), the 'pcnt' parameter must be a tween. This parameter controlswhich frame of the effect is rendered at any given time, so it must change for the effect to progress. The 'from'parameter is not a tween in the example above, but it could be if we wanted the direction of the push tochange during the course of the effect.Creating an Input MapThe input map is another QT atom container that you attach to the effects track. It describes the sources usedin the effect and gives a name to each source. This name is used to refer to the source in the effects description.<strong>2012</strong>-<strong>08</strong>-<strong>14</strong> | © 2004, <strong>2012</strong> Apple Inc. All Rights Reserved.340

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!