Difference between revisions of "Electronic Arts TGV"

From MultimediaWiki
Jump to navigation Jump to search
(NFS sound chunk types)
m (TGV moved to Electronic Arts TGV)
(No difference)

Revision as of 01:10, 27 March 2006

TGV is a multimedia format used in various games published by companies under the Electronic Arts umbrella. It is suspected to use a vector quantizer for video coding.

Data Format

All multi-byte numbers in TGV files are stored in little endian format. TGV files are comprised of a series of chunks with the following format:

bytes 0-3     chunk type FourCC
bytes 4-7     chunk length (including this 8-byte preamble)
bytes 8..     chunk payload

The following data chunk types are known to occur in TGV files:

SEAD, 1SNh

Possibly stands for 'Sound hEADer'. This chunk contains parameters to initialize audio decoding and has the following layout:

bytes 0-3     'SEAD'
bytes 4-7     chunk length, should be 20 (0x14)
bytes 8-11    audio sample rate
bytes 12-15   probably audio channels, audio bytes/sample, or coding type
bytes 16-19   probably audio channels, audio bytes/sample, or coding type

SNDC, 1SNd

SouND Chunk. This chunk's payload contains a block of audio data after the 8-byte chunk preamble.

SEND, 1SNe

Probably stands for 'Sound End'.

kVGT

TGV keyframe. This chunk carries a keyframe coded in the TGV coding method along with the width and height of the frame:

bytes 0-3     'kVGT'
bytes 4-7     chunk length
bytes 8-11    frame width
bytes 12-15   frame height
bytes 16..    encoded video frame

fVGT

TGV interframe. This chunk carries an interframe after the 8-byte chunk preamble.

Games Using TGV