diff --git a/src/Zend/Media/Iso14496/Box/Chpl.php b/src/Zend/Media/Iso14496/Box/Chpl.php new file mode 100644 index 0000000..d1f171c --- /dev/null +++ b/src/Zend/Media/Iso14496/Box/Chpl.php @@ -0,0 +1,89 @@ +Nero Chapter List Box. + * + * @category Zend + * @package Zend_Media + * @subpackage ISO14496 + * @author Sven Vollbehr + * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + * @version $Id$ + */ +final class Zend_Media_Iso14496_Box_Chpl extends Zend_Media_Iso14496_FullBox +{ + private $_data; + + /** + * Constructs the class with given parameters and reads box related data + * from the ISO Base Media file. + * + * @param Zend_Io_Reader $reader The reader object. + * @param Array $options The options array. + */ + public function __construct($reader, &$options = array()) + { + parent::__construct($reader, $options); + + $this->_data = $reader->read($this->getSize() - 12); + } + + /** + * Returns the box heap size in bytes. + * + * @return integer + */ + public function getHeapSize() + { + return parent::getHeapSize() + $this->getSize() - 12; + } + + /** + * Writes the box data. + * + * @param Zend_Io_Writer $writer The writer object. + * @return void + */ + protected function _writeData($writer) + { + parent::_writeData($writer); + $writer->write($this->_data); + } +} diff --git a/src/Zend/Media/Iso14496/Box/Ndrm.php b/src/Zend/Media/Iso14496/Box/Ndrm.php new file mode 100644 index 0000000..9db6ebb --- /dev/null +++ b/src/Zend/Media/Iso14496/Box/Ndrm.php @@ -0,0 +1,89 @@ +Nero Digital Rights Management Box. + * + * @category Zend + * @package Zend_Media + * @subpackage ISO14496 + * @author Sven Vollbehr + * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + * @version $Id$ + */ +final class Zend_Media_Iso14496_Box_Ndrm extends Zend_Media_Iso14496_FullBox +{ + private $_data; + + /** + * Constructs the class with given parameters and reads box related data + * from the ISO Base Media file. + * + * @param Zend_Io_Reader $reader The reader object. + * @param Array $options The options array. + */ + public function __construct($reader, &$options = array()) + { + parent::__construct($reader, $options); + + $this->_data = $reader->read($this->getSize() - 12); + } + + /** + * Returns the box heap size in bytes. + * + * @return integer + */ + public function getHeapSize() + { + return parent::getHeapSize() + $this->getSize() - 12; + } + + /** + * Writes the box data. + * + * @param Zend_Io_Writer $writer The writer object. + * @return void + */ + protected function _writeData($writer) + { + parent::_writeData($writer); + $writer->write($this->_data); + } +}