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 |
◆ 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 324 of file GIFMetadataExtractor.php.
Referenced by getMetadata().
◆ readGCT()
static GIFMetadataExtractor::readGCT |
( |
| $fh, |
|
|
| $bpp ) |
|
static |
◆ skipBlock()
static GIFMetadataExtractor::skipBlock |
( |
| $fh | ) |
|
|
static |
◆ $gifExtensionSep
string GIFMetadataExtractor::$gifExtensionSep |
|
staticprivate |
◆ $gifFrameSep
string GIFMetadataExtractor::$gifFrameSep |
|
staticprivate |
◆ $gifTerm
string 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: