tga.htm ( File view )

  • By 2010-07-31
  • View(s):8
  • Download(s):0
  • Point(s): 1
			<html>

<head>
<title>file:///d:/程序资料/format2/tga.txt</title>
</head>

<body background="../jpg/di1.JPG">

<p align="center"><font size="6" color="#0000ff">tga format</font></p>
<div align="center"><center>

<table border="0" width="80%">
  <tr>
    <td width="100%"><pre>this file has been created to satisfy numerous requests for information
on targa image file formats.  the information has been taken from
appendix c of the truevision technical guide.  requests for further
information could be directed to:</pre>
    <pre>           at&amp;t
           electronic photography and imaging center
           2002 wellesley ave.
           indianapolis, in 42619</pre>
    <pre>this document does not pretend to be complete, but it does pretend to
be accurate.  if you discover any finger checks or erroneous information
please let me know, ( david mcduffee, 75530,2626), and i will upload the
corrections.  thanks.</pre>
    <pre>the lack of completeness is due to the fact that the targa recognizes
over half a dozen image file formats, some of which are more widely
used than others.  i have chosen to re-key the details on only those
formats which i actually use.  again, if you want to know more about
formats not covered here, you could contact your truevision representative.</pre>
    <pre>all targa formats are identified by a data type field, which is a one
byte binary integer located in byte three of the file.  the various
file types specified by this field are as follows:</pre>
    <pre>       0  -  no image data included.
       1  -  uncompressed, color-mapped images.
       2  -  uncompressed, rgb images.
       3  -  uncompressed, black and white images.
       9  -  runlength encoded color-mapped images.
      10  -  runlength encoded rgb images.
      11  -  compressed, black and white images.
      32  -  compressed color-mapped data, using huffman, delta, and
                    runlength encoding.
      33  -  compressed color-mapped data, using huffman, delta, and
                    runlength encoding.  4-pass quadtree-type process.</pre>
    <pre>this document will describe only four formats: 1, 2, 9, and 10.


</pre>
    <pre>--------------------------------------------------------------------------------
