@@ -1617,6 +1617,9 @@ |
||
| 1617 | 1617 | |
| 1618 | 1618 | |
| 1619 | 1619 | |
| 1620 | + /** |
|
| 1621 | + * @param string $guid_string |
|
| 1622 | + */ |
|
| 1620 | 1623 | public static function GUIDname($guid_string) { |
| 1621 | 1624 | |
| 1622 | 1625 | static $lookup = array ( |
@@ -273,6 +273,9 @@ discard block |
||
| 273 | 273 | public $pos; |
| 274 | 274 | |
| 275 | 275 | |
| 276 | + /** |
|
| 277 | + * @param string $bytes |
|
| 278 | + */ |
|
| 276 | 279 | public function AMFStream($bytes) { |
| 277 | 280 | |
| 278 | 281 | $this->bytes = $bytes; |
@@ -386,6 +389,9 @@ discard block |
||
| 386 | 389 | { |
| 387 | 390 | public $stream; |
| 388 | 391 | |
| 392 | + /** |
|
| 393 | + * @param AMFStream $stream |
|
| 394 | + */ |
|
| 389 | 395 | public function __construct($stream) { |
| 390 | 396 | |
| 391 | 397 | $this->stream = $stream; |
@@ -176,6 +176,11 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | |
| 178 | 178 | |
| 179 | + /** |
|
| 180 | + * @param string $atom_name |
|
| 181 | + * @param string $atom_data |
|
| 182 | + * @param double $base_offset |
|
| 183 | + */ |
|
| 179 | 184 | private function QuicktimeParseAtom($atom_name, $atom_size, $atom_data, $base_offset, &$atom_hierarchy) { |
| 180 | 185 | |
| 181 | 186 | // http://developer.apple.com/techpubs/quicktime/qtdevdocs/APIREF/INDEX/atomalphaindex.htm |
@@ -1147,6 +1152,9 @@ discard block |
||
| 1147 | 1152 | |
| 1148 | 1153 | |
| 1149 | 1154 | |
| 1155 | + /** |
|
| 1156 | + * @param integer $base_offset |
|
| 1157 | + */ |
|
| 1150 | 1158 | private function QuicktimeParseContainerAtom($atom_data, $base_offset, &$atom_hierarchy) { |
| 1151 | 1159 | |
| 1152 | 1160 | if ((strlen($atom_data) == 4) && (getid3_lib::BigEndian2Int($atom_data) == 0x00000000)) { |
@@ -1492,6 +1500,9 @@ discard block |
||
| 1492 | 1500 | |
| 1493 | 1501 | |
| 1494 | 1502 | |
| 1503 | + /** |
|
| 1504 | + * @param string $null_terminated_string |
|
| 1505 | + */ |
|
| 1495 | 1506 | public static function NoNullString($null_terminated_string) { |
| 1496 | 1507 | |
| 1497 | 1508 | // remove the single null terminator on null terminated strings |
@@ -1504,6 +1515,9 @@ discard block |
||
| 1504 | 1515 | |
| 1505 | 1516 | |
| 1506 | 1517 | |
| 1518 | + /** |
|
| 1519 | + * @param string $raw_data |
|
| 1520 | + */ |
|
| 1507 | 1521 | public static function FixedPoint8_8($raw_data) { |
| 1508 | 1522 | |
| 1509 | 1523 | return getid3_lib::BigEndian2Int($raw_data{0}) + (float)(getid3_lib::BigEndian2Int($raw_data{1}) / 256); |
@@ -1511,6 +1525,9 @@ discard block |
||
| 1511 | 1525 | |
| 1512 | 1526 | |
| 1513 | 1527 | |
| 1528 | + /** |
|
| 1529 | + * @param string $raw_data |
|
| 1530 | + */ |
|
| 1514 | 1531 | public static function FixedPoint16_16($raw_data) { |
| 1515 | 1532 | |
| 1516 | 1533 | return getid3_lib::BigEndian2Int(substr($raw_data, 0, 2)) + (float)(getid3_lib::BigEndian2Int(substr($raw_data, 2, 2)) / 65536); |
@@ -1518,6 +1535,9 @@ discard block |
||
| 1518 | 1535 | |
| 1519 | 1536 | |
| 1520 | 1537 | |
| 1538 | + /** |
|
| 1539 | + * @param string $raw_data |
|
| 1540 | + */ |
|
| 1521 | 1541 | public static function FixedPoint2_30($raw_data) { |
| 1522 | 1542 | |
| 1523 | 1543 | $binary_string = getid3_lib::BigEndian2Bin($raw_data); |
@@ -401,6 +401,9 @@ |
||
| 401 | 401 | |
| 402 | 402 | |
| 403 | 403 | |
| 404 | + /** |
|
| 405 | + * @param string $old_ra_header_data |
|
| 406 | + */ |
|
| 404 | 407 | public static function ParseOldRAheader($old_ra_header_data, &$parsed_array) { |
| 405 | 408 | |
| 406 | 409 | // http://www.freelists.org/archives/matroska-devel/07-2003/msg00010.html |
@@ -1155,6 +1155,9 @@ discard block |
||
| 1155 | 1155 | |
| 1156 | 1156 | |
| 1157 | 1157 | |
| 1158 | + /** |
|
| 1159 | + * @param integer $start_offset |
|
| 1160 | + */ |
|
| 1158 | 1161 | public function ParseRIFF($start_offset, $max_offset) { |
| 1159 | 1162 | |
| 1160 | 1163 | $getid3 = $this->getid3; |
@@ -1479,6 +1482,9 @@ discard block |
||
| 1479 | 1482 | |
| 1480 | 1483 | |
| 1481 | 1484 | |
| 1485 | + /** |
|
| 1486 | + * @param string $wavpack3_chunk_data |
|
| 1487 | + */ |
|
| 1482 | 1488 | private function RIFFparseWavPackHeader($wavpack3_chunk_data) { |
| 1483 | 1489 | |
| 1484 | 1490 | // typedef struct { |
@@ -2240,6 +2246,9 @@ discard block |
||
| 2240 | 2246 | |
| 2241 | 2247 | |
| 2242 | 2248 | |
| 2249 | + /** |
|
| 2250 | + * @param string $byte_word |
|
| 2251 | + */ |
|
| 2243 | 2252 | function BigEndian2Float($byte_word) { |
| 2244 | 2253 | |
| 2245 | 2254 | // ANSI/IEEE Standard 754-1985, Standard for Binary Floating Point Arithmetic |
@@ -232,6 +232,9 @@ |
||
| 232 | 232 | |
| 233 | 233 | |
| 234 | 234 | |
| 235 | + /** |
|
| 236 | + * @param string $bin_string |
|
| 237 | + */ |
|
| 235 | 238 | public static function Bin2String($bin_string) { |
| 236 | 239 | // return 'hi' for input of '0110100001101001' |
| 237 | 240 | $string = ''; |
@@ -350,6 +350,9 @@ |
||
| 350 | 350 | |
| 351 | 351 | |
| 352 | 352 | |
| 353 | + /** |
|
| 354 | + * @param boolean $lfeon |
|
| 355 | + */ |
|
| 353 | 356 | public static function AC3channelsEnabledLookup($acmod, $lfeon) { |
| 354 | 357 | |
| 355 | 358 | return array ( |
@@ -119,6 +119,9 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | |
| 122 | + /** |
|
| 123 | + * @param string $bonk_tag_name |
|
| 124 | + */ |
|
| 122 | 125 | private function HandleBonkTags(&$bonk_tag_name) { |
| 123 | 126 | |
| 124 | 127 | // Shortcut to getid3 pointer |
@@ -223,6 +226,9 @@ discard block |
||
| 223 | 226 | |
| 224 | 227 | |
| 225 | 228 | |
| 229 | + /** |
|
| 230 | + * @param string $possible_bonk_tag |
|
| 231 | + */ |
|
| 226 | 232 | public static function BonkIsValidTagName($possible_bonk_tag, $ignore_case=false) { |
| 227 | 233 | |
| 228 | 234 | $ignore_case = $ignore_case ? 'i' : ''; |
@@ -351,6 +351,9 @@ discard block |
||
| 351 | 351 | |
| 352 | 352 | |
| 353 | 353 | |
| 354 | + /** |
|
| 355 | + * @param integer $instrument_id |
|
| 356 | + */ |
|
| 354 | 357 | public static function GeneralMIDIinstrumentLookup($instrument_id) { |
| 355 | 358 | |
| 356 | 359 | static $lookup = array ( |
@@ -490,6 +493,9 @@ discard block |
||
| 490 | 493 | |
| 491 | 494 | |
| 492 | 495 | |
| 496 | + /** |
|
| 497 | + * @param integer $instrument_id |
|
| 498 | + */ |
|
| 493 | 499 | public static function GeneralMIDIpercussionLookup($instrument_id) { |
| 494 | 500 | |
| 495 | 501 | static $lookup = array ( |