MediaWiki  REL1_24
PNGMetadataExtractor Class Reference

PNG frame counter. More...

List of all members.

Static Public Member Functions

static getMetadata ($filename)

Public Attributes

const MAX_CHUNK_SIZE = 3145728
const VERSION = 1

Static Private Member Functions

static read ($fh, $size)
 Read a chunk, checking to make sure its not too big.

Static Private Attributes

static $crcSize
static $pngSig
static $textChunks

Detailed Description

PNG frame counter.

Definition at line 33 of file PNGMetadataExtractor.php.


Member Function Documentation

static PNGMetadataExtractor::read ( fh,
size 
) [static, private]

Read a chunk, checking to make sure its not too big.

Parameters:
resource$fhThe file handle
int$sizeSize in bytes.
Exceptions:
ExceptionIf too big
Returns:
string The chunk.

Definition at line 419 of file PNGMetadataExtractor.php.

References $size.

Referenced by getMetadata().


Member Data Documentation

PNGMetadataExtractor::$crcSize [static, private]

Definition at line 38 of file PNGMetadataExtractor.php.

PNGMetadataExtractor::$pngSig [static, private]

Definition at line 35 of file PNGMetadataExtractor.php.

PNGMetadataExtractor::$textChunks [static, private]

Definition at line 41 of file PNGMetadataExtractor.php.

Definition at line 44 of file PNGMetadataExtractor.php.

Definition at line 43 of file PNGMetadataExtractor.php.

Referenced by PNGHandler\isMetadataValid().


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