Lines Matching refs:info
27 $info = &$this->getid3->info;
28 $this->fseek($info['avdataoffset']);
41 $info = &$this->getid3->info;
42 $info['fileformat'] = 'aac';
43 $info['audio']['dataformat'] = 'aac';
44 $info['audio']['lossless'] = false;
46 $this->fseek($info['avdataoffset']);
75 $info['aac']['header_type'] = 'ADIF';
77 $info['aac']['header']['mpeg_version'] = 4;
79 … $info['aac']['header']['copyright'] = substr($AACheaderBitstream, $bitoffset, 1) == '1';
81 if ($info['aac']['header']['copyright']) {
82 …$info['aac']['header']['copyright_id'] = getid3_lib::Bin2String(substr($AACheaderBitstream, $bi…
85 … $info['aac']['header']['original_copy'] = substr($AACheaderBitstream, $bitoffset, 1) == '1';
87 … $info['aac']['header']['home'] = substr($AACheaderBitstream, $bitoffset, 1) == '1';
89 … $info['aac']['header']['is_vbr'] = substr($AACheaderBitstream, $bitoffset, 1) == '1';
91 if ($info['aac']['header']['is_vbr']) {
92 $info['audio']['bitrate_mode'] = 'vbr';
93 …$info['aac']['header']['bitrate_max'] = getid3_lib::Bin2Dec(substr($AACheaderBitstream, $bitof…
96 $info['audio']['bitrate_mode'] = 'cbr';
97 …$info['aac']['header']['bitrate'] = getid3_lib::Bin2Dec(substr($AACheaderBitstream, $bitof…
99 $info['audio']['bitrate'] = $info['aac']['header']['bitrate'];
101 if ($info['audio']['bitrate'] == 0) {
105 …$info['aac']['header']['num_program_configs'] = 1 + getid3_lib::Bin2Dec(substr($AACheaderBitstream…
108 for ($i = 0; $i < $info['aac']['header']['num_program_configs']; $i++) {
157 if (!$info['aac']['header']['is_vbr']) {
158 …$info['aac']['program_configs'][$i]['buffer_fullness'] = getid3_lib::Bin2Dec(substr($AAChea…
161 …$info['aac']['program_configs'][$i]['element_instance_tag'] = getid3_lib::Bin2Dec(substr($AA…
163 …$info['aac']['program_configs'][$i]['object_type'] = getid3_lib::Bin2Dec(substr($AA…
165 …$info['aac']['program_configs'][$i]['sampling_frequency_index'] = getid3_lib::Bin2Dec(substr($AA…
167 …$info['aac']['program_configs'][$i]['num_front_channel_elements'] = getid3_lib::Bin2Dec(substr($AA…
169 …$info['aac']['program_configs'][$i]['num_side_channel_elements'] = getid3_lib::Bin2Dec(substr($AA…
171 …$info['aac']['program_configs'][$i]['num_back_channel_elements'] = getid3_lib::Bin2Dec(substr($AA…
173 …$info['aac']['program_configs'][$i]['num_lfe_channel_elements'] = getid3_lib::Bin2Dec(substr($AA…
175 …$info['aac']['program_configs'][$i]['num_assoc_data_elements'] = getid3_lib::Bin2Dec(substr($AA…
177 …$info['aac']['program_configs'][$i]['num_valid_cc_elements'] = getid3_lib::Bin2Dec(substr($AA…
179 …$info['aac']['program_configs'][$i]['mono_mixdown_present'] = (bool) getid3_lib::Bin2Dec(sub…
181 if ($info['aac']['program_configs'][$i]['mono_mixdown_present']) {
182 …$info['aac']['program_configs'][$i]['mono_mixdown_element_number'] = getid3_lib::Bin2Dec(substr…
185 …$info['aac']['program_configs'][$i]['stereo_mixdown_present'] = (bool) getid3_lib::Bin…
187 if ($info['aac']['program_configs'][$i]['stereo_mixdown_present']) {
188 …$info['aac']['program_configs'][$i]['stereo_mixdown_element_number'] = getid3_lib::Bin2Dec(substr…
191 …$info['aac']['program_configs'][$i]['matrix_mixdown_idx_present'] = (bool) getid3_lib::Bin…
193 if ($info['aac']['program_configs'][$i]['matrix_mixdown_idx_present']) {
194 …$info['aac']['program_configs'][$i]['matrix_mixdown_idx'] = getid3_lib::Bin2Dec(substr…
196 …$info['aac']['program_configs'][$i]['pseudo_surround_enable'] = (bool) getid3_lib::Bin2Dec…
199 for ($j = 0; $j < $info['aac']['program_configs'][$i]['num_front_channel_elements']; $j++) {
200 …$info['aac']['program_configs'][$i]['front_element_is_cpe'][$j] = (bool) getid3_lib::Bin2Dec(s…
202 …$info['aac']['program_configs'][$i]['front_element_tag_select'][$j] = getid3_lib::Bin2Dec(substr($…
205 for ($j = 0; $j < $info['aac']['program_configs'][$i]['num_side_channel_elements']; $j++) {
206 …$info['aac']['program_configs'][$i]['side_element_is_cpe'][$j] = (bool) getid3_lib::Bin2Dec(su…
208 …$info['aac']['program_configs'][$i]['side_element_tag_select'][$j] = getid3_lib::Bin2Dec(substr($A…
211 for ($j = 0; $j < $info['aac']['program_configs'][$i]['num_back_channel_elements']; $j++) {
212 …$info['aac']['program_configs'][$i]['back_element_is_cpe'][$j] = (bool) getid3_lib::Bin2Dec(su…
214 …$info['aac']['program_configs'][$i]['back_element_tag_select'][$j] = getid3_lib::Bin2Dec(substr($A…
217 for ($j = 0; $j < $info['aac']['program_configs'][$i]['num_lfe_channel_elements']; $j++) {
218 …$info['aac']['program_configs'][$i]['lfe_element_tag_select'][$j] = getid3_lib::Bin2Dec(substr($AA…
221 for ($j = 0; $j < $info['aac']['program_configs'][$i]['num_assoc_data_elements']; $j++) {
222 …$info['aac']['program_configs'][$i]['assoc_data_element_tag_select'][$j] = getid3_lib::Bin2Dec(sub…
225 for ($j = 0; $j < $info['aac']['program_configs'][$i]['num_valid_cc_elements']; $j++) {
226 …$info['aac']['program_configs'][$i]['cc_element_is_ind_sw'][$j] = (bool) getid3_lib::Bin2…
228 …$info['aac']['program_configs'][$i]['valid_cc_element_tag_select'][$j] = getid3_lib::Bin2Dec(sub…
234 …$info['aac']['program_configs'][$i]['comment_field_bytes'] = getid3_lib::Bin2Dec(substr($AACheader…
236 …$info['aac']['program_configs'][$i]['comment_field'] = getid3_lib::Bin2String(substr($AAChea…
237 $bitoffset += 8 * $info['aac']['program_configs'][$i]['comment_field_bytes'];
240 …$info['aac']['header']['profile'] = self::AACprofileLookup($info['aac'][…
241 …$info['aac']['program_configs'][$i]['sampling_frequency'] = self::AACsampleRateLookup($info['aac…
242 …$info['audio']['sample_rate'] = $info['aac']['program_configs'][$i][…
243 …$info['audio']['channels'] = self::AACchannelCountCalculate($info…
244 if ($info['aac']['program_configs'][$i]['comment_field']) {
245 …$info['aac']['comments'][] = $info['aac']['program_configs'][$i]['comment…
248 …$info['playtime_seconds'] = (($info['avdataend'] - $info['avdataoffset']) * 8) / $info['audio']['b…
250 …$info['audio']['encoder_options'] = $info['aac']['header_type'].' '.$info['aac']['header']['profil…
258 unset($info['fileformat']);
259 unset($info['aac']);
260 …$this->error('AAC-ADIF synch not found at offset '.$info['avdataoffset'].' (expected "ADIF", found…
274 $info = &$this->getid3->info;
306 $byteoffset = $info['avdataoffset'];
343 $info['aac']['header']['raw']['syncword'] = ($header1 & 0xFFF0) >> 4;
344 if ($info['aac']['header']['raw']['syncword'] != 0x0FFF) {
345 …et '.($this->ftell() - $substringlength).' (found 0x0'.strtoupper(dechex($info['aac']['header']['r…
349 unset($info['aac']);
355 $info['aac']['header_type'] = 'ADTS';
356 $info['fileformat'] = 'aac';
357 $info['audio']['dataformat'] = 'aac';
359 $info['aac']['header']['raw']['mpeg_version'] = ($header1 & 0x0008) >> 3;
360 $info['aac']['header']['raw']['mpeg_layer'] = ($header1 & 0x0006) >> 1;
361 $info['aac']['header']['raw']['protection_absent'] = ($header1 & 0x0001) >> 0;
363 $info['aac']['header']['raw']['profile_code'] = ($header2 & 0xC0000000) >> 30;
364 $info['aac']['header']['raw']['sample_rate_code'] = ($header2 & 0x3C000000) >> 26;
365 $info['aac']['header']['raw']['private_stream'] = ($header2 & 0x02000000) >> 25;
366 $info['aac']['header']['raw']['channels_code'] = ($header2 & 0x01C00000) >> 22;
367 $info['aac']['header']['raw']['original'] = ($header2 & 0x00200000) >> 21;
368 $info['aac']['header']['raw']['home'] = ($header2 & 0x00100000) >> 20;
369 $info['aac']['header']['raw']['copyright_stream'] = ($header2 & 0x00080000) >> 19;
370 $info['aac']['header']['raw']['copyright_start'] = ($header2 & 0x00040000) >> 18;
371 $info['aac']['header']['raw']['frame_length'] = ($header2 & 0x0003FFE0) >> 5;
373 …$info['aac']['header']['mpeg_version'] = ($info['aac']['header']['raw']['mpeg_version'] ?…
374 …$info['aac']['header']['crc_present'] = ($info['aac']['header']['raw']['protection_absent'] ?…
375 …$info['aac']['header']['profile'] = self::AACprofileLookup($info['aac']['header']['raw'][…
376 …$info['aac']['header']['sample_frequency'] = self::AACsampleRateLookup($info['aac']['header']['raw…
377 …$info['aac']['header']['private'] = (bool) $info['aac']['header']['raw']['private_stream'…
378 $info['aac']['header']['original'] = (bool) $info['aac']['header']['raw']['original'];
379 $info['aac']['header']['home'] = (bool) $info['aac']['header']['raw']['home'];
380 …$info['aac']['header']['channels'] = (($info['aac']['header']['raw']['channels_code'] == 7…
382 …$info['aac'][$framenumber]['copyright_id_bit'] = (bool) $info['aac']['header']['raw']['copyright…
383 …$info['aac'][$framenumber]['copyright_id_start'] = (bool) $info['aac']['header']['raw']['copyright…
386 if ($info['aac']['header']['raw']['mpeg_layer'] != 0) {
387 …$this->warning('Layer error - expected "0", found "'.$info['aac']['header']['raw']['mpeg_layer'].'…
389 if ($info['aac']['header']['sample_frequency'] == 0) {
394 $info['audio']['sample_rate'] = $info['aac']['header']['sample_frequency'];
395 $info['audio']['channels'] = $info['aac']['header']['channels'];
401 …$BitrateCache[$FrameLength] = ($info['aac']['header']['sample_frequency'] / 1024) * $FrameLength *…
403 getid3_lib::safe_inc($info['aac']['bitrate_distribution'][$BitrateCache[$FrameLength]], 1);
405 $info['aac'][$framenumber]['aac_frame_length'] = $FrameLength;
407 …$info['aac'][$framenumber]['adts_buffer_fullness'] = (($header2 & 0x0000001F) << 6) & (($header3 &…
408 if ($info['aac'][$framenumber]['adts_buffer_fullness'] == 0x07FF) {
409 $info['audio']['bitrate_mode'] = 'vbr';
411 $info['audio']['bitrate_mode'] = 'cbr';
413 $info['aac'][$framenumber]['num_raw_data_blocks'] = (($header3 & 0x03) >> 0);
415 if ($info['aac']['header']['crc_present']) {
420 unset($info['aac'][$framenumber]);
434 if ((++$framenumber < $MaxFramesToScan) && (($byteoffset + 10) < $info['avdataend'])) {
440 $info['aac']['frames'] = $framenumber;
441 …$info['playtime_seconds'] = ($info['avdataend'] / $byteoffset) * (($framenumber * 1024) / $info['a…
442 if ($info['playtime_seconds'] == 0) {
446 …$info['audio']['bitrate'] = (($info['avdataend'] - $info['avdataoffset']) * 8) / $info['playtim…
447 ksort($info['aac']['bitrate_distribution']);
449 …$info['audio']['encoder_options'] = $info['aac']['header_type'].' '.$info['aac']['header']['profil…