@@ -502,6 +502,9 @@ |
||
502 | 502 | return true; |
503 | 503 | } |
504 | 504 | |
505 | + /** |
|
506 | + * @param integer $bits_to_read |
|
507 | + */ |
|
505 | 508 | private function readBitsFromStream(&$bitstream, &$bitstreamoffset, $bits_to_read, $return_singlebit_as_boolean=true) { |
506 | 509 | $return = bindec(substr($bitstream, $bitstreamoffset, $bits_to_read)); |
507 | 510 | $bitstreamoffset += $bits_to_read; |
@@ -132,6 +132,9 @@ |
||
132 | 132 | return true; |
133 | 133 | } |
134 | 134 | |
135 | + /** |
|
136 | + * @param integer $fileoffset |
|
137 | + */ |
|
135 | 138 | public function getNSVfHeaderFilepointer($fileoffset, $getTOCoffsets=false) { |
136 | 139 | $info = &$this->getid3->info; |
137 | 140 | $this->fseek($fileoffset); |
@@ -371,6 +371,9 @@ |
||
371 | 371 | } |
372 | 372 | |
373 | 373 | |
374 | + /** |
|
375 | + * @param string $OldRAheaderData |
|
376 | + */ |
|
374 | 377 | public function ParseOldRAheader($OldRAheaderData, &$ParsedArray) { |
375 | 378 | // http://www.freelists.org/archives/matroska-devel/07-2003/msg00010.html |
376 | 379 |
@@ -1329,6 +1329,9 @@ discard block |
||
1329 | 1329 | return true; |
1330 | 1330 | } |
1331 | 1331 | |
1332 | + /** |
|
1333 | + * @param double $startoffset |
|
1334 | + */ |
|
1332 | 1335 | public function ParseRIFFAMV($startoffset, $maxoffset) { |
1333 | 1336 | // AMV files are RIFF-AVI files with parts of the spec deliberately broken, such as chunk size fields hardcoded to zero (because players known in hardware that these fields are always a certain size |
1334 | 1337 | |
@@ -1845,6 +1848,9 @@ discard block |
||
1845 | 1848 | return $WaveFormatEx; |
1846 | 1849 | } |
1847 | 1850 | |
1851 | + /** |
|
1852 | + * @param string $WavPackChunkData |
|
1853 | + */ |
|
1848 | 1854 | public function parseWavPackHeader($WavPackChunkData) { |
1849 | 1855 | // typedef struct { |
1850 | 1856 | // char ckID [4]; |
@@ -1925,6 +1931,9 @@ discard block |
||
1925 | 1931 | return $parsed; |
1926 | 1932 | } |
1927 | 1933 | |
1934 | + /** |
|
1935 | + * @param string $DIVXTAG |
|
1936 | + */ |
|
1928 | 1937 | public static function ParseDIVXTAG($DIVXTAG, $raw=false) { |
1929 | 1938 | // structure from "IDivX" source, Form1.frm, by "Greg Frazier of Daemonic Software Group", email: [email protected], web: http://dsg.cjb.net/ |
1930 | 1939 | // source available at http://files.divx-digest.com/download/c663efe7ef8ad2e90bf4af4d3ea6188a/on0SWN2r/edit/IDivX.zip |
@@ -1999,6 +2008,9 @@ discard block |
||
1999 | 2008 | return $parsed; |
2000 | 2009 | } |
2001 | 2010 | |
2011 | + /** |
|
2012 | + * @param string $tagshortname |
|
2013 | + */ |
|
2002 | 2014 | public static function waveSNDMtagLookup($tagshortname) { |
2003 | 2015 | $begin = __LINE__; |
2004 | 2016 | |
@@ -2585,6 +2597,9 @@ discard block |
||
2585 | 2597 | return getid3_lib::EmbeddedLookup($fourcc, $begin, __LINE__, __FILE__, 'riff-fourcc'); |
2586 | 2598 | } |
2587 | 2599 | |
2600 | + /** |
|
2601 | + * @param string $byteword |
|
2602 | + */ |
|
2588 | 2603 | private function EitherEndian2Int($byteword, $signed=false) { |
2589 | 2604 | if ($this->container == 'riff') { |
2590 | 2605 | return getid3_lib::LittleEndian2Int($byteword, $signed); |
@@ -139,6 +139,10 @@ |
||
139 | 139 | return true; |
140 | 140 | } |
141 | 141 | |
142 | + /** |
|
143 | + * @param string $bin |
|
144 | + * @param integer $length |
|
145 | + */ |
|
142 | 146 | private function readBinData($bin, $length) { |
143 | 147 | $data = substr($bin, $this->readBinDataOffset, $length); |
144 | 148 | $this->readBinDataOffset += $length; |
@@ -329,6 +329,9 @@ discard block |
||
329 | 329 | return true; |
330 | 330 | } |
331 | 331 | |
332 | + /** |
|
333 | + * @param integer $instrumentid |
|
334 | + */ |
|
332 | 335 | public function GeneralMIDIinstrumentLookup($instrumentid) { |
333 | 336 | |
334 | 337 | $begin = __LINE__; |
@@ -469,6 +472,9 @@ discard block |
||
469 | 472 | return getid3_lib::EmbeddedLookup($instrumentid, $begin, __LINE__, __FILE__, 'GeneralMIDIinstrument'); |
470 | 473 | } |
471 | 474 | |
475 | + /** |
|
476 | + * @param integer $instrumentid |
|
477 | + */ |
|
472 | 478 | public function GeneralMIDIpercussionLookup($instrumentid) { |
473 | 479 | |
474 | 480 | $begin = __LINE__; |
@@ -1082,6 +1082,9 @@ discard block |
||
1082 | 1082 | return true; |
1083 | 1083 | } |
1084 | 1084 | |
1085 | + /** |
|
1086 | + * @param boolean $ScanAsCBR |
|
1087 | + */ |
|
1085 | 1088 | public function RecursiveFrameScanning(&$offset, &$nextframetestoffset, $ScanAsCBR) { |
1086 | 1089 | $info = &$this->getid3->info; |
1087 | 1090 | $firstframetestarray = array('error' => array(), 'warning'=> array(), 'avdataend' => $info['avdataend'], 'avdataoffset' => $info['avdataoffset']); |
@@ -1696,6 +1699,9 @@ discard block |
||
1696 | 1699 | return $MPEGaudioEmphasis; |
1697 | 1700 | } |
1698 | 1701 | |
1702 | + /** |
|
1703 | + * @param string $head4 |
|
1704 | + */ |
|
1699 | 1705 | public static function MPEGaudioHeaderBytesValid($head4, $allowBitrate15=false) { |
1700 | 1706 | return self::MPEGaudioHeaderValid(self::MPEGaudioHeaderDecode($head4), false, $allowBitrate15); |
1701 | 1707 | } |
@@ -1946,6 +1952,9 @@ discard block |
||
1946 | 1952 | return (isset($LAMEmiscStereoModeLookup[$StereoModeID]) ? $LAMEmiscStereoModeLookup[$StereoModeID] : ''); |
1947 | 1953 | } |
1948 | 1954 | |
1955 | + /** |
|
1956 | + * @param integer $SourceSampleFrequencyID |
|
1957 | + */ |
|
1949 | 1958 | public static function LAMEmiscSourceSampleFrequencyLookup($SourceSampleFrequencyID) { |
1950 | 1959 | static $LAMEmiscSourceSampleFrequencyLookup = array( |
1951 | 1960 | 0 => '<= 32 kHz', |
@@ -464,6 +464,10 @@ discard block |
||
464 | 464 | return number_format($encoderversion / 100, 2).' alpha'; |
465 | 465 | } |
466 | 466 | |
467 | + /** |
|
468 | + * @param string $data |
|
469 | + * @param integer $packetLength |
|
470 | + */ |
|
467 | 471 | public function SV8variableLengthInteger($data, &$packetLength, $maxHandledPacketLength=9) { |
468 | 472 | $packet_size = 0; |
469 | 473 | for ($packetLength = 1; $packetLength <= $maxHandledPacketLength; $packetLength++) { |
@@ -488,6 +492,9 @@ discard block |
||
488 | 492 | return $packet_size; |
489 | 493 | } |
490 | 494 | |
495 | + /** |
|
496 | + * @param string $packetKey |
|
497 | + */ |
|
491 | 498 | public function MPCsv8PacketName($packetKey) { |
492 | 499 | static $MPCsv8PacketName = array(); |
493 | 500 | if (empty($MPCsv8PacketName)) { |
@@ -427,6 +427,11 @@ |
||
427 | 427 | } |
428 | 428 | |
429 | 429 | // http://tools.ietf.org/html/draft-ietf-codec-oggopus-03 |
430 | + |
|
431 | + /** |
|
432 | + * @param string $filedata |
|
433 | + * @param integer $filedataoffset |
|
434 | + */ |
|
430 | 435 | public function ParseOpusPageHeader(&$filedata, &$filedataoffset, &$oggpageinfo) { |
431 | 436 | $info = &$this->getid3->info; |
432 | 437 | $info['audio']['dataformat'] = 'opus'; |