data type 1:  color-mapped images.                                             |
_______________________________________________________________________________|
| offset | length |                     description                            |
|--------|--------|------------------------------------------------------------|
|--------|--------|------------------------------------------------------------|
|    0   |     1  |  number of characters in identification field.             |
|        |        |                                                            |
|        |        |  this field is a one-byte unsigned integer, specifying     |
|        |        |  the length of the image identification field.  its range  |
|        |        |  is 0 to 255.  a value of 0 means that no image            |
|        |        |  identification field is included.                         |
|        |        |                                                            |
|--------|--------|------------------------------------------------------------|
|    1   |     1  |  color map type.                                           |
|        |        |                                                            |
|        |        |  this field contains a binary 1 for data type 1 images.    |
|        |        |                                                            |
|--------|--------|------------------------------------------------------------|
|    2   |     1  |  image type code.                                          |
|        |        |                                                            |
|        |        |  this field will always contain a binary 1.                |
|        |        |  ( that's what makes it data type 1 ).                     |
|        |        |                                                            |
|--------|--------|------------------------------------------------------------|
|    3   |     5  |  color map specification.                                  |
|        |        |                                                            |
|    3   |     2  |  color map origin.                                         |
|        |        |  integer ( lo-hi ) index of first color map entry.         |
|        |        |                                                            |
|    5   |     2  |  color map length.                                         |
|        |        |  integer ( lo-hi ) count of color map entries.             |
|        |        |                                                            |
|    7   |     1  |  color map entry size.                                     |
|        |        |  number of bits in each color map entry.  16 for           |
|        |        |  the targa 16, 24 for the targa 24, 32 for the targa 32.   |
|        |        |                                                            |
|--------|--------|------------------------------------------------------------|
|    8   |    10  |  image specification.                                      |
|        |        |                                                            |
|    8   |     2  |  x origin of image.                                        |
|        |        |  integer ( lo-hi ) x coordinate of the lower left corner   |
|        |        |  of the image.                                             |
|        |        |                                                            |
|   10   |     2  |  y origin of image.                                        |
|        |        |  integer ( lo-hi ) y coordinate of the lower left corner   |
|        |        |  of the image.                                             |
|        |        |                                                            |
|   12   |     2  |  width of image.                                           |
|        |        |  integer ( lo-hi ) width of the image in pixels.           |
|        |        |                                                            |
|   14   |     2  |  height of image.                                          |
|        |        |  integer ( lo-hi ) height of the image in pixels.          |
|        |        |                                                            |
|   16   |     1  |  image pixel size.                                         |
|        |        |  number of bits in a stored pixel index.                   |
|        |        |                                                            |
|   17   |     1  |  image descriptor byte.                                    |
|        |        |  bits 3-0 - number of attribute bits associated with each  |
|        |        |             pixel.                                         |
|        |        |  bit 4    - reserved.  must be set to 0.                   |
|        |        |  bit 5    - screen origin bit.                             |
|        |        |             0 = origin in lower left-hand corner.          |
|        |        |             1 = origin in upper left-hand corner.          |
|        |        |             must be 0 for truevision images.               |
|        |        |  bits 7-6 - data storage interleaving flag.                |
|        |        |             00 = non-interleaved.                          |
|        |        |             01 = two-way (even/odd) interleaving.          |
|        |        |             10 = four way interleaving.                    |
|        |        |             11 = reserved.                                 |
|        |        |  this entire byte should be set to 0.  don't ask me.       |
|        |        |                                                            |
|--------|--------|------------------------------------------------------------|
|   18   | varies |  image identification field.                               |
|        |        |  contains a free-form identification field of the length   |
|        |        |  specified in byte 1 of the image record.  it's usually    |
|        |        |  omitted ( length in byte 1 = 0 ), but can be up to 255    |
|        |        |  characters.  if more identification information is        |
|        |        |  required, it can be stored after the image data.          |
|        |        |                                                            |
|--------|--------|------------------------------------------------------------|
| varies | varies |  color map data.                                           |
|        |        |                                                            |
|        |        |  the offset is determined by the size of the image         |
|        |        |  identification field.  the length is determined by        |
|        |        |  the color map specification, which describes the          |
|        |        |  size of each entry and the number of entries.             |
|        |        |  each color map entry is 2, 3, or 4 bytes.                 |
|        |        |  unused bits are assumed to specify attribute bits.        |
|        |        |                                                            |
|        |        |  the 4 byte entry contains 1 byte for blue, 1 byte         |
|        |        |  for green, 1 byte for red, and 1 byte of attribute        |
|        |        |  information, in that order.
|        |        |                                                            |
|        |        |  the 3 byte entry contains 1 byte each of blue, green,     |
|        |        |  and red.                                                  |
|        |        |                                                            |
|        |        |  the 2 byte entry is broken down as follows:               |
|        | 
...
...
(Not finished, please download and read the complete file)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
index.htm66.63 kB24-03-99|22:05
binary0.00 B27-01-04|20:12
arc.htm4.53 kB18-03-99|04:12
ARJ.htm8.27 kB18-03-99|04:12
cab.zip43.49 kB11-12-98|03:08
lzh.htm2.08 kB18-03-99|04:12
tar.htm12.38 kB18-03-99|04:12
comm0.00 B27-01-04|20:12
clarion.zip32.79 kB11-12-98|03:09
dbase.htm5.56 kB18-03-99|04:12
dbf.htm2.99 kB18-03-99|04:12
ntx.htm11.44 kB18-03-99|04:12
paradox.rtf61.50 kB29-01-99|17:09
wks.zip22.04 kB11-12-98|03:09
xls.txt44.32 kB29-01-99|17:30
data0.00 B27-01-04|20:12
ai30.pdf260.00 kB29-03-98|22:54
bmp.htm46.13 kB18-03-99|04:12
Bmp.html37.97 kB18-03-99|04:12
BW.htm2.71 kB18-03-99|04:12
col.htm2.02 kB18-03-99|04:12
draft-bo.rtf240.19 kB14-03-99|00:24
dwg_ff.htm11.31 kB18-03-99|04:12
dxf.htm86.74 kB18-03-99|04:12
dxf12.htm140.73 kB18-03-99|04:12
dxf13.zip143.43 kB11-12-98|02:44
dxf14htm.zip160.37 kB11-12-98|02:48
DXF_R14.HLP201.27 kB24-06-98|19:27
emf.hlp73.22 kB17-10-95|23:53
gif87.htm29.98 kB18-03-99|04:12
Gif89a.doc83.47 kB29-10-90|08:27
grap.htm14.76 kB18-03-99|04:12
Ico.zip114.21 kB27-01-99|19:13
jpg.pdf93.35 kB29-03-98|22:59
jpg.rtf15.97 kB23-01-99|01:36
lzw.htm6.44 kB18-03-99|04:12
lzwexp.htm17.13 kB18-03-99|04:12
PCD.htm5.46 kB18-03-99|04:12
pcx.htm26.13 kB18-03-99|04:12
pic.htm4.49 kB18-03-99|04:12
PSD.pdf368.64 kB18-04-97|19:01
ps_plug.pdf377.16 kB29-03-98|22:59
rle.pdf31.59 kB29-03-98|23:06
tga.htm45.46 kB18-03-99|04:12
tga2.zip54.38 kB10-12-98|19:48
tif.pdf365.72 kB29-03-98|23:07
YUV.htm3.96 kB18-03-99|04:12
graphics0.00 B27-01-04|20:12
agentref.zip11.06 kB11-12-98|03:18
bbs.htm12.85 kB18-03-99|04:12
bluewave.htm43.85 kB18-03-99|04:12
idx.htm3.68 kB18-03-99|04:12
url.htm1.61 kB18-03-99|04:12
uuencode.htm11.10 kB18-03-99|04:12
Vrml.rtf70.88 kB28-01-99|14:10
VRML2.hlp181.23 kB21-02-98|20:57
internet0.00 B27-01-04|20:12
jpg0.00 B27-01-04|20:12
escode.rtf49.26 kB08-02-99|21:53
Intel.rtf130.99 kB08-02-99|21:50
joystick.rtf14.53 kB08-02-99|21:57
keyboard.rtf14.81 kB08-02-99|21:59
mouse.rtf15.75 kB08-02-99|22:00
pcl5.zip92.62 kB13-12-98|04:33
speaker.rtf16.96 kB08-02-99|22:04
VGA.htm29.31 kB18-03-99|04:12
other0.00 B27-01-04|20:12
cd.htm26.36 kB18-03-99|04:12
cda.htm2.98 kB18-03-99|04:12
mid1.htm16.87 kB18-03-99|04:12
midi2.htm12.08 kB18-03-99|04:12
midi3.htm10.51 kB18-03-99|04:12
MIND1-2.htm7.09 kB18-03-99|04:12
MPEG.zip573.61 kB11-12-98|04:02
mpeg1.zip65.24 kB11-12-98|03:45
Wav.rtf30.08 kB25-01-99|00:30
wave.htm104.17 kB18-03-99|04:12
sound0.00 B27-01-04|20:12
adobe_EPSF1_2.pdf12.64 kB29-03-98|22:51
adobe_EPSF2_0.pdf42.59 kB29-03-98|22:51
adobe_EPSF3_0.pdf127.45 kB29-03-98|22:54
afont.htm9.14 kB18-03-99|04:12
font.htm17.99 kB18-03-99|04:12
rtf.rtf158.74 kB25-01-99|01:41
rtf.zip147.10 kB11-12-98|03:32
word60.rtf463.82 kB25-01-99|03:24
word8.htm532.04 kB18-03-99|04:12
Wordpf.htm3.29 kB18-03-99|04:12
wordst.htm51.88 kB18-03-99|04:12
wri.htm21.84 kB18-03-99|04:12
text0.00 B27-01-04|20:13
ani.htm3.05 kB18-03-99|04:12
Bmp.html33.82 kB18-03-99|04:12
cab.zip43.49 kB11-12-98|03:08
cal.htm5.64 kB18-03-99|04:12
clp.htm2.33 kB18-03-99|04:12
crd.htm4.59 kB18-03-99|04:12
find.htm4.38 kB18-03-99|04:12
grp.htm8.54 kB18-03-99|04:12
Hlp.htm57.27 kB18-03-99|04:12
Hpj.doc71.12 kB14-01-93|06:22
Ico.zip114.21 kB27-01-99|19:13
icons.htm28.52 kB18-03-99|04:12
inf.htm2.74 kB18-03-99|04:12
Lnk.htm5.24 kB18-03-99|04:12
LONG.htm3.15 kB18-03-99|04:12
reg.htm11.13 kB18-03-99|04:12
res32.htm16.18 kB18-03-99|04:12
rle.pdf31.59 kB29-03-98|23:06
rtfwr.htm8.10 kB18-03-99|04:12
scr.htm1.69 kB18-03-99|04:12
ttfspec1.zip752.40 kB28-01-99|12:00
ttfspec2.zip501.01 kB27-01-99|20:51
Wav.rtf30.08 kB25-01-99|00:30
wave.htm101.51 kB18-03-99|04:12
wavec.htm205.63 kB18-03-99|04:12
WinReg.htm22.02 kB18-03-99|04:12
wmf.htm11.82 kB18-03-99|04:12
wri.htm21.84 kB18-03-99|04:12
windows0.00 B27-01-04|20:13
FORMAT0.00 B27-01-04|20:12
文件格式大全0.00 B27-01-04|20:12
...
Sponsored links

tga.htm (4.88 MB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D