當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Media_Iso14496_FullBox類代碼示例

本文整理匯總了PHP中Zend_Media_Iso14496_FullBox的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Media_Iso14496_FullBox類的具體用法?PHP Zend_Media_Iso14496_FullBox怎麽用?PHP Zend_Media_Iso14496_FullBox使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Zend_Media_Iso14496_FullBox類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的Zend_Media_Iso14496_FullBox類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。