|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
GetId3() by James Heinrich info@.nosp@m.geti.nosp@m.d3.or.nosp@m.g //. More...
Inheritance diagram for GetId3\Module\Audio\Mp3:
Collaboration diagram for GetId3\Module\Audio\Mp3:Public Member Functions | |
| analyze () | |
| GuessEncoderOptions () | |
| @staticvar array $NamedPresetBitrates @staticvar array $KnownEncoderValues @staticvar array $ExpectedLowpass @staticvar array $ExpectedResampledRate More... | |
| decodeMPEGaudioHeader ($offset, &$info, $recursivesearch=true, $ScanAsCBR=false, $FastMPEGheaderScan=false) | |
| @staticvar type $MPEGaudioVersionLookup @staticvar type $MPEGaudioLayerLookup @staticvar type $MPEGaudioBitrateLookup @staticvar type $MPEGaudioFrequencyLookup @staticvar type $MPEGaudioChannelModeLookup @staticvar type $MPEGaudioModeExtensionLookup @staticvar type $MPEGaudioEmphasisLookup @staticvar array $MPEGaudioHeaderDecodeCache @staticvar array $MPEGaudioHeaderValidCache More... | |
| RecursiveFrameScanning (&$offset, &$nextframetestoffset, $ScanAsCBR) | |
| FreeFormatFrameLength ($offset, $deepscan=false) | |
| getOnlyMPEGaudioInfoBruteForce () | |
| getOnlyMPEGaudioInfo ($avdataoffset, $BitrateHistogram=false) | |
| @staticvar type $MPEGaudioVersionLookup @staticvar type $MPEGaudioLayerLookup @staticvar type $MPEGaudioBitrateLookup More... | |
Public Member Functions inherited from GetId3\Handler\BaseHandler | |
| __construct (GetId3Core $getid3, $call_module=null) | |
| analyze () | |
| Analyze from file pointer. More... | |
| AnalyzeString (&$string) | |
| Analyze from string instead. More... | |
| saveAttachment (&$ThisFileInfoIndex, $filename, $offset, $length) | |
Static Public Member Functions | |
| static | MPEGaudioVersionArray () |
| @staticvar array $MPEGaudioVersion More... | |
| static | MPEGaudioLayerArray () |
| @staticvar array $MPEGaudioLayer More... | |
| static | MPEGaudioBitrateArray () |
| @staticvar type $MPEGaudioBitrate More... | |
| static | MPEGaudioFrequencyArray () |
| @staticvar array $MPEGaudioFrequency More... | |
| static | MPEGaudioChannelModeArray () |
| @staticvar array $MPEGaudioChannelMode More... | |
| static | MPEGaudioModeExtensionArray () |
| @staticvar array $MPEGaudioModeExtension More... | |
| static | MPEGaudioEmphasisArray () |
| @staticvar array $MPEGaudioEmphasis More... | |
| static | MPEGaudioHeaderBytesValid ($head4, $allowBitrate15=false) |
| static | MPEGaudioHeaderValid ($rawarray, $echoerrors=false, $allowBitrate15=false) |
| @staticvar type $MPEGaudioVersionLookup @staticvar type $MPEGaudioLayerLookup @staticvar type $MPEGaudioBitrateLookup @staticvar type $MPEGaudioFrequencyLookup @staticvar type $MPEGaudioChannelModeLookup @staticvar type $MPEGaudioModeExtensionLookup @staticvar type $MPEGaudioEmphasisLookup More... | |
| static | MPEGaudioHeaderDecode ($Header4Bytes) |
| static | MPEGaudioFrameLength (&$bitrate, &$version, &$layer, $padding, &$samplerate) |
| @staticvar array $AudioFrameLengthCache More... | |
| static | ClosestStandardMP3Bitrate ($bit_rate) |
| @staticvar array $standard_bit_rates @staticvar array $bit_rate_table More... | |
| static | XingVBRidOffset ($version, $channelmode) |
| @staticvar array $XingVBRidOffsetCache More... | |
| static | LAMEvbrMethodLookup ($VBRmethodID) |
| @staticvar array $LAMEvbrMethodLookup More... | |
| static | LAMEmiscStereoModeLookup ($StereoModeID) |
| @staticvar array $LAMEmiscStereoModeLookup More... | |
| static | LAMEmiscSourceSampleFrequencyLookup ($SourceSampleFrequencyID) |
| @staticvar array $LAMEmiscSourceSampleFrequencyLookup More... | |
| static | LAMEsurroundInfoLookup ($SurroundInfoID) |
| @staticvar array $LAMEsurroundInfoLookup More... | |
| static | LAMEpresetUsedLookup ($LAMEtag) |
Data Fields | |
| $allow_bruteforce = false | |
| const | GETID3_MP3_VALID_CHECK_FRAMES = 35 |
Additional Inherited Members | |
Protected Member Functions inherited from GetId3\Handler\BaseHandler | |
| ftell () | |
| fread ($bytes) | |
| fseek ($bytes, $whence=SEEK_SET) | |
| feof () | |
| isDependencyFor ($module) | |
| error ($text) | |
| warning ($text) | |
Protected Attributes inherited from GetId3\Handler\BaseHandler | |
| $getid3 | |
| $data_string_flag = false | |
| $data_string = '' | |
| $data_string_position = 0 | |
| $data_string_length = 0 | |
GetId3() by James Heinrich info@.nosp@m.geti.nosp@m.d3.or.nosp@m.g //.
module for analyzing MP3 files
number of frames to scan to determine if MPEG-audio sequence is valid Lower this number to 5-20 for faster scanning Increase this number to 50+ for most accurate detection of valid VBR/CBR mpeg-audio streams
| GetId3\Module\Audio\Mp3::analyze | ( | ) |
Reimplemented from GetId3\Handler\BaseHandler.
Definition at line 52 of file Mp3.php.
References $info, GetId3\Handler\BaseHandler\fread(), GetId3\Handler\BaseHandler\fseek(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfo(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfoBruteForce(), and GetId3\Module\Audio\Mp3\GuessEncoderOptions().
Here is the call graph for this function:
|
static |
@staticvar array $standard_bit_rates @staticvar array $bit_rate_table
| type | $bit_rate |
Definition at line 2146 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader().
Here is the caller graph for this function:| GetId3\Module\Audio\Mp3::decodeMPEGaudioHeader | ( | $offset, | |
| & | $info, | ||
$recursivesearch = true, |
|||
$ScanAsCBR = false, |
|||
$FastMPEGheaderScan = false |
|||
| ) |
@staticvar type $MPEGaudioVersionLookup @staticvar type $MPEGaudioLayerLookup @staticvar type $MPEGaudioBitrateLookup @staticvar type $MPEGaudioFrequencyLookup @staticvar type $MPEGaudioChannelModeLookup @staticvar type $MPEGaudioModeExtensionLookup @staticvar type $MPEGaudioEmphasisLookup @staticvar array $MPEGaudioHeaderDecodeCache @staticvar array $MPEGaudioHeaderValidCache
| type | $offset | |
| type | $info | |
| type | $recursivesearch | |
| type | $ScanAsCBR | |
| type | $FastMPEGheaderScan |
Definition at line 453 of file Mp3.php.
References $info, GetId3\Lib\Helper\BigEndian2Int(), GetId3\Module\Audio\Mp3\ClosestStandardMP3Bitrate(), GetId3\Handler\BaseHandler\fread(), GetId3\Module\Audio\Mp3\FreeFormatFrameLength(), GetId3\Handler\BaseHandler\fseek(), GetId3\Module\Audio\Mp3\LAMEmiscSourceSampleFrequencyLookup(), GetId3\Module\Audio\Mp3\LAMEmiscStereoModeLookup(), GetId3\Module\Audio\Mp3\LAMEpresetUsedLookup(), GetId3\Module\Audio\Mp3\LAMEsurroundInfoLookup(), GetId3\Module\Audio\Mp3\LAMEvbrMethodLookup(), GetId3\Lib\Helper\LittleEndian2Float(), GetId3\Module\Audio\Mp3\MPEGaudioBitrateArray(), GetId3\Module\Audio\Mp3\MPEGaudioChannelModeArray(), GetId3\Module\Audio\Mp3\MPEGaudioEmphasisArray(), GetId3\Module\Audio\Mp3\MPEGaudioFrameLength(), GetId3\Module\Audio\Mp3\MPEGaudioFrequencyArray(), GetId3\Module\Audio\Mp3\MPEGaudioHeaderDecode(), GetId3\Module\Audio\Mp3\MPEGaudioHeaderValid(), GetId3\Module\Audio\Mp3\MPEGaudioLayerArray(), GetId3\Module\Audio\Mp3\MPEGaudioModeExtensionArray(), GetId3\Module\Audio\Mp3\MPEGaudioVersionArray(), GetId3\Lib\Helper\PrintHexBytes(), GetId3\Module\Audio\Mp3\RecursiveFrameScanning(), GetId3\Lib\Helper\RGADadjustmentLookup(), GetId3\Lib\Helper\RGADamplitude2dB(), GetId3\Lib\Helper\RGADnameLookup(), GetId3\Lib\Helper\RGADoriginatorLookup(), and GetId3\Module\Audio\Mp3\XingVBRidOffset().
Referenced by GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfo(), and GetId3\Module\Audio\Mp3\RecursiveFrameScanning().
Here is the call graph for this function:
Here is the caller graph for this function:| GetId3\Module\Audio\Mp3::FreeFormatFrameLength | ( | $offset, | |
$deepscan = false |
|||
| ) |
| type | $offset | |
| type | $deepscan |
Definition at line 1252 of file Mp3.php.
References $info, GetId3\Handler\BaseHandler\fread(), GetId3\Handler\BaseHandler\fseek(), and GetId3\Lib\Helper\PrintHexBytes().
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader().
Here is the call graph for this function:
Here is the caller graph for this function:| GetId3\Module\Audio\Mp3::getOnlyMPEGaudioInfo | ( | $avdataoffset, | |
$BitrateHistogram = false |
|||
| ) |
@staticvar type $MPEGaudioVersionLookup @staticvar type $MPEGaudioLayerLookup @staticvar type $MPEGaudioBitrateLookup
| type | $avdataoffset | |
| boolean | $BitrateHistogram |
Definition at line 1510 of file Mp3.php.
References $header, $info, GetId3\Lib\Helper\CastAsInt(), GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), GetId3\Handler\BaseHandler\feof(), GetId3\Handler\BaseHandler\fread(), GetId3\Handler\BaseHandler\fseek(), GetId3\Handler\BaseHandler\ftell(), GetId3\Module\Audio\Mp3\MPEGaudioBitrateArray(), GetId3\Module\Audio\Mp3\MPEGaudioLayerArray(), GetId3\Module\Audio\Mp3\MPEGaudioVersionArray(), and GetId3\Lib\Helper\safe_inc().
Referenced by GetId3\Module\Audio\Mp3\analyze().
Here is the call graph for this function:
Here is the caller graph for this function:| GetId3\Module\Audio\Mp3::getOnlyMPEGaudioInfoBruteForce | ( | ) |
Definition at line 1345 of file Mp3.php.
References $info, GetId3\Lib\Helper\array_max(), GetId3\Handler\BaseHandler\fread(), GetId3\Handler\BaseHandler\fseek(), GetId3\Handler\BaseHandler\ftell(), GetId3\Module\Audio\Mp3\MPEGaudioBitrateArray(), GetId3\Module\Audio\Mp3\MPEGaudioChannelModeArray(), GetId3\Module\Audio\Mp3\MPEGaudioEmphasisArray(), GetId3\Module\Audio\Mp3\MPEGaudioFrameLength(), GetId3\Module\Audio\Mp3\MPEGaudioFrequencyArray(), GetId3\Module\Audio\Mp3\MPEGaudioHeaderDecode(), GetId3\Module\Audio\Mp3\MPEGaudioHeaderValid(), GetId3\Module\Audio\Mp3\MPEGaudioLayerArray(), GetId3\Module\Audio\Mp3\MPEGaudioModeExtensionArray(), GetId3\Module\Audio\Mp3\MPEGaudioVersionArray(), and GetId3\Lib\Helper\safe_inc().
Referenced by GetId3\Module\Audio\Mp3\analyze().
Here is the call graph for this function:
Here is the caller graph for this function:| GetId3\Module\Audio\Mp3::GuessEncoderOptions | ( | ) |
@staticvar array $NamedPresetBitrates @staticvar array $KnownEncoderValues @staticvar array $ExpectedLowpass @staticvar array $ExpectedResampledRate
Definition at line 201 of file Mp3.php.
References $info.
Referenced by GetId3\Module\Audio\Mp3\analyze().
Here is the caller graph for this function:
|
static |
@staticvar array $LAMEmiscSourceSampleFrequencyLookup
| type | $SourceSampleFrequencyID |
Definition at line 2254 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader().
Here is the caller graph for this function:
|
static |
@staticvar array $LAMEmiscStereoModeLookup
| type | $StereoModeID |
Definition at line 2232 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader().
Here is the caller graph for this function:
|
static |
| type | $LAMEtag |
Definition at line 2289 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader().
Here is the caller graph for this function:
|
static |
@staticvar array $LAMEsurroundInfoLookup
| type | $SurroundInfoID |
Definition at line 2272 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader().
Here is the caller graph for this function:
|
static |
@staticvar array $LAMEvbrMethodLookup
| type | $VBRmethodID |
Definition at line 2208 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader().
Here is the caller graph for this function:
|
static |
@staticvar type $MPEGaudioBitrate
Definition at line 1842 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfo(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfoBruteForce(), and GetId3\Module\Audio\Mp3\MPEGaudioHeaderValid().
Here is the caller graph for this function:
|
static |
@staticvar array $MPEGaudioChannelMode
Definition at line 1886 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfoBruteForce(), and GetId3\Module\Audio\Mp3\MPEGaudioHeaderValid().
Here is the caller graph for this function:
|
static |
@staticvar array $MPEGaudioEmphasis
Definition at line 1917 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfoBruteForce(), and GetId3\Module\Audio\Mp3\MPEGaudioHeaderValid().
Here is the caller graph for this function:
|
static |
@staticvar array $AudioFrameLengthCache
| type | $bitrate | |
| type | $version | |
| type | $layer | |
| type | $padding | |
| type | $samplerate |
Definition at line 2085 of file Mp3.php.
References $version.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), and GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfoBruteForce().
Here is the caller graph for this function:
|
static |
@staticvar array $MPEGaudioFrequency
Definition at line 1867 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfoBruteForce(), and GetId3\Module\Audio\Mp3\MPEGaudioHeaderValid().
Here is the caller graph for this function:
|
static |
| type | $head4 | |
| type | $allowBitrate15 |
Definition at line 1930 of file Mp3.php.
References GetId3\Module\Audio\Mp3\MPEGaudioHeaderValid().
Referenced by GetId3\Module\AudioVideo\Riff\ParseRIFF().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| type | $Header4Bytes |
Definition at line 2036 of file Mp3.php.
References GetId3\Lib\Helper\BigEndian2Int().
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), and GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfoBruteForce().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
@staticvar type $MPEGaudioVersionLookup @staticvar type $MPEGaudioLayerLookup @staticvar type $MPEGaudioBitrateLookup @staticvar type $MPEGaudioFrequencyLookup @staticvar type $MPEGaudioChannelModeLookup @staticvar type $MPEGaudioModeExtensionLookup @staticvar type $MPEGaudioEmphasisLookup
| type | $rawarray | |
| type | $echoerrors | |
| type | $allowBitrate15 |
Definition at line 1952 of file Mp3.php.
References GetId3\Module\Audio\Mp3\MPEGaudioBitrateArray(), GetId3\Module\Audio\Mp3\MPEGaudioChannelModeArray(), GetId3\Module\Audio\Mp3\MPEGaudioEmphasisArray(), GetId3\Module\Audio\Mp3\MPEGaudioFrequencyArray(), GetId3\Module\Audio\Mp3\MPEGaudioLayerArray(), GetId3\Module\Audio\Mp3\MPEGaudioModeExtensionArray(), and GetId3\Module\Audio\Mp3\MPEGaudioVersionArray().
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfoBruteForce(), and GetId3\Module\Audio\Mp3\MPEGaudioHeaderBytesValid().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
@staticvar array $MPEGaudioLayer
Definition at line 1830 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfo(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfoBruteForce(), and GetId3\Module\Audio\Mp3\MPEGaudioHeaderValid().
Here is the caller graph for this function:
|
static |
@staticvar array $MPEGaudioModeExtension
Definition at line 1898 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfoBruteForce(), and GetId3\Module\Audio\Mp3\MPEGaudioHeaderValid().
Here is the caller graph for this function:
|
static |
@staticvar array $MPEGaudioVersion
Definition at line 1818 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfo(), GetId3\Module\Audio\Mp3\getOnlyMPEGaudioInfoBruteForce(), and GetId3\Module\Audio\Mp3\MPEGaudioHeaderValid().
Here is the caller graph for this function:| GetId3\Module\Audio\Mp3::RecursiveFrameScanning | ( | & | $offset, |
| & | $nextframetestoffset, | ||
| $ScanAsCBR | |||
| ) |
| type | $offset | |
| type | $nextframetestoffset | |
| type | $ScanAsCBR |
Definition at line 1198 of file Mp3.php.
References $info, GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader(), and GetId3\Module\Audio\Mp3\GETID3_MP3_VALID_CHECK_FRAMES.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
@staticvar array $XingVBRidOffsetCache
| type | $version | |
| type | $channelmode |
Definition at line 2176 of file Mp3.php.
References $version.
Referenced by GetId3\Module\Audio\Mp3\decodeMPEGaudioHeader().
Here is the caller graph for this function:| const GetId3\Module\Audio\Mp3::GETID3_MP3_VALID_CHECK_FRAMES = 35 |
Definition at line 46 of file Mp3.php.
Referenced by GetId3\Module\Audio\Mp3\RecursiveFrameScanning().