protected function ParseAPEtagFlags($raw_flag_int) { // "Note: APE Tags 1.0 do not use any of the APE Tag flags. // All are set to zero on creation and ignored on reading." // http://www.uni-jena.de/~pfk/mpp/sv8/apetagflags.html $target['header'] = (bool) ($raw_flag_int & 2147483648.0); $target['footer'] = (bool) ($raw_flag_int & 0x40000000); $target['this_is_header'] = (bool) ($raw_flag_int & 0x20000000); $target['item_contents_raw'] = ($raw_flag_int & 0x6) >> 1; $target['read_only'] = (bool) ($raw_flag_int & 0x1); $target['item_contents'] = getid3_apetag::APEcontentTypeFlagLookup($target['item_contents_raw']); return $target; }