MediaWiki  REL1_19
GIFMetadataExtractor Class Reference

GIF frame counter. More...

List of all members.

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 Public Attributes

static $gif_extension_sep
static $gif_frame_sep
static $gif_term

Detailed Description

GIF frame counter.

Definition at line 19 of file GIFMetadataExtractor.php.


Member Function Documentation

static GIFMetadataExtractor::decodeBPP ( data) [static]
Parameters:
$data
Returns:
int

Definition at line 250 of file GIFMetadataExtractor.php.

Referenced by getMetadata().

Here is the caller graph for this function:

static GIFMetadataExtractor::getMetadata ( filename) [static]
Exceptions:
Exception
Parameters:
$filenamestring
Returns:
array

Definition at line 36 of file GIFMetadataExtractor.php.

References $comment, decodeBPP(), UtfNormal\quickIsNFCVerify(), readBlock(), readGCT(), skipBlock(), wfDebug(), wfRestoreWarnings(), and wfSuppressWarnings().

Referenced by BitmapMetadataHandler\GIF(), and GIFMetadataExtractorTest\testGetMetadata().

Here is the call graph for this function:

Here is the caller graph for this function:

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:
$fhFileHandle
$includeLengthsBoolean 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.
Returns:
The data.

Definition at line 291 of file GIFMetadataExtractor.php.

Referenced by getMetadata().

Here is the caller graph for this function:

static GIFMetadataExtractor::readGCT ( fh,
bpp 
) [static]
Parameters:
$fh
$bpp
Returns:
void

Definition at line 238 of file GIFMetadataExtractor.php.

Referenced by getMetadata().

Here is the caller graph for this function:

static GIFMetadataExtractor::skipBlock ( fh) [static]
Parameters:
$fh
Returns:

Definition at line 266 of file GIFMetadataExtractor.php.

Referenced by getMetadata().

Here is the caller graph for this function:


Member Data Documentation

GIFMetadataExtractor::$gif_extension_sep [static]

Definition at line 21 of file GIFMetadataExtractor.php.

GIFMetadataExtractor::$gif_frame_sep [static]

Definition at line 20 of file GIFMetadataExtractor.php.

GIFMetadataExtractor::$gif_term [static]

Definition at line 22 of file GIFMetadataExtractor.php.

Definition at line 29 of file GIFMetadataExtractor.php.


The documentation for this class was generated from the following file: