本文整理汇总了PHP中Zend_Media_Iso14496_FullBox类的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Media_Iso14496_FullBox类的具体用法?PHP Zend_Media_Iso14496_FullBox怎么用?PHP Zend_Media_Iso14496_FullBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Zend_Media_Iso14496_FullBox类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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 = null, &$options = array())
{
parent::__construct($reader, $options);
$this->setContainer(true);
if ($reader === null) {
return;
}
$this->constructBoxes();
}
开发者ID:adam-fonseca,项目名称:RuneUI,代码行数:16,代码来源:Meta.php
示例2: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeUInt32BE($entryCount = count($this->_sampleToChunkTable));
for ($i = 1; $i <= $entryCount; $i++) {
$writer->writeUInt32BE($this->_sampleToChunkTable[$i]['firstChunk'])->writeUInt32BE($this->_sampleToChunkTable[$i]['samplesPerChunk'])->writeUInt32BE($this->_sampleToChunkTable[$i]['sampleDescriptionIndex']);
}
}
开发者ID:google-code-backups,项目名称:php-reader,代码行数:14,代码来源:Stsc.php
示例3: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeUInt16BE(ord($this->_language[0]) - 0x60 << 10 | ord($this->_language[1]) - 0x60 << 5 | ord($this->_language[2]) - 0x60);
$this->_tag->write($writer);
}
开发者ID:jreinert,项目名称:RuneUI,代码行数:12,代码来源:Id32.php
示例4: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
for ($i = 0; $i < count($this->_values); $i++) {
$writer->writeUInt16BE($this->_values[$i]['priority']);
}
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:13,代码来源:Stdp.php
示例5: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->write(str_pad('', 4, ""))->write($this->_handlerType)->writeUInt32BE(0)->writeUInt32BE(0)->writeUInt32BE(0)->writeString8($this->_name, 1);
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:11,代码来源:Hdlr.php
示例6: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
@(list(, $balanceDecimals) = explode('.', (double) $this->_balance));
$writer->writeInt16BE(floor($this->_balance) << 8 | $balanceDecimals)->writeInt16BE(0);
}
开发者ID:jreinert,项目名称:RuneUI,代码行数:12,代码来源:Smhd.php
示例7: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeUInt32BE($entryCount = count($this->_compositionOffsetTable));
for ($i = 1; $i <= $entryCount; $i++) {
$writer->writeUInt32BE($this->_compositionOffsetTable[$i]['sampleCount'])->writeUInt32BE($this->_compositionOffsetTable[$i]['sampleOffset']);
}
}
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:14,代码来源:Ctts.php
示例8: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeUInt32BE($entryCount = count($this->_timeToSampleTable));
for ($i = 1; $i <= $entryCount; $i++) {
$writer->writeUInt32BE($this->_timeToSampleTable[$i]['sampleCount'])->writeUInt32BE($this->_timeToSampleTable[$i]['sampleDelta']);
}
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:14,代码来源:Stts.php
示例9: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeUInt16BE($this->_graphicsMode)->writeUInt16BE($this->_opcolor[0])->writeUInt16BE($this->_opcolor[1])->writeUInt16BE($this->_opcolor[2]);
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:11,代码来源:Vmhd.php
示例10: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
for ($i = 0; $i < count($this->_timeToSampleTable); $i++) {
$writer->writeUInt32BE($this->_progressiveDownloadInfo[$i]['rate'])->writeUInt32BE($this->_progressiveDownloadInfo[$i]['initialDelay']);
}
}
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:13,代码来源:Pdin.php
示例11: getHeapSize
/**
* Returns the box heap size in bytes.
*
* @return integer
*/
public function getHeapSize()
{
return parent::getHeapSize() + 4 + count($this->_chunkOffsetTable) * 8;
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:9,代码来源:Co64.php
示例12: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeUInt32BE($this->_trackId)->writeUInt32BE($this->_defaultSampleDescriptionIndex)->writeUInt32BE($this->_defaultSampleDuration)->writeUInt32BE($this->_defaultSampleSize)->writeUInt32BE($this->_defaultSampleFlags);
}
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:11,代码来源:Trex.php
示例13: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
if ($this->getVersion() == 1) {
$writer->writeInt64BE($this->_creationTime)->writeInt64BE($this->_modificationTime)->writeUInt32BE($this->_timescale)->writeInt64BE($this->_duration);
} else {
$writer->writeUInt32BE($this->_creationTime)->writeUInt32BE($this->_modificationTime)->writeUInt32BE($this->_timescale)->writeUInt32BE($this->_duration);
}
$writer->writeUInt16BE(ord($this->_language[0]) - 0x60 << 10 | ord($this->_language[1]) - 0x60 << 5 | ord($this->_language[2]) - 0x60)->write(str_pad('', 2, ""));
}
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:16,代码来源:Mdhd.php
示例14: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeUInt32BE($this->_parentSize);
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:11,代码来源:Mfro.php
示例15: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$lengthSizes = $this->_getLengthSizes();
$writer->writeUInt32BE($this->_trackId)->writeUInt32BE($lengthSizes['trafNum'] << 4 | $lengthSizes['trunNum'] << 2 | $lengthSizes['sampleNum'])->writeUInt32BE($entryCount = count($this->_entries));
for ($i = 0; $i < $entryCount; $i++) {
if ($this->getVersion() == 1) {
$writer->writeInt64BE($this->_entries[$i]['time'])->writeInt64BE($this->_entries[$i]['mediaTime']);
} else {
$writer->writeUInt32BE($this->_entries[$i]['time'])->writeInt32BE($this->_entries[$i]['moofOffset']);
}
switch ($lengthSizes['trafNum']) {
case 0:
$writer->writeUInt8($this->_entries[$i]['trafNumber']);
break;
case 1:
$writer->writeUInt16BE($this->_entries[$i]['trafNumber']);
break;
case 2:
$writer->writeUInt32BE($this->_entries[$i]['trafNumber']);
break;
case 3:
$writer->writeInt64BE($this->_entries[$i]['trafNumber']);
break;
}
switch ($lengthSizes['trunNum']) {
case 0:
$writer->writeUInt8($this->_entries[$i]['trunNumber']);
break;
case 1:
$writer->writeUInt16BE($this->_entries[$i]['trunNumber']);
break;
case 2:
$writer->writeUInt32BE($this->_entries[$i]['trunNumber']);
break;
case 3:
$writer->writeInt64BE($this->_entries[$i]['trunNumber']);
break;
}
switch ($lengthSizes['sampleNum']) {
case 0:
$writer->writeUInt8($this->_entries[$i]['sampleNumber']);
break;
case 1:
$writer->writeUInt16BE($this->_entries[$i]['sampleNumber']);
break;
case 2:
$writer->writeUInt32BE($this->_entries[$i]['sampleNumber']);
break;
case 3:
$writer->writeInt64BE($this->_entries[$i]['sampleNumber']);
break;
}
}
}
开发者ID:google-code-backups,项目名称:php-reader,代码行数:61,代码来源:Tfra.php
示例16: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeUInt16BE(ord($this->_language[0]) - 0x60 << 10 | ord($this->_language[1]) - 0x60 << 5 | ord($this->_language[2]) - 0x60)->writeString8($this->_notice, 1);
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:11,代码来源:Cprt.php
示例17: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
if ($this->getVersion() == 1) {
$writer->writeInt64BE($this->_creationTime)->writeInt64BE($this->_modificationTime)->writeUInt32BE($this->_trackId)->writeUInt32BE(0)->writeInt64BE($this->_duration);
} else {
$writer->writeUInt32BE($this->_creationTime)->writeUInt32BE($this->_modificationTime)->writeUInt32BE($this->_trackId)->writeUInt32BE(0)->writeUInt32BE($this->_duration);
}
@(list(, $volumeDecimals) = explode('.', (double) $this->_volume));
$writer->write(str_pad('', 8, ""))->writeInt16BE($this->_layer)->writeInt16BE($this->_alternateGroup)->writeUInt16BE(floor($this->_volume) << 8 | $volumeDecimals)->write(str_pad('', 2, ""));
for ($i = 0; $i < 9; $i++) {
$writer->writeUInt32BE($this->_matrix[$i]);
}
@(list(, $widthDecimals) = explode('.', (double) $this->_width));
@(list(, $heightDecimals) = explode('.', (double) $this->_height));
$writer->writeUInt32BE(floor($this->_width) << 16 | $widthDecimals)->writeUInt32BE(floor($this->_height) << 16 | $heightDecimals);
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:23,代码来源:Tkhd.php
示例18: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
if ($this->getVersion() == 1) {
$writer->writeInt64BE($this->_creationTime)->writeInt64BE($this->_modificationTime)->writeUInt32BE($this->_timescale)->writeInt64BE($this->_duration);
} else {
$writer->writeUInt32BE($this->_creationTime)->writeUInt32BE($this->_modificationTime)->writeUInt32BE($this->_timescale)->writeUInt32BE($this->_duration);
}
@(list(, $rateDecimals) = explode('.', (double) $this->_rate));
@(list(, $volumeDecimals) = explode('.', (double) $this->_volume));
$writer->writeUInt32BE(floor($this->_rate) << 16 | $rateDecimals)->writeUInt16BE(floor($this->_volume) << 8 | $volumeDecimals)->write(str_pad('', 10, ""));
for ($i = 0; $i < 9; $i++) {
$writer->writeUInt32BE($this->_matrix[$i]);
}
$writer->write(str_pad('', 24, ""))->writeUInt32BE($this->_nextTrackId);
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:22,代码来源:Mvhd.php
示例19: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeUInt32BE($entryCount = count($this->_entries));
for ($i = 0; $i < $entryCount; $i++) {
if ($this->getVersion() == 1) {
$writer->writeInt64BE($this->_entries[$i]['segmentDuration'])->writeInt64BE($this->_entries[$i]['mediaTime']);
} else {
$writer->writeUInt32BE($this->_entries[$i]['segmentDuration'])->writeInt32BE($this->_entries[$i]['mediaTime']);
}
@(list($mediaRateInteger, $mediaRateFraction) = explode('.', (double) $this->_entries[$i]['mediaRate']));
$writer->writeInt16BE($mediaRateInteger)->writeInt16BE($mediaRateFraction);
}
}
开发者ID:jreinert,项目名称:RuneUI,代码行数:20,代码来源:Elst.php
示例20: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeUInt16BE($this->_itemId)->writeUInt16BE($this->_itemProtectionIndex)->writeString8($this->_itemName, 1)->writeString8($this->_contentType, 1)->writeString8($this->_contentEncoding, 1);
}
开发者ID:jreinert,项目名称:RuneUI,代码行数:11,代码来源:Infe.php
注:本文中的Zend_Media_Iso14496_FullBox类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论