Source for file Bitstream.php
Documentation is available at Bitstream.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------------+
// | File_Ogg PEAR Package for Accessing Ogg Bitstreams |
// | Copyright (c) 2005-2007 |
// | David Grant <david@grant.org.uk> |
// | Tim Starling <tstarling@wikimedia.org> |
// +----------------------------------------------------------------------------+
// | This library is free software; you can redistribute it and/or |
// | modify it under the terms of the GNU Lesser General Public |
// | License as published by the Free Software Foundation; either |
// | version 2.1 of the License, or (at your option) any later version. |
// | This library is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | Lesser General Public License for more details. |
// | You should have received a copy of the GNU Lesser General Public |
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
// +----------------------------------------------------------------------------+
* @author David Grant <david@grant.org.uk>, Tim Starling <tstarling@wikimedia.org>
* @copyright David Grant <david@grant.org.uk>, Tim Starling <tstarling@wikimedia.org>
* @license http://www.gnu.org/copyleft/lesser.html GNU LGPL
* @link http://pear.php.net/package/File_Ogg
* @version CVS: $Id: Bitstream.php 302834 2010-08-27 02:16:20Z tstarling $
* The serial number of this logical stream.
* The number of bits used in this stream.
* The last granule position in the stream
* Constructor for a generic logical stream.
* @param int $streamSerial Serial number of the logical stream.
* @param array $streamData Data for the requested logical stream.
* @param string $filePath Location of a file on the filesystem.
* @param pointer $filePointer File pointer for the current physical stream.
function __construct ($streamSerial, $streamData, $filePointer)
$this->_streamSerial = $streamSerial;
$this->_streamData = $streamData;
$this->_filePointer = $filePointer;
$this->_firstGranulePos = $streamData['first_granule_pos'];
$this->_lastGranulePos = $streamData['last_granule_pos'];
$this->_streamSize = $streamData['data_length'];
$this->_group = $streamData['pages'][0 ]['group'];
* Gives the serial number of this stream.
* The stream serial number is of fairly academic importance, as it makes little
* difference to the end user. The serial number is used by the Ogg physical
* stream to distinguish between concurrent logical streams.
return ($this->_streamSerial);
* Gives the size (in bits) of this stream.
* This function returns the size of the Vorbis stream within the Ogg
return ($this->_streamSize);
* Get the multiplexed group ID
Documentation generated on Mon, 11 Mar 2019 15:38:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|