protected function readContent() { $this->version = pReadInt8($this->mp4->readP); $this->flags = pReadInt24($this->mp4->readP); if ($this->version == 0) { $this->creationTime = pReadInt32($this->mp4->readP); $this->modificationTime = pReadInt32($this->mp4->readP); $this->trackId = pReadInt32($this->mp4->readP); $this->reserved1 = pReadInt32($this->mp4->readP); $this->duration = pReadInt32($this->mp4->readP); } else { $this->creationTime = pReadInt64($this->mp4->readP); $this->modificationTime = pReadInt64($this->mp4->readP); $this->trackId = pReadInt32($this->mp4->readP); $this->reserved1 = pReadInt32($this->mp4->readP); $this->duration = pReadInt64($this->mp4->readP); } $this->reserved2 = pReadInt32($this->mp4->readP); $this->reserved3 = pReadInt32($this->mp4->readP); $this->layer = pReadInt16($this->mp4->readP); $this->predefined = pReadInt16($this->mp4->readP); $this->volume = pReadSI16($this->mp4->readP); $this->reserved4 = pReadInt16($this->mp4->readP); for ($i = 0; $i < 9; $i++) { $this->matrix[] = pReadInt32($this->mp4->readP); } $this->width = pReadSI32($this->mp4->readP); $this->height = pReadSI32($this->mp4->readP); }
protected function readContent() { $this->version = pReadInt8($this->mp4->readP); $this->flags = pReadInt24($this->mp4->readP); if ($this->version == 0) { $this->creationTime = pReadInt32($this->mp4->readP); $this->modificationTime = pReadInt32($this->mp4->readP); $this->timeScale = pReadInt32($this->mp4->readP); $this->duration = pReadInt32($this->mp4->readP); } else { $this->creationTime = pReadInt64($this->mp4->readP); $this->modificationTime = pReadInt64($this->mp4->readP); $this->timeScale = pReadInt32($this->mp4->readP); $this->duration = pReadInt64($this->mp4->readP); } $this->rate = pReadSI32($this->mp4->readP); $this->volume = pReadSI16($this->mp4->readP); $this->reserved1 = pReadInt16($this->mp4->readP); $this->reserved2 = pReadInt32($this->mp4->readP); $this->reserved3 = pReadInt32($this->mp4->readP); for ($i = 0; $i < 9; $i++) { $this->matrix[] = pReadInt32($this->mp4->readP); } for ($i = 0; $i < 6; $i++) { $this->predefined[] = pReadInt32($this->mp4->readP); } $this->nextTrackId = pReadInt32($this->mp4->readP); }
protected function readContent() { $this->version = pReadInt8($this->mp4->readP); $this->flags = pReadInt24($this->mp4->readP); $this->count = pReadInt32($this->mp4->readP); for ($i = 0; $i < $this->count; $i++) { $this->entries[] = new Mp4Box_stts_entry(pReadInt32($this->mp4->readP), pReadInt32($this->mp4->readP)); } }
protected function readContent() { $this->version = pReadInt8($this->mp4->readP); $this->flags = pReadInt24($this->mp4->readP); $this->count = pReadInt32($this->mp4->readP); for ($i = 0; $i < $this->count; $i++) { $this->sampleNumbers[] = pReadInt32($this->mp4->readP); } }
protected function readContent() { $this->version = pReadInt8($this->mp4->readP); $this->flags = pReadInt24($this->mp4->readP); $this->count = pReadInt32($this->mp4->readP); for ($i = 0; $i < $this->count; $i++) { $entry = new Mp4Box_stsd_entry(pReadInt32($this->mp4->readP) - 8, pReadInt32($this->mp4->readP)); $entry->buf = fread($this->mp4->readP, $entry->len); $this->entries[] = $entry; } }
protected function readContent() { $this->version = pReadInt8($this->mp4->readP); $this->flags = pReadInt24($this->mp4->readP); $this->count = pReadInt32($this->mp4->readP); for ($i = 0; $i < $this->count; $i++) { if ($this->boxInfo->type == "co64") { $this->entries[] = pReadInt64($this->mp4->readP); } else { $this->entries[] = pReadInt32($this->mp4->readP); } } }
protected function readContent() { $this->version = pReadInt8($this->mp4->readP); $this->flags = pReadInt24($this->mp4->readP); if ($this->version == 0) { $this->creationTime = pReadInt32($this->mp4->readP); $this->modificationTime = pReadInt32($this->mp4->readP); $this->timeScale = pReadInt32($this->mp4->readP); $this->duration = pReadInt32($this->mp4->readP); } else { $this->creationTime = pReadInt64($this->mp4->readP); $this->modificationTime = pReadInt64($this->mp4->readP); $this->timeScale = pReadInt32($this->mp4->readP); $this->duration = pReadInt64($this->mp4->readP); } $this->language = pReadInt16($this->mp4->readP); $this->predefined = pReadInt16($this->mp4->readP); }