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

static $CRC_size
static $png_sig
static $text_chunks

Static Private Member Functions

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

Detailed Description

PNG frame counter.

Definition at line 17 of file PNGMetadataExtractor.php.


Member Function Documentation

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

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

Parameters:
$fhresource The file handle
$sizeInteger size in bytes.
Exceptions:
Exceptionif too big.
Returns:
String The chunk.

Definition at line 404 of file PNGMetadataExtractor.php.

References $size.

Referenced by getMetadata().

Here is the caller graph for this function:


Member Data Documentation

PNGMetadataExtractor::$CRC_size [static]

Definition at line 19 of file PNGMetadataExtractor.php.

PNGMetadataExtractor::$png_sig [static]

Definition at line 18 of file PNGMetadataExtractor.php.

PNGMetadataExtractor::$text_chunks [static]

Definition at line 20 of file PNGMetadataExtractor.php.

Definition at line 23 of file PNGMetadataExtractor.php.


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