本文整理汇总了PHP中Zend_Media_Iso14496_FullBox::_writeData方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Media_Iso14496_FullBox::_writeData方法的具体用法?PHP Zend_Media_Iso14496_FullBox::_writeData怎么用?PHP Zend_Media_Iso14496_FullBox::_writeData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Media_Iso14496_FullBox
的用法示例。
在下文中一共展示了Zend_Media_Iso14496_FullBox::_writeData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeString8($this->_name, 1)->write($this->_location);
}
示例2: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->writeUInt24BE($this->_defaultEncryption)->writeUInt8($this->_defaultIVSize)->write($this->_defaultKID);
}
示例3: _writeData
/**
* Writes the box data.
*
* @param Zend_Io_Writer $writer The writer object.
* @return void
*/
protected function _writeData($writer)
{
parent::_writeData($writer);
$writer->write($this->_location);
}
示例4: _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->_chunkOffsetTable));
for ($i = 1; $i <= $entryCount; $i++) {
$writer->writeUInt32BE($this->_chunkOffsetTable[$i]);
}
}
示例5: _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->_fragmentDuration);
} else {
$writer->writeUInt32BE($this->_fragmentDuration);
}
}
示例6: _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);
}
示例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->_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);
}
}
示例8: _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']);
}
}
示例9: _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']);
}
}
示例10: _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, ""));
}
示例11: _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);
}
示例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->_parentSize);
}
示例13: _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']);
}
}
示例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->_groupingType);
$writer->writeUInt32BE($entryCount = count($this->_sampleToGroupTable));
for ($i = 1; $i <= $entryCount; $i++) {
$writer->writeUInt32BE($this->_sampleToGroupTable[$i]['sampleCount'])->writeUInt32BE($this->_sampleToGroupTable[$i]['groupDescriptionIndex']);
}
}
示例15: _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->_sequenceNumber);
}