The extended header contains information that can provide further insight in the structure of the tag, but is not vital to the correct parsing of the tag information; hence the extended header is optional.
Located in /ID3/ExtendedHeader.php (line 55)
ID3_Object | --ID3_ExtendedHeader
Constructs the class with given parameters and reads object related data from the ID3v2 tag.
Returns the CRC-32 data.
Returns the flags byte.
Returns the total padding size, or simply the total tag size excluding the frames and the headers.
Returns the restrictions. For some applications it might be desired to
restrict a tag in more ways than imposed by the ID3v2 specification. Note that the presence of these restrictions does not affect how the tag is decoded, merely how it was restricted before encoding. If this flag is set the tag is restricted as follows:
Restrictions %ppqrrstt p - Tag size restrictions 00 No more than 128 frames and 1 MB total tag size. 01 No more than 64 frames and 128 KB total tag size. 10 No more than 32 frames and 40 KB total tag size. 11 No more than 32 frames and 4 KB total tag size. q - Text encoding restrictions 0 No restrictions 1 Strings are only encoded with ISO-8859-1 or UTF-8. r - Text fields size restrictions 00 No restrictions 01 No string is longer than 1024 characters. 10 No string is longer than 128 characters. 11 No string is longer than 30 characters. Note that nothing is said about how many bytes is used to represent those characters, since it is encoding dependent. If a text frame consists of more than one string, the sum of the strungs is restricted as stated. s - Image encoding restrictions 0 No restrictions 1 Images are encoded only with PNG [PNG] or JPEG [JFIF]. t - Image size restrictions 00 No restrictions 01 All images are 256x256 pixels or smaller. 10 All images are 64x64 pixels or smaller. 11 All images are exactly 64x64 pixels, unless required otherwise.
Returns the extended header size in bytes.
Checks whether or not the flag is set. Returns true if the flag is set, false otherwise.
Sets the CRC-32. The CRC-32 value is calculated of all the frames in the tag and includes padding.
Sets the flags byte.
Sets the total padding size, or simply the total tag size excluding the frames and the headers.
Sets the restrictions byte. See #getRestrictions for more.
Sets whether the CRC-32 should be generated upon tag write.
Returns the header raw data.
Inherited From ID3_Object
ID3_Object::__construct()
ID3_Object::decodeSynchsafe32()
ID3_Object::decodeUnsynchronisation()
ID3_Object::encodeSynchsafe32()
ID3_Object::encodeUnsynchronisation()
ID3_Object::explodeString8()
ID3_Object::explodeString16()
ID3_Object::getOption()
ID3_Object::getOptions()
ID3_Object::setOption()
ID3_Object::setOptions()
ID3_Object::__get()
ID3_Object::__set()
A flag to denote whether or not the tag has restrictions applied on it.
A flag to denote that the present tag is an update of a tag found earlier in the present file or stream. If frames defined as unique are found in the present tag, they are to override any corresponding ones found in the earlier tag. This flag has no corresponding data.
Documentation generated on Fri, 05 Sep 2008 20:18:38 +0300 by phpDocumentor 1.4.1