Class ISO14496_Box_TFHD

Description

Each movie fragment can add zero or more Track Fragment Header Box to each track; and a track fragment can add zero or more contiguous runs of samples. The track fragment header sets up information and defaults used for those runs of samples.

Located in /ISO14496/Box/TFHD.php (line 55)

ISO14496_Box
   |
   --ISO14496_Box_Full
      |
      --ISO14496_Box_TFHD
Class Constant Summary
Method Summary
ISO14496_Box_TFHD __construct (Reader $reader, [ &$options = array()])
integer getBaseDataOffset ()
integer getTrackId ()
Variables
Methods
Constructor __construct (line 114)

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

  • todo: The sample flags could be parsed further
  • access: public
ISO14496_Box_TFHD __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.
getBaseDataOffset (line 146)

Returns the base offset to use when calculating data offsets.

  • access: public
integer getBaseDataOffset ()
getDefaultSampleDuration (line 166)

Returns the default sample duration.

  • access: public
integer getDefaultSampleDuration ()
getDefaultSampleFlags (line 186)

Returns the default sample flags.

  • access: public
integer getDefaultSampleFlags ()
getDefaultSampleSize (line 176)

Returns the default sample size.

  • access: public
integer getDefaultSampleSize ()
getSampleDescriptionIndex (line 156)

Returns the sample description index.

  • access: public
integer getSampleDescriptionIndex ()
getTrackId (line 136)

Returns the track identifier.

  • access: public
integer getTrackId ()

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()
Class Constants
BASE_DATA_OFFSET = 0x1 (line 82)

Indicates indicates the presence of the baseDataOffset field. This provides

an explicit anchor for the data offsets in each track run (see below). If not provided, the base-dataoffset for the first track in the movie fragment is the position of the first byte of the enclosing Movie Fragment Box, and for second and subsequent track fragments, the default is the end of the data defined by the preceding fragment. Fragments inheriting their offset in this way must all use the same data-reference (i.e., the data for these tracks must be in the same file).

DEFAULT_SAMPLE_DURATION = 0x20 (line 98)

Indicates the precense of the defaultSampleFlags field.

DEFAULT_SAMPLE_DURATION = 0x8 (line 92)

Indicates the precense of the defaultSampleDuration field.

DEFAULT_SAMPLE_SIZE = 0x10 (line 95)

Indicates the precense of the defaultSampleSize field.

DURATION_IS_EMPTY = 0x10000 (line 105)

Indicates that the duration provided in either defaultSampleDuration, or by the defaultDuration in the Track Extends Box, is empty, i.e. that there are no samples for this time interval.

SAMPLE_DESCRIPTION_INDEX = 0x2 (line 89)

Indicates the presence of the sampleDescriptionIndex field, which over-rides, in this fragment, the default set up in the Track Extends Box.

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