Lines Matching refs:Header4Bytes
2729 function MPEGaudioHeaderDecode($Header4Bytes) { argument
2745 if (strlen($Header4Bytes) != 4) {
2749 $MPEGrawHeader['synch'] = (BigEndian2Int(substr($Header4Bytes, 0, 2)) & 0xFFE0) >> 4;
2750 $MPEGrawHeader['version'] = (ord($Header4Bytes[1]) & 0x18) >> 3; // BB
2751 $MPEGrawHeader['layer'] = (ord($Header4Bytes[1]) & 0x06) >> 1; // CC
2752 $MPEGrawHeader['protection'] = (ord($Header4Bytes[1]) & 0x01); // D
2753 $MPEGrawHeader['bitrate'] = (ord($Header4Bytes[2]) & 0xF0) >> 4; // EEEE
2754 $MPEGrawHeader['sample_rate'] = (ord($Header4Bytes[2]) & 0x0C) >> 2; // FF
2755 $MPEGrawHeader['padding'] = (ord($Header4Bytes[2]) & 0x02) >> 1; // G
2756 $MPEGrawHeader['private'] = (ord($Header4Bytes[2]) & 0x01); // H
2757 $MPEGrawHeader['channelmode'] = (ord($Header4Bytes[3]) & 0xC0) >> 6; // II
2758 $MPEGrawHeader['modeextension'] = (ord($Header4Bytes[3]) & 0x30) >> 4; // JJ
2759 $MPEGrawHeader['copyright'] = (ord($Header4Bytes[3]) & 0x08) >> 3; // K
2760 $MPEGrawHeader['original'] = (ord($Header4Bytes[3]) & 0x04) >> 2; // L
2761 $MPEGrawHeader['emphasis'] = (ord($Header4Bytes[3]) & 0x03); // MM