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


PHP Zend_Media_Iso14496_FullBox::__construct方法代碼示例

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


在下文中一共展示了Zend_Media_Iso14496_FullBox::__construct方法的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, &$options = array())
 {
     parent::__construct($reader, $options);
     $this->_itemId = $this->_reader->readUInt16BE();
     $this->_itemProtectionIndex = $this->_reader->readUInt16BE();
     list($this->_itemName, $this->_contentType, $this->_contentEncoding) = preg_split("/\\x00/", $this->_reader->read($this->getOffset() + $this->getSize() - $this->_reader->getOffset()));
 }
開發者ID:jreinert,項目名稱:RuneUI,代碼行數:14,代碼來源:Infe.php

示例2: __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, &$options = array())
 {
     parent::__construct($reader, $options);
     while ($this->_reader->getOffset() < $this->getOffset() + $this->getSize()) {
         $this->_values[] = array('priority' => $this->_reader->readUInt16BE());
     }
 }
開發者ID:lokamaya,項目名稱:zend-mp3,代碼行數:14,代碼來源:Stdp.php

示例3: __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, &$options = array())
 {
     parent::__construct($reader, $options);
     while ($this->_reader->getOffset() < $this->getOffset() + $this->getSize()) {
         $this->_progressiveDownloadInfo[] = array('rate' => $this->_reader->readUInt32BE(), 'initialDelay' => $this->_reader->readUInt32BE());
     }
 }
開發者ID:andreiamfg,項目名稱:MobileWebHybrid,代碼行數:14,代碼來源:Pdin.php

示例4: __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, &$options = array())
 {
     parent::__construct($reader, $options);
     $entryCount = $this->_reader->readUInt32BE();
     for ($i = 1; $i <= $entryCount; $i++) {
         $this->_sampleToChunkTable[$i] = array('firstChunk' => $this->_reader->readUInt32BE(), 'samplesPerChunk' => $this->_reader->readUInt32BE(), 'sampleDescriptionIndex' => $this->_reader->readUInt32BE());
     }
 }
開發者ID:google-code-backups,項目名稱:php-reader,代碼行數:15,代碼來源:Stsc.php

示例5: __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);
     if ($reader === null) {
         return;
     }
     list($this->_name, $this->_location) = preg_split("/\\x00/", $this->_reader->read($this->getOffset() + $this->getSize() - $this->_reader->getOffset()));
 }
開發者ID:adam-fonseca,項目名稱:RuneUI,代碼行數:15,代碼來源:Urn.php

示例6: __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);
     if ($reader === null) {
         return;
     }
     $this->_location = $this->_reader->read($this->getOffset() + $this->getSize() - $this->_reader->getOffset());
 }
開發者ID:lokamaya,項目名稱:zend-mp3,代碼行數:15,代碼來源:Url.php

示例7: __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, &$options = array())
 {
     parent::__construct($reader, $options);
     $entryCount = $this->_reader->readUInt32BE();
     for ($i = 1; $i <= $entryCount; $i++) {
         $this->_compositionOffsetTable[$i] = array('sampleCount' => $this->_reader->readUInt32BE(), 'sampleOffset' => $this->_reader->readUInt32BE());
     }
 }
開發者ID:andreiamfg,項目名稱:MobileWebHybrid,代碼行數:15,代碼來源:Ctts.php

示例8: __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, &$options = array())
 {
     parent::__construct($reader, $options);
     $entryCount = $this->_reader->readUInt32BE();
     for ($i = 1; $i <= $entryCount; $i++) {
         $this->_chunkOffsetTable[$i] = $reader->readUInt32BE();
     }
 }
開發者ID:lokamaya,項目名稱:zend-mp3,代碼行數:15,代碼來源:Stco.php

示例9: __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, &$options = array())
 {
     parent::__construct($reader, $options);
     $this->_maxPDUSize = $this->_reader->readUInt16BE();
     $this->_avgPDUSize = $this->_reader->readUInt16BE();
     $this->_maxBitrate = $this->_reader->readUInt32BE();
     $this->_avgBitrate = $this->_reader->readUInt32BE();
 }
開發者ID:andreiamfg,項目名稱:MobileWebHybrid,代碼行數:15,代碼來源:Hmhd.php

示例10: __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, &$options = array())
 {
     parent::__construct($reader, $options);
     $this->_schemeType = $this->_reader->read(4);
     $this->_schemeVersion = $this->_reader->readUInt32BE();
     if ($this->hasFlag(1)) {
         $this->_schemeUri = preg_split("/\\x00/", $this->_reader->read($this->getOffset() + $this->getSize() - $this->_reader->getOffset()));
     }
 }
開發者ID:andreiamfg,項目名稱:MobileWebHybrid,代碼行數:16,代碼來源:Schm.php

示例11: __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, &$options = array())
 {
     parent::__construct($reader, $options);
     if ($this->getVersion() == 1) {
         $this->_fragmentDuration = $this->_reader->readInt64BE();
     } else {
         $this->_fragmentDuration = $this->_reader->readUInt32BE();
     }
 }
開發者ID:andreiamfg,項目名稱:MobileWebHybrid,代碼行數:16,代碼來源:Mehd.php

示例12: __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

示例13: __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, &$options = array())
 {
     parent::__construct($reader, $options);
     $groupingType = $this->_reader->readUInt32BE();
     $entryCount = $this->_reader->readUInt32BE();
     for ($i = 1; $i <= $entryCount; $i++) {
         $this->_sampleToGroupTable[$i] = array('sampleCount' => $this->_reader->readUInt32BE(), 'groupDescriptionIndex' => $this->_reader->readUInt32BE());
     }
 }
開發者ID:andreiamfg,項目名稱:MobileWebHybrid,代碼行數:16,代碼來源:Sbgp.php

示例14: __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);
     if ($reader === null) {
         return;
     }
     $this->_language = chr((($tmp = $this->_reader->readUInt16BE()) >> 10 & 0x1f) + 0x60) . chr(($tmp >> 5 & 0x1f) + 0x60) . chr(($tmp & 0x1f) + 0x60);
     $this->_tag = new Zend_Media_Id3v2($this->_reader, array('readonly' => true));
 }
開發者ID:jreinert,項目名稱:RuneUI,代碼行數:16,代碼來源:Id32.php

示例15: __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);
     if ($reader === null) {
         return;
     }
     $this->_balance = (($tmp = $this->_reader->readUInt16BE()) >> 8 & 0xff) + (double) ("0." . (string) ($tmp & 0xff));
     $this->_reader->skip(2);
 }
開發者ID:jreinert,項目名稱:RuneUI,代碼行數:16,代碼來源:Smhd.php


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