readData example

$numOfSequenceParameterSets = getid3_lib::BigEndian2Int(substr($FLVvideoHeader,  8, 1));

                                if (($numOfSequenceParameterSets & 0x1F) != 0) {
                                    // there is at least one SequenceParameterSet                                     // read size of the first SequenceParameterSet                                     //$spsSize = getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 9, 2));                                     $spsSize = getid3_lib::LittleEndian2Int(substr($FLVvideoHeader, 9, 2));
                                    // read the first SequenceParameterSet                                     $sps = $this->fread($spsSize);
                                    if (strlen($sps) == $spsSize) {    // make sure that whole SequenceParameterSet was red                                         $spsReader = new AVCSequenceParameterSetReader($sps);
                                        $spsReader->readData();
                                        $info['video']['resolution_x'] = $spsReader->getWidth();
                                        $info['video']['resolution_y'] = $spsReader->getHeight();
                                    }
                                }
                            }
                            // end: moysevichØgmail*com
                        } elseif ($info['flv']['video']['videoCodec'] == GETID3_FLV_VIDEO_H263) {

                            $PictureSizeType = (getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 3, 2))) >> 7;
                            $PictureSizeType = $PictureSizeType & 0x0007;
                            
/** * Load data from cache or database */
    protected function load()
    {
        if ($this->_cache !== null) {
            $cacheId = CacheManager::ITEM_TAG_CONFIG;
            if ($this->_shop !== null) {
                $cacheId .= '_' . $this->_shop->getId();
            }
            if (($this->_data = $this->_cache->load($cacheId)) === false) {
                $this->_data = $this->readData();
                $this->_cache->save(
                    $this->_data,
                    $cacheId,
                    $this->_cacheTags,
                    $this->_cacheTime
                );
            }
        } else {
            $this->_data = $this->readData();
        }
    }

    
Home | Imprint | This part of the site doesn't use cookies.