Maven module :un.storage : media-mpeg4 :
Class : un.storage.media.mp4.boxes.impl.SampleDependencyTypeBox
Extends/Implements : un.storage.media.mp4.boxes.FullBox
Subclasses : -

This optional table answers three questions about sample dependency:


In the absence of this table:


When performing 'trick' modes, such as fast-forward, it is possible to use
the first piece of information to locate independently decodable samples.
Similarly, when performing random access, it may be necessary to locate the
previous sync point or random access recovery point, and roll-forward from
the sync point or the pre-roll starting point of the random access recovery
point to the desired point. While rolling forward, samples on which no others
depend need not be retrieved or decoded.
The value of 'sample is depended on' is independent of the existence of
redundant codings. However, a redundant coding may have different
dependencies from the primary coding; if redundant codings are available, the
value of 'sample depends on' documents only the primary coding.

A Sample Dependency Box may also occur in the Track Fragment Box.

@author Alexander Simm


Variables : -
Functions : SampleDependencyTypeBox, decode, getSampleDependsOn, getSampleIsDependedOn, getSampleHasRedundancy



public void SampleDependencyTypeBox ()

public void decode (MP4InputStream in)


The 'sample depends on' field takes one of the following four values:
0: the dependency of this sample is unknown
1: this sample does depend on others (not an I picture)
2: this sample does not depend on others (I picture)
3: reserved

@return a list of 'sample depends on' values for all samples
public int[] getSampleDependsOn ()


The 'sample is depended on' field takes one of the following four values:
0: the dependency of other samples on this sample is unknown
1: other samples may depend on this one (not disposable)
2: no other sample depends on this one (disposable)
3: reserved

@return a list of 'sample is depended on' values for all samples
public int[] getSampleIsDependedOn ()


The 'sample has redundancy' field takes one of the following four values:
0: it is unknown whether there is redundant coding in this sample
1: there is redundant coding in this sample
2: there is no redundant coding in this sample
3: reserved

@return a list of 'sample has redundancy' values for all samples
public int[] getSampleHasRedundancy ()