@@ -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'; |
@@ -369,6 +369,9 @@ |
||
369 | 369 | } |
370 | 370 | |
371 | 371 | |
372 | + /** |
|
373 | + * @param integer $id |
|
374 | + */ |
|
372 | 375 | public function WavPackMetablockNameLookup(&$id) { |
373 | 376 | static $WavPackMetablockNameLookup = array( |
374 | 377 | 0x00 => 'Dummy', |
@@ -208,6 +208,9 @@ |
||
208 | 208 | } |
209 | 209 | |
210 | 210 | |
211 | + /** |
|
212 | + * @param integer $iptc_tagkey |
|
213 | + */ |
|
211 | 214 | public function IPTCrecordTagName($iptc_record, $iptc_tagkey) { |
212 | 215 | // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/IPTC.html |
213 | 216 | static $IPTCrecordTagName = array(); |
@@ -99,6 +99,11 @@ |
||
99 | 99 | |
100 | 100 | } |
101 | 101 | |
102 | + /** |
|
103 | + * @param integer $Y |
|
104 | + * @param integer $Cb |
|
105 | + * @param integer $Cr |
|
106 | + */ |
|
102 | 107 | public function YCbCr2RGB($Y, $Cb, $Cr) { |
103 | 108 | static $YCbCr_constants = array(); |
104 | 109 | if (empty($YCbCr_constants)) { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * Parses a cue sheet file. |
56 | 56 | * |
57 | - * @param string $filename - The filename for the cue sheet to open. |
|
57 | + * @param string $filedata |
|
58 | 58 | */ |
59 | 59 | public function readCueSheet(&$filedata) |
60 | 60 | { |
@@ -261,6 +261,9 @@ discard block |
||
261 | 261 | } |
262 | 262 | } |
263 | 263 | |
264 | + /** |
|
265 | + * @param integer $track_on |
|
266 | + */ |
|
264 | 267 | public function parseString($line, $track_on) |
265 | 268 | { |
266 | 269 | $category = strtolower(substr($line, 0, strpos($line, ' '))); |
@@ -56,6 +56,9 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | |
59 | + /** |
|
60 | + * @param string $ISOheader |
|
61 | + */ |
|
59 | 62 | public function ParsePrimaryVolumeDescriptor(&$ISOheader) { |
60 | 63 | // ISO integer values are stored *BOTH* Little-Endian AND Big-Endian format!! |
61 | 64 | // ie 12345 == 0x3039 is stored as $39 $30 $30 $39 in a 4-byte field |
@@ -130,6 +133,9 @@ discard block |
||
130 | 133 | } |
131 | 134 | |
132 | 135 | |
136 | + /** |
|
137 | + * @param string $ISOheader |
|
138 | + */ |
|
133 | 139 | public function ParseSupplementaryVolumeDescriptor(&$ISOheader) { |
134 | 140 | // ISO integer values are stored Both-Endian format!! |
135 | 141 | // ie 12345 == 0x3039 is stored as $39 $30 $30 $39 in a 4-byte field |
@@ -366,6 +372,9 @@ discard block |
||
366 | 372 | return gmmktime($UNIXhour, $UNIXminute, $UNIXsecond, $UNIXmonth, $UNIXday, $UNIXyear); |
367 | 373 | } |
368 | 374 | |
375 | + /** |
|
376 | + * @param integer $BinaryValue |
|
377 | + */ |
|
369 | 378 | public function TwosCompliment2Decimal($BinaryValue) { |
370 | 379 | // http://sandbox.mc.edu/~bennet/cs110/tc/tctod.html |
371 | 380 | // First check if the number is negative or positive by looking at the sign bit. |
@@ -335,6 +335,9 @@ |
||
335 | 335 | return true; |
336 | 336 | } |
337 | 337 | |
338 | + /** |
|
339 | + * @param string $APEheaderFooterData |
|
340 | + */ |
|
338 | 341 | public function parseAPEheaderFooter($APEheaderFooterData) { |
339 | 342 | // http://www.uni-jena.de/~pfk/mpp/sv8/apeheader.html |
340 | 343 |
@@ -3082,6 +3082,9 @@ discard block |
||
3082 | 3082 | } |
3083 | 3083 | |
3084 | 3084 | |
3085 | + /** |
|
3086 | + * @param string $index |
|
3087 | + */ |
|
3085 | 3088 | public static function ETCOEventLookup($index) { |
3086 | 3089 | if (($index >= 0x17) && ($index <= 0xDF)) { |
3087 | 3090 | return 'reserved for future use'; |
@@ -3125,6 +3128,9 @@ discard block |
||
3125 | 3128 | return (isset($EventLookup[$index]) ? $EventLookup[$index] : ''); |
3126 | 3129 | } |
3127 | 3130 | |
3131 | + /** |
|
3132 | + * @param integer $index |
|
3133 | + */ |
|
3128 | 3134 | public static function SYTLContentTypeLookup($index) { |
3129 | 3135 | static $SYTLContentTypeLookup = array( |
3130 | 3136 | 0x00 => 'other', |
@@ -3141,6 +3147,9 @@ discard block |
||
3141 | 3147 | return (isset($SYTLContentTypeLookup[$index]) ? $SYTLContentTypeLookup[$index] : ''); |
3142 | 3148 | } |
3143 | 3149 | |
3150 | + /** |
|
3151 | + * @param integer $index |
|
3152 | + */ |
|
3144 | 3153 | public static function APICPictureTypeLookup($index, $returnarray=false) { |
3145 | 3154 | static $APICPictureTypeLookup = array( |
3146 | 3155 | 0x00 => 'Other', |
@@ -3171,6 +3180,9 @@ discard block |
||
3171 | 3180 | return (isset($APICPictureTypeLookup[$index]) ? $APICPictureTypeLookup[$index] : ''); |
3172 | 3181 | } |
3173 | 3182 | |
3183 | + /** |
|
3184 | + * @param integer $index |
|
3185 | + */ |
|
3174 | 3186 | public static function COMRReceivedAsLookup($index) { |
3175 | 3187 | static $COMRReceivedAsLookup = array( |
3176 | 3188 | 0x00 => 'Other', |
@@ -3187,6 +3199,9 @@ discard block |
||
3187 | 3199 | return (isset($COMRReceivedAsLookup[$index]) ? $COMRReceivedAsLookup[$index] : ''); |
3188 | 3200 | } |
3189 | 3201 | |
3202 | + /** |
|
3203 | + * @param integer $index |
|
3204 | + */ |
|
3190 | 3205 | public static function RVA2ChannelTypeLookup($index) { |
3191 | 3206 | static $RVA2ChannelTypeLookup = array( |
3192 | 3207 | 0x00 => 'Other', |
@@ -3621,6 +3636,9 @@ discard block |
||
3621 | 3636 | return true; |
3622 | 3637 | } |
3623 | 3638 | |
3639 | + /** |
|
3640 | + * @param string $datestamp |
|
3641 | + */ |
|
3624 | 3642 | public static function IsValidDateStampString($datestamp) { |
3625 | 3643 | if (strlen($datestamp) != 8) { |
3626 | 3644 | return false; |
@@ -126,6 +126,9 @@ discard block |
||
126 | 126 | return true; |
127 | 127 | } |
128 | 128 | |
129 | + /** |
|
130 | + * @param integer $version |
|
131 | + */ |
|
129 | 132 | public function getLyrics3Data($endoffset, $version, $length) { |
130 | 133 | // http://www.volweb.cz/str/tags.htm |
131 | 134 | |
@@ -287,6 +290,9 @@ discard block |
||
287 | 290 | return true; |
288 | 291 | } |
289 | 292 | |
293 | + /** |
|
294 | + * @param string $char |
|
295 | + */ |
|
290 | 296 | public function IntString2Bool($char) { |
291 | 297 | if ($char == '1') { |
292 | 298 | return true; |