Add support for basic RIFF format

git-svn-id: http://php-reader.googlecode.com/svn/trunk@256 51a70ab9-7547-0410-9469-37e369ee0574
This commit is contained in:
svollbehr
2012-01-26 05:29:00 +00:00
parent 7ad54f1699
commit 4135abea31
33 changed files with 1412 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
<?php
/**
* @category Zend
* @package Zend_Media
* @subpackage Riff
* @copyright Copyright (c) 2011 Sven Vollbehr
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**#@+ @ignore */
require_once 'Zend/Media/Riff/Chunk.php';
/**#@-*/
/**
* The <i>Compound File Table of Contents</i> chunk functions mainly as an index, allowing direct access to elements
* within a compound file. The CTOC chunk also contains information about the attributes of the entire file and of each
* media element within the file.
*
* To provide the maximum flexibility for defining compound file formats, the CTOC chunk can be customized at several
* levels. The CTOC chunk contains fields whose length and usage is defined by other CTOC fields. This parameterization
* adds complexity, but it provides flexibility to file format designers and allows applications to correctly read data
* without necessarily knowing the specific file format definition.
*
* @category Zend
* @package Zend_Media
* @subpackage Riff
* @author Sven Vollbehr <sven@vollbehr.eu>
* @copyright Copyright (c) 2011 Sven Vollbehr
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
* @todo Implementation
*/
final class Zend_Media_Riff_Chunk_Ctoc extends Zend_Media_Riff_Chunk
{
/**
* Constructs the class with given parameters and options.
*
* @param Zend_Io_Reader $reader The reader object.
*/
public function __construct($reader)
{
parent::__construct($reader);
require_once('Zend/Media/Riff/Exception.php');
throw new Zend_Media_Riff_Exception('Not yet implemented');
}
}