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 /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
 string getName (PelFormat $type)
 the getSize (PelFormat $type)
Methods
getName (line 149)

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)
getSize (line 176)

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 67)

ASCII string

Each component will be an ASCII character.

BYTE = 1 (line 60)

Unsigned byte.

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

DOUBLE = 12 (line 138)

Double precision floating point number.

FLOAT = 11 (line 135)

Floating point number.

LONG = 4 (line 83)

Unsigned long.

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

RATIONAL = 5 (line 92)

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.

SBYTE = 6 (line 100)

Signed byte.

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

SHORT = 3 (line 75)

Unsigned short.

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

SLONG = 9 (line 123)

Signed long.

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

SRATIONAL = 10 (line 132)

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.

SSHORT = 8 (line 115)

Signed short.

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

UNDEFINED = 7 (line 107)

Undefined byte.

Each component will be a byte with no associated interpretation.

SourceForge.net Logo Documentation generated on Wed, 21 Jul 2004 19:13:09 +0200 by phpDocumentor 1.3.0RC3