GIF frame counter.
More...
GIF frame counter.
Definition at line 34 of file GIFMetadataExtractor.php.
◆ decodeBPP()
static GIFMetadataExtractor::decodeBPP |
( |
|
$data | ) |
|
|
static |
◆ getMetadata()
static GIFMetadataExtractor::getMetadata |
( |
|
$filename | ) |
|
|
static |
- Exceptions
-
- Parameters
-
- Returns
- array
Definition at line 56 of file GIFMetadataExtractor.php.
References $comment, $term, array(), decodeBPP(), UtfNormal\quickIsNFCVerify(), readBlock(), readGCT(), skipBlock(), wfDebug(), wfRestoreWarnings(), and wfSuppressWarnings().
Referenced by BitmapMetadataHandler\GIF().
◆ readBlock()
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.
- Parameters
-
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. |
- Exceptions
-
- Returns
- string The data.
Definition at line 329 of file GIFMetadataExtractor.php.
Referenced by getMetadata().
◆ readGCT()
static GIFMetadataExtractor::readGCT |
( |
|
$fh, |
|
|
|
$bpp |
|
) |
| |
|
static |
◆ skipBlock()
static GIFMetadataExtractor::skipBlock |
( |
|
$fh | ) |
|
|
static |
◆ $gifExtensionSep
GIFMetadataExtractor::$gifExtensionSep |
|
staticprivate |
◆ $gifFrameSep
GIFMetadataExtractor::$gifFrameSep |
|
staticprivate |
◆ $gifTerm
GIFMetadataExtractor::$gifTerm |
|
staticprivate |
◆ MAX_SUBBLOCKS
const GIFMetadataExtractor::MAX_SUBBLOCKS = 262144 |
◆ VERSION
const GIFMetadataExtractor::VERSION = 1 |
The documentation for this class was generated from the following file: