Movie Fragment Random Access Offset Box provides a copy of the * length field from the enclosing {@link ISO14496_Box_MFRA Movie Fragment * Random Access Box}. It is placed last within that box, so that the size field * is also last in the enclosing Movie Fragment Random Access Box. When the * Movie Fragment Random Access Box is also last in the file this permits its * easy location. The size field here must be correct. However, neither the * presence of the Movie Fragment Random Access Box, nor its placement last in * the file, are assured. * * @package php-reader * @subpackage ISO 14496 * @author Sven Vollbehr * @copyright Copyright (c) 2008 The PHP Reader Project Workgroup * @license http://code.google.com/p/php-reader/wiki/License New BSD License * @version $Rev: 92 $ */ final class ISO14496_Box_MFRO extends ISO14496_Box_Full { /** @var integer */ private $_parentSize; /** * Constructs the class with given parameters and reads box related data from * the ISO Base Media file. * * @param Reader $reader The reader object. */ public function __construct($reader, &$options = array()) { parent::__construct($reader, $options); $this->_parentSize = $this->_reader->readUInt32BE(); } /** * Returns the number of bytes of the enclosing {@link ISO14496_Box_MFRA} box. * This field is placed at the last of the enclosing box to assist readers * scanning from the end of the file in finding the mfra box. * * @return integer */ public function getParentSize() { return $this->_parentSize; } }