equal
deleted
inserted
replaced
358 */ |
358 */ |
359 public function parseAPEheaderFooter($APEheaderFooterData) { |
359 public function parseAPEheaderFooter($APEheaderFooterData) { |
360 // http://www.uni-jena.de/~pfk/mpp/sv8/apeheader.html |
360 // http://www.uni-jena.de/~pfk/mpp/sv8/apeheader.html |
361 |
361 |
362 // shortcut |
362 // shortcut |
|
363 $headerfooterinfo = array(); |
363 $headerfooterinfo['raw'] = array(); |
364 $headerfooterinfo['raw'] = array(); |
364 $headerfooterinfo_raw = &$headerfooterinfo['raw']; |
365 $headerfooterinfo_raw = &$headerfooterinfo['raw']; |
365 |
366 |
366 $headerfooterinfo_raw['footer_tag'] = substr($APEheaderFooterData, 0, 8); |
367 $headerfooterinfo_raw['footer_tag'] = substr($APEheaderFooterData, 0, 8); |
367 if ($headerfooterinfo_raw['footer_tag'] != 'APETAGEX') { |
368 if ($headerfooterinfo_raw['footer_tag'] != 'APETAGEX') { |
387 */ |
388 */ |
388 public function parseAPEtagFlags($rawflagint) { |
389 public function parseAPEtagFlags($rawflagint) { |
389 // "Note: APE Tags 1.0 do not use any of the APE Tag flags. |
390 // "Note: APE Tags 1.0 do not use any of the APE Tag flags. |
390 // All are set to zero on creation and ignored on reading." |
391 // All are set to zero on creation and ignored on reading." |
391 // http://wiki.hydrogenaud.io/index.php?title=Ape_Tags_Flags |
392 // http://wiki.hydrogenaud.io/index.php?title=Ape_Tags_Flags |
|
393 $flags = array(); |
392 $flags['header'] = (bool) ($rawflagint & 0x80000000); |
394 $flags['header'] = (bool) ($rawflagint & 0x80000000); |
393 $flags['footer'] = (bool) ($rawflagint & 0x40000000); |
395 $flags['footer'] = (bool) ($rawflagint & 0x40000000); |
394 $flags['this_is_header'] = (bool) ($rawflagint & 0x20000000); |
396 $flags['this_is_header'] = (bool) ($rawflagint & 0x20000000); |
395 $flags['item_contents_raw'] = ($rawflagint & 0x00000006) >> 1; |
397 $flags['item_contents_raw'] = ($rawflagint & 0x00000006) >> 1; |
396 $flags['read_only'] = (bool) ($rawflagint & 0x00000001); |
398 $flags['read_only'] = (bool) ($rawflagint & 0x00000001); |