Package pyffi :: Package formats :: Package tga :: Class TgaFormat
[hide private]
[frames] | no frames]

Class TgaFormat

source code

              object --+        
                       |        
object_models.FileFormat --+    
                           |    
object_models.xml.FileFormat --+
                               |
                              TgaFormat

This class implements the TGA format.
Nested Classes [hide private]
  int
Basic implementation of a 32-bit signed integer type.
  uint
Implementation of a 32-bit unsigned integer type.
  byte
Implementation of a 8-bit signed integer type.
  ubyte
Implementation of a 8-bit unsigned integer type.
  char
Implementation of an (unencoded) 8-bit character.
  short
Implementation of a 16-bit signed integer type.
  ushort
Implementation of a 16-bit unsigned integer type.
  float
Implementation of a 32-bit float.
  PixelData
Basic type for undecoded data trailing at the end of a file.
  FooterString
The Targa footer signature.
  Image
  Data
Base class for representing data in a particular format.
  ColorMapEntry
  ColorMapType
An unsigned 8-bit integer, describing the color map type.
  Footer
  Header
  ImageType
An unsigned 8-bit integer, describing the image type.
  Pixel
  RLEHeader
  RLEPixels
  TgaFlags
  bool

Inherited from object_models.xml.FileFormat: __metaclass__

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from object_models.xml.FileFormat: vercondFilter

Inherited from object_models.FileFormat: name_attribute, name_class, name_parts, walk, walkData

Static Methods [hide private]

Inherited from object_models.FileFormat: version_number

Class Variables [hide private]
  xml_file_name = 'tga.xml'
Override.
  xml_file_path = [None, '/usr/lib/python2.7/site-packages/pyffi...
Override.
  RE_FILENAME = re.compile(r'(?i)^.*\.tga$')
Override this with a regular expression (the result of a re.compile call) for the file extension of the format you are implementing.
  games = {}
  versions = {}
  xml_alias = [<class 'pyffi.formats.tga.bool'>]
  xml_bit_struct = [<class 'pyffi.formats.tga.TgaFlags'>, <class...
  xml_enum = [<class 'pyffi.formats.tga.ImageType'>, <class 'pyf...
  xml_struct = [<class 'pyffi.formats.tga.ColorMapEntry'>, <clas...

Inherited from object_models.xml.FileFormat: logger

Inherited from object_models.FileFormat: ARCHIVE_CLASSES

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

xml_file_path

Override.
Value:
[None, '/usr/lib/python2.7/site-packages/pyffi/formats/tga']

xml_bit_struct

Value:
[<class 'pyffi.formats.tga.TgaFlags'>,
 <class 'pyffi.formats.tga.RLEHeader'>]

xml_enum

Value:
[<class 'pyffi.formats.tga.ImageType'>,
 <class 'pyffi.formats.tga.ColorMapType'>]

xml_struct

Value:
[<class 'pyffi.formats.tga.ColorMapEntry'>,
 <class 'pyffi.formats.tga.Pixel'>,
 <class 'pyffi.formats.tga.RLEPixels'>,
 <class 'pyffi.formats.tga.Header'>,
 <class 'pyffi.formats.tga.Footer'>]