Class PelFormat

Description

Namespace for functions operating on Exif formats.

This class defines the constants that are to be used whenever one has to refer to the format of an Exif tag. They will be collectively denoted by the pseudo-type PelFormat throughout the documentation.

All the methods defined here are static, and they all operate on a single argument which should be one of the class constants.

Located in /src/PelFormat.php (line 52)


	
			
Class Constant Summary
 ASCII = 2
 BYTE = 1
 DOUBLE = 12
 FLOAT = 11
 LONG = 4
 RATIONAL = 5
 SBYTE = 6
 SHORT = 3
 SLONG = 9
 SRATIONAL = 10
 SSHORT = 8
 UNDEFINED = 7
Method Summary
static string getName (PelFormat $type)
static the getSize (PelFormat $type)
Methods
static method getName (line 177)

Returns the name of a format.

  • return: the name of the format, e.g., 'Ascii' for the ASCII format etc.
static string getName (PelFormat $type)
static method getSize (line 205)

Return the size of components in a given format.

  • return: size in bytes needed to store one component with the given format.
static the getSize (PelFormat $type)
Class Constants
ASCII = 2 (line 71)

ASCII string.

Each component will be an ASCII character.

Modelled with the PelEntryAscii class.

BYTE = 1 (line 62)

Unsigned byte.

Each component will be an unsigned 8-bit integer with a value between 0 and 255.

Modelled with the PelEntryByte class.

DOUBLE = 12 (line 166)

Double precision floating point number.

Entries with this format are not currently implemented.

FLOAT = 11 (line 159)

Floating point number.

Entries with this format are not currently implemented.

LONG = 4 (line 91)

Unsigned long.

Each component will be an unsigned 32-bit integer with a value between 0 and 4294967295.

Modelled with the PelEntryLong class.

RATIONAL = 5 (line 102)

Unsigned rational number.

Each component will consist of two unsigned 32-bit integers denoting the enumerator and denominator. Each integer will have a value between 0 and 4294967295.

Modelled with the PelEntryRational class.

SBYTE = 6 (line 112)

Signed byte.

Each component will be a signed 8-bit integer with a value between -128 and 127.

Modelled with the PelEntrySByte class.

SHORT = 3 (line 81)

Unsigned short.

Each component will be an unsigned 16-bit integer with a value between 0 and 65535.

Modelled with the PelEntryShort class.

SLONG = 9 (line 141)

Signed long.

Each component will be a signed 32-bit integer with a value between -2147483648 and 2147483647.

Modelled with the PelEntrySLong class.

SRATIONAL = 10 (line 152)

Signed rational number.

Each component will consist of two signed 32-bit integers denoting the enumerator and denominator. Each integer will have a value between -2147483648 and 2147483647.

Modelled with the PelEntrySRational class.

SSHORT = 8 (line 131)

Signed short.

Each component will be a signed 16-bit integer with a value between -32768 and 32767.

Modelled with the PelEntrySShort class.

UNDEFINED = 7 (line 121)

Undefined byte.

Each component will be a byte with no associated interpretation.

Modelled with the PelEntryUndefined class.

Documentation generated on Thu, 05 May 2011 07:19:11 +0200 by phpDocumentor 1.4.3