当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Media_Iso14496_Box::__construct方法代码示例

本文整理汇总了PHP中Zend_Media_Iso14496_Box::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Media_Iso14496_Box::__construct方法的具体用法?PHP Zend_Media_Iso14496_Box::__construct怎么用?PHP Zend_Media_Iso14496_Box::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Media_Iso14496_Box的用法示例。


在下文中一共展示了Zend_Media_Iso14496_Box::__construct方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
     while ($this->_reader->getOffset <= $this->getSize()) {
         $this->_trackId[] = $this->_reader->readUInt32BE();
     }
 }
开发者ID:adam-fonseca,项目名称:RuneUI,代码行数:14,代码来源:Hint.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 = null, &$options = array())
 {
     parent::__construct($reader, $options);
     $this->setContainer(true);
     if ($reader === null) {
         return;
     }
     $this->constructBoxes();
 }
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:16,代码来源:Moov.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.
  */
 public function __construct($reader = null, &$options = array())
 {
     parent::__construct($reader, $options);
     if ($reader === null) {
         return;
     }
     $this->_version = ($field = $this->_reader->readUInt32BE()) >> 24 & 0xff;
     $this->_flags = $field & 0xffffff;
 }
开发者ID:google-code-backups,项目名称:php-reader,代码行数:15,代码来源:FullBox.php

示例4: __construct

 /**
  * Constructs the class with given parameters.
  *
  * @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);
 }
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:10,代码来源:Free.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, &$options = array())
 {
     parent::__construct($reader, $options);
     $this->_dataFormat = $this->_reader->read(4);
 }
开发者ID:google-code-backups,项目名称:php-reader,代码行数:12,代码来源:Frma.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, &$options = array())
 {
     parent::__construct($reader, $options);
     $this->_majorBrand = $this->_reader->readString8(4);
     $this->_minorVersion = $this->_reader->readUInt32BE();
     while ($this->_reader->getOffset() < $this->getSize()) {
         if (($brand = $this->_reader->readString8(4)) != '') {
             $this->_compatibleBrands[] = $brand;
         }
     }
 }
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:18,代码来源:Ftyp.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);
     $offsetSize = ($tmp = $this->_reader->readUInt16BE()) >> 12 & 0xf;
     $lengthSize = $tmp >> 8 & 0xf;
     $baseOffsetSize = $tmp >> 4 & 0xf;
     $itemCount = $this->_reader->readUInt16BE();
     for ($i = 0; $i < $itemCount; $i++) {
         $item = array();
         $item['itemId'] = $this->_reader->readUInt16BE();
         $item['dataReferenceIndex'] = $this->_reader->readUInt16BE();
         $item['baseOffset'] = $baseOffsetSize == 4 ? $this->_reader->readUInt32BE() : ($baseOffsetSize == 8 ? $this->_reader->readInt64BE() : 0);
         $extentCount = $this->_reader->readUInt16BE();
         $item['extents'] = array();
         for ($j = 0; $j < $extentCount; $j++) {
             $extent = array();
             $extent['offset'] = $offsetSize == 4 ? $this->_reader->readUInt32BE() : ($offsetSize == 8 ? $this->_reader->readInt64BE() : 0);
             $extent['length'] = $lengthSize == 4 ? $this->_reader->readUInt32BE() : ($lengthSize == 8 ? $this->_reader->readInt64BE() : 0);
             $item['extents'][] = $extent;
         }
         $this->_items[] = $item;
     }
 }
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:30,代码来源:Iloc.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 = null, &$options = array())
 {
     parent::__construct(is_string($reader) ? null : $reader, $options);
     $this->setContainer(true);
     if (is_string($reader)) {
         $this->setType($reader);
         $this->addBox(new Zend_Media_Iso14496_Box_Data());
     } else {
         $this->constructBoxes();
     }
 }
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:18,代码来源:Ilst.php


注:本文中的Zend_Media_Iso14496_Box::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。