Lines Matching refs:ThisFileInfo
41 function getid3_flv(&$fd, &$ThisFileInfo, $ReturnAllTagData=false) { argument
42 fseek($fd, $ThisFileInfo['avdataoffset'], SEEK_SET);
44 $FLVdataLength = $ThisFileInfo['avdataend'] - $ThisFileInfo['avdataoffset'];
47 $ThisFileInfo['fileformat'] = 'flv';
48 $ThisFileInfo['flv']['header']['signature'] = substr($FLVheader, 0, 3);
49 $ThisFileInfo['flv']['header']['version'] = getid3_lib::BigEndian2Int(substr($FLVheader, 3, 1));
52 if ($ThisFileInfo['flv']['header']['signature'] != 'FLV') {
53 …$ThisFileInfo['error'][] = 'Expecting "FLV" at offset '.$ThisFileInfo['avdataoffset'].', found "'.…
54 unset($ThisFileInfo['flv']);
55 unset($ThisFileInfo['fileformat']);
59 $ThisFileInfo['flv']['header']['hasAudio'] = (bool) ($TypeFlags & 0x04);
60 $ThisFileInfo['flv']['header']['hasVideo'] = (bool) ($TypeFlags & 0x01);
69 while ((ftell($fd) + 1) < $ThisFileInfo['avdataend']) {
87 if (!isset($ThisFileInfo['flv']['audio']['audioFormat'])) {
88 $ThisFileInfo['flv']['audio']['audioFormat'] = $LastHeaderByte & 0x07;
89 $ThisFileInfo['flv']['audio']['audioRate'] = ($LastHeaderByte & 0x30) / 0x10;
90 $ThisFileInfo['flv']['audio']['audioSampleSize'] = ($LastHeaderByte & 0x40) / 0x40;
91 $ThisFileInfo['flv']['audio']['audioType'] = ($LastHeaderByte & 0x80) / 0x80;
96 if (!isset($ThisFileInfo['flv']['video']['videoCodec'])) {
97 $ThisFileInfo['flv']['video']['videoCodec'] = $LastHeaderByte & 0x07;
101 if ($ThisFileInfo['flv']['video']['videoCodec'] != GETID3_FLV_VIDEO_VP6) {
105 $ThisFileInfo['flv']['header']['videoSizeType'] = $PictureSizeType;
110 $ThisFileInfo['video']['resolution_x'] = ($PictureSizeEnc & 0xFF00) >> 8;
113 $ThisFileInfo['video']['resolution_y'] = ($PictureSizeEnc & 0xFF00) >> 8;
119 $ThisFileInfo['video']['resolution_x'] = ($PictureSizeEnc & 0xFFFF0000) >> 16;
123 $ThisFileInfo['video']['resolution_y'] = ($PictureSizeEnc & 0xFFFF0000) >> 16;
127 $ThisFileInfo['video']['resolution_x'] = 352;
128 $ThisFileInfo['video']['resolution_y'] = 288;
132 $ThisFileInfo['video']['resolution_x'] = 176;
133 $ThisFileInfo['video']['resolution_y'] = 144;
137 $ThisFileInfo['video']['resolution_x'] = 128;
138 $ThisFileInfo['video']['resolution_y'] = 96;
142 $ThisFileInfo['video']['resolution_x'] = 320;
143 $ThisFileInfo['video']['resolution_y'] = 240;
147 $ThisFileInfo['video']['resolution_x'] = 160;
148 $ThisFileInfo['video']['resolution_y'] = 120;
152 $ThisFileInfo['video']['resolution_x'] = 0;
153 $ThisFileInfo['video']['resolution_y'] = 0;
167 $ThisFileInfo['meta'][$eventName] = $reader->readData();
170 $ThisFileInfo['video']['frame_rate'] = @$ThisFileInfo['meta']['onMetaData']['framerate'];
171 $ThisFileInfo['video']['resolution_x'] = @$ThisFileInfo['meta']['onMetaData']['width'];
172 $ThisFileInfo['video']['resolution_y'] = @$ThisFileInfo['meta']['onMetaData']['height'];
187 if ($ThisFileInfo['playtime_seconds'] = $Duration / 1000) {
188 …$ThisFileInfo['bitrate'] = ($ThisFileInfo['avdataend'] - $ThisFileInfo['avdataoffset']) / $ThisFil…
191 if ($ThisFileInfo['flv']['header']['hasAudio']) {
192 …$ThisFileInfo['audio']['codec'] = $this->FLVaudioFormat($ThisFileInfo['flv']['audio'][…
193 …$ThisFileInfo['audio']['sample_rate'] = $this->FLVaudioRate($ThisFileInfo['flv']['audio'][…
194 …$ThisFileInfo['audio']['bits_per_sample'] = $this->FLVaudioBitDepth($ThisFileInfo['flv']['audio'][…
196 …$ThisFileInfo['audio']['channels'] = $ThisFileInfo['flv']['audio']['audioType'] + 1; // 0=mono,1…
197 …$ThisFileInfo['audio']['lossless'] = ($ThisFileInfo['flv']['audio']['audioFormat'] ? false : tru…
198 $ThisFileInfo['audio']['dataformat'] = 'flv';
200 if (@$ThisFileInfo['flv']['header']['hasVideo']) {
201 …$ThisFileInfo['video']['codec'] = $this->FLVvideoCodec($ThisFileInfo['flv']['video']['videoCo…
202 $ThisFileInfo['video']['dataformat'] = 'flv';
203 $ThisFileInfo['video']['lossless'] = false;