Lines Matching refs:info
28 $info = &$this->getid3->info;
31 $this->fseek($info['avdataoffset']);
38 $info['fileformat'] = 'la';
39 $info['audio']['dataformat'] = 'la';
40 $info['audio']['lossless'] = true;
42 $info['la']['version_major'] = (int) substr($rawdata, $offset + 2, 1);
43 $info['la']['version_minor'] = (int) substr($rawdata, $offset + 3, 1);
44 …$info['la']['version'] = (float) $info['la']['version_major'] + ($info['la']['version_minor'…
47 $info['la']['uncompressed_size'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
49 if ($info['la']['uncompressed_size'] == 0) {
61 $info['la']['fmt_size'] = 24;
62 if ($info['la']['version'] >= 0.3) {
64 $info['la']['fmt_size'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
65 $info['la']['header_size'] = 49 + $info['la']['fmt_size'] - 24;
71 $info['la']['header_size'] = 41;
84 $info['la']['raw']['format'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 2));
87 $info['la']['channels'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 2));
89 if ($info['la']['channels'] == 0) {
94 $info['la']['sample_rate'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
96 if ($info['la']['sample_rate'] == 0) {
101 … $info['la']['bytes_per_second'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
103 … $info['la']['bytes_per_sample'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 2));
105 … $info['la']['bits_per_sample'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 2));
108 … $info['la']['samples'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
111 … $info['la']['raw']['flags'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 1));
113 $info['la']['flags']['seekable'] = (bool) ($info['la']['raw']['flags'] & 0x01);
114 if ($info['la']['version'] >= 0.4) {
115 $info['la']['flags']['high_compression'] = (bool) ($info['la']['raw']['flags'] & 0x02);
118 … $info['la']['original_crc'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
127 if ($info['la']['version'] >= 0.4) {
128 $info['la']['blocksize'] = 61440;
129 $info['la']['seekevery'] = 19;
131 $info['la']['blocksize'] = 73728;
132 $info['la']['seekevery'] = 16;
135 $info['la']['seekpoint_count'] = 0;
136 if ($info['la']['flags']['seekable']) {
137 …$info['la']['seekpoint_count'] = floor($info['la']['samples'] / ($info['la']['blocksize'] * $info[…
139 for ($i = 0; $i < $info['la']['seekpoint_count']; $i++) {
140 $info['la']['seekpoints'][] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
145 if ($info['la']['version'] >= 0.3) {
150 $info['la']['footerstart'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
153 if ($info['la']['footerstart'] > $info['filesize']) {
154 …ning('FooterStart value points to offset '.$info['la']['footerstart'].' which is beyond end-of-fil…
155 $info['la']['footerstart'] = $info['filesize'];
161 $info['la']['footerstart'] = $info['avdataend'];
165 if ($info['la']['footerstart'] < $info['avdataend']) {
169 if ($info['la']['version'] == 0.2) {
174 if ($info['la']['footerstart'] < $info['avdataend']) {
175 $this->fseek($info['la']['footerstart']);
176 $RIFFdata .= $this->fread($info['avdataend'] - $info['la']['footerstart']);
187 if (empty($getid3_temp->info['error'])) {
188 $info['riff'] = $getid3_temp->info['riff'];
190 … $this->warning('Error parsing RIFF portion of La file: '.implode($getid3_temp->info['error']));
199 $info['avdataend'] = $info['avdataoffset'] + $info['la']['footerstart'];
200 $info['avdataoffset'] = $info['avdataoffset'] + $offset;
202 …$info['la']['compression_ratio'] = (float) (($info['avdataend'] - $info['avdataoffset']) / $inf…
203 …$info['playtime_seconds'] = (float) ($info['la']['samples'] / $info['la']['sample_rate']…
204 if ($info['playtime_seconds'] == 0) {
209 …$info['audio']['bitrate'] = ($info['avdataend'] - $info['avdataoffset']) * 8 / $info['p…
211 $info['audio']['bits_per_sample'] = $info['la']['bits_per_sample'];
223 $info['audio']['channels'] = $info['la']['channels'];
224 $info['audio']['sample_rate'] = (int) $info['la']['sample_rate'];
225 $info['audio']['encoder'] = 'LA v'.$info['la']['version'];