GIF frame counter.
More...
GIF frame counter.
Definition at line 34 of file GIFMetadataExtractor.php.
◆ decodeBPP()
static GIFMetadataExtractor::decodeBPP |
( |
|
$data | ) |
|
|
staticprivate |
◆ getMetadata()
static GIFMetadataExtractor::getMetadata |
( |
|
$filename | ) |
|
|
static |
◆ readBlock()
static GIFMetadataExtractor::readBlock |
( |
|
$fh, |
|
|
|
$includeLengths = false |
|
) |
| |
|
staticprivate |
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 339 of file GIFMetadataExtractor.php.
Referenced by getMetadata().
◆ readGCT()
static GIFMetadataExtractor::readGCT |
( |
|
$fh, |
|
|
|
$bpp |
|
) |
| |
|
staticprivate |
◆ skipBlock()
static GIFMetadataExtractor::skipBlock |
( |
|
$fh | ) |
|
|
staticprivate |
◆ $gifExtensionSep
string GIFMetadataExtractor::$gifExtensionSep |
|
staticprivate |
◆ $gifFrameSep
string GIFMetadataExtractor::$gifFrameSep |
|
staticprivate |
◆ $gifTerm
string GIFMetadataExtractor::$gifTerm |
|
staticprivate |
◆ MAX_SUBBLOCKS
const GIFMetadataExtractor::MAX_SUBBLOCKS = 262144 |
|
private |
◆ VERSION
const GIFMetadataExtractor::VERSION = 1 |
The documentation for this class was generated from the following file: