|
MediaWiki
REL1_23
|
GIF frame counter. More...
Static Public Member Functions | |
| static | decodeBPP ($data) |
| static | getMetadata ($filename) |
| static | readBlock ($fh, $includeLengths=false) |
| Read a block. | |
| static | readGCT ($fh, $bpp) |
| static | skipBlock ($fh) |
Public Attributes | |
| const | MAX_SUBBLOCKS = 262144 |
| const | VERSION = 1 |
Static Private Attributes | |
| static | $gifExtensionSep |
| static | $gifFrameSep |
| static | $gifTerm |
GIF frame counter.
Definition at line 34 of file GIFMetadataExtractor.php.
| static GIFMetadataExtractor::decodeBPP | ( | $ | data | ) | [static] |
| string | $data |
| Exception |
Definition at line 282 of file GIFMetadataExtractor.php.
Referenced by getMetadata().
| static GIFMetadataExtractor::getMetadata | ( | $ | filename | ) | [static] |
| Exception |
| string | $filename |
Definition at line 56 of file GIFMetadataExtractor.php.
References $comment, $term, array(), decodeBPP(), UtfNormal\quickIsNFCVerify(), readBlock(), readGCT(), skipBlock(), wfDebug(), wfRestoreWarnings(), and wfSuppressWarnings().
Referenced by GIFMetadataExtractorTest\testGetMetadata().
| static GIFMetadataExtractor::readBlock | ( | $ | fh, |
| $ | includeLengths = false |
||
| ) | [static] |
Read a block.
In the GIF format, a block is made up of several sub-blocks. Each sub block starts with one byte saying how long the sub-block is, followed by the sub-block. The entire block is terminated by a sub-block of length 0.
| resource | $fh | File handle |
| bool | $includeLengths | Include the length bytes of the sub-blocks in the returned value. Normally this is false, except XMP is weird and does a hack where you need to keep these length bytes. |
| Exception |
Definition at line 329 of file GIFMetadataExtractor.php.
Referenced by getMetadata().
| static GIFMetadataExtractor::readGCT | ( | $ | fh, |
| $ | bpp | ||
| ) | [static] |
| resource | $fh | |
| int | $bpp |
Definition at line 268 of file GIFMetadataExtractor.php.
Referenced by getMetadata().
| static GIFMetadataExtractor::skipBlock | ( | $ | fh | ) | [static] |
| resource | $fh |
| Exception |
Definition at line 300 of file GIFMetadataExtractor.php.
Referenced by getMetadata().
GIFMetadataExtractor::$gifExtensionSep [static, private] |
Definition at line 39 of file GIFMetadataExtractor.php.
GIFMetadataExtractor::$gifFrameSep [static, private] |
Definition at line 36 of file GIFMetadataExtractor.php.
GIFMetadataExtractor::$gifTerm [static, private] |
Definition at line 42 of file GIFMetadataExtractor.php.
| const GIFMetadataExtractor::MAX_SUBBLOCKS = 262144 |
Definition at line 49 of file GIFMetadataExtractor.php.
| const GIFMetadataExtractor::VERSION = 1 |
Definition at line 44 of file GIFMetadataExtractor.php.
Referenced by GIFHandler\isMetadataValid().