Maven module :un.storage : media-mpeg4 :
Class :
un.storage.media.mp4.boxes.impl.SampleScaleBox
Extends/Implements :
un.storage.media.mp4.boxes.FullBox
Subclasses : -
Variables : -
Functions :
SampleScaleBox,
decode,
isConstrained,
getDisplayCenterX,
getDisplayCenterY,
getScaleMethod
public void
SampleScaleBox ()
public void
decode (MP4InputStream in)
public boolean
isConstrained ()
public int
getDisplayCenterX ()
public int
getDisplayCenterY ()
public int
getScaleMethod ()
scaling method that is applied when the width and height of the visual
material (as declared by the width and height values in any visual sample
entry) do not match the track width and height values (as indicated in the
track header box).
Implementation of this box is optional; if this box is present and can be
interpreted by the decoder, all samples shall be displayed according to the
scaling behaviour that is specified in this box. Otherwise, all samples are
scaled to the size that is indicated by the width and height field in the
Track Header Box.
If the size of the image is bigger than the size of the presentation region
and 'hidden' scaling is applied in the Sample Scale Box, it is not possible
to display the whole image. In such a case, it is useful to provide the
information to determine the region that is to be displayed. The centre
values would then indicate the centre of the region of high priority in each
visual sample. The decoder can display the region of high priority according
to these values. The centre values imply a consistent crop for all the images
in a sequence. The offset values are positive when the desired visual centre
is below or to the right of the image centre, and negative for offsets above
or to the left.
@author Alexander Simm