[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/media/ -> GIFMetadataExtractor.php (summary)

GIF frame counter. Originally written in Perl by Steve Sanbeg. Ported to PHP by Andrew Garrett Deliberately not using MWExceptions to avoid external dependencies, encouraging redistribution.

File Size: 352 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

GIFMetadataExtractor:: (5 methods):
  getMetadata()
  readGCT()
  decodeBPP()
  skipBlock()
  readBlock()


Class: GIFMetadataExtractor  - X-Ref

GIF frame counter.

getMetadata( $filename )   X-Ref

param: string $filename
return: array

readGCT( $fh, $bpp )   X-Ref

param: resource $fh
param: int $bpp
return: void

decodeBPP( $data )   X-Ref

param: string $data
return: int

skipBlock( $fh )   X-Ref

param: resource $fh

readBlock( $fh, $includeLengths = false )   X-Ref
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.

param: resource $fh File handle
param: bool $includeLengths Include the length bytes of the
return: string The data.



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1