Class ISO14496_Box_STSZ

Description

The Sample Size Box contains the sample count and a table giving the size in bytes of each sample. This allows the media data itself to be unframed. The total number of samples in the media is always indicated in the sample count.

There are two variants of the sample size box. The first variant has a fixed size 32-bit field for representing the sample sizes; it permits defining a constant size for all samples in a track. The second variant permits smaller size fields, to save space when the sizes are varying but small. One of these boxes must be present; the first version is preferred for maximum compatibility.

Located in /ISO14496/Box/STSZ.php (line 62)

ISO14496_Box
   |
   --ISO14496_Box_Full
      |
      --ISO14496_Box_STSZ
Method Summary
ISO14496_Box_STSZ __construct (Reader $reader, [ &$options = array()])
integer getSampleSize ()
Variables
Methods
Constructor __construct (line 76)

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

  • access: public
ISO14496_Box_STSZ __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.
getSampleSize (line 98)

Returns the default sample size. If all the samples are the same size, this field contains that size value. If this field is set to 0, then the samples have different sizes, and those sizes are stored in the sample size table.

  • access: public
integer getSampleSize ()
getSampleSizeTable (line 106)

Returns an array of sample sizes specifying the size of a sample, indexed by its number.

  • access: public
Array getSampleSizeTable ()

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:30 +0300 by phpDocumentor 1.4.1