$fhBS .= getid3_lib::
BigEndian2Bin(strrev(substr($DTSheader,
$word_offset, 2
)));
break;
case 2: // 14-bit big-endian
$fhBS .=
substr(getid3_lib::
BigEndian2Bin( substr($DTSheader,
$word_offset, 2
) ), 2, 14
);
break;
case 3: // 14-bit little-endian
$fhBS .=
substr(getid3_lib::
BigEndian2Bin(strrev(substr($DTSheader,
$word_offset, 2
))), 2, 14
);
break;
} } $info['dts'
]['raw'
]['frame_type'
] =
$this->
readBinData($fhBS, 1
);
$info['dts'
]['raw'
]['deficit_samples'
] =
$this->
readBinData($fhBS, 5
);
$info['dts'
]['flags'
]['crc_present'
] =
(bool) $this->
readBinData($fhBS, 1
);
$info['dts'
]['raw'
]['pcm_sample_blocks'
] =
$this->
readBinData($fhBS, 7
);
$info['dts'
]['raw'
]['frame_byte_size'
] =
$this->
readBinData($fhBS, 14
);
$info['dts'
]['raw'
]['channel_arrangement'
] =
$this->
readBinData($fhBS, 6
);
$info['dts'
]['raw'
]['sample_frequency'
] =
$this->
readBinData($fhBS, 4
);
$info['dts'
]['raw'
]['bitrate'
] =
$this->
readBinData($fhBS, 5
);
$info['dts'
]['flags'
]['embedded_downmix'
] =
(bool) $this->
readBinData($fhBS, 1
);
$info['dts'
]['flags'
]['dynamicrange'
] =
(bool) $this->
readBinData($fhBS, 1
);
$info['dts'
]['flags'
]['timestamp'
] =
(bool) $this->
readBinData($fhBS, 1
);
$info['dts'
]['flags'
]['auxdata'
] =
(bool) $this->
readBinData($fhBS, 1
);