Class ISO14496_Box_STTS

Description

The Decoding Time to Sample Box contains a compact version of a table

that allows indexing from decoding time to sample number. Other tables give sample sizes and pointers, from the sample number. Each entry in the table gives the number of consecutive samples with the same time delta, and the delta of those samples. By adding the deltas a complete time-to-sample map may be built.

The Decoding Time to Sample Box contains decode time delta's: DT(n+1) = DT(n)

  • STTS(n) where STTS(n) is the (uncompressed) table entry for sample n.
The sample entries are ordered by decoding time stamps; therefore the deltas are all non-negative.

The DT axis has a zero origin; DT(i) = SUM(for j=0 to i-1 of delta(j)), and the sum of all deltas gives the length of the media in the track (not mapped to the overall timescale, and not considering any edit list).

The Edit List Box provides the initial CT value if it is non-empty (non-zero).

Located in /ISO14496/Box/STTS.php (line 70)

ISO14496_Box
   |
   --ISO14496_Box_Full
      |
      --ISO14496_Box_STTS
Method Summary
ISO14496_Box_STTS __construct (Reader $reader, [ &$options = array()])
Variables
Methods
Constructor __construct (line 81)

Constructs the class with given parameters and reads box related data from the ISO Base Media file.

  • access: public
ISO14496_Box_STTS __construct (Reader $reader, [ &$options = array()])
  • Reader $reader: The reader object.
  • &$options

Redefinition of:
ISO14496_Box_Full::__construct()
Constructs the class with given parameters and reads box related data from the ISO Base Media file.
getTimeToSampleTable (line 106)

Returns an array of values. Each entry is an array containing the following keys.

  • sampleCount -- an integer that counts the number of consecutive samples that have the given duration.
  • sampleDelta -- an integer that gives the delta of these samples in the time-scale of the media.

  • access: public
Array getTimeToSampleTable ()

Inherited Methods

Inherited From ISO14496_Box_Full

ISO14496_Box_Full::__construct()
ISO14496_Box_Full::getFlags()
ISO14496_Box_Full::getVersion()
ISO14496_Box_Full::hasFlag()
ISO14496_Box_Full::setFlags()
ISO14496_Box_Full::setVersion()
ISO14496_Box_Full::__toString()

Inherited From ISO14496_Box

ISO14496_Box::__construct()
ISO14496_Box::addBox()
ISO14496_Box::constructBoxes()
ISO14496_Box::getBoxes()
ISO14496_Box::getBoxesByIdentifier()
ISO14496_Box::getContainer()
ISO14496_Box::getOffset()
ISO14496_Box::getOption()
ISO14496_Box::getOptions()
ISO14496_Box::getParent()
ISO14496_Box::getSize()
ISO14496_Box::getType()
ISO14496_Box::hasBox()
ISO14496_Box::isContainer()
ISO14496_Box::setContainer()
ISO14496_Box::setOffset()
ISO14496_Box::setOption()
ISO14496_Box::setOptions()
ISO14496_Box::setParent()
ISO14496_Box::setSize()
ISO14496_Box::setType()
ISO14496_Box::__get()
ISO14496_Box::__isset()
ISO14496_Box::__set()
ISO14496_Box::__toString()
ISO14496_Box::__unset()

Documentation generated on Fri, 05 Sep 2008 20:19:31 +0300 by phpDocumentor 1.4.1