flt.htm
来自「刚刚看到本站有Visual C++数字图象处理(人民邮电出版社)的电子书」· HTM 代码 · 共 325 行 · 第 1/2 页
HTM
325 行
size byte, which has the reverse meaning of in the block type 15.</pre>
<pre>--- block type 7 (fli_ss2) - word aligned delta compression</pre>
<pre>this format contains the differences between consecutive frames. this is the
format most often used by animator pro for frames other than the first frame of
an animation. it is similar to the line coded delta (lc) compression, but is
word oriented instead of byte oriented. the data is organized into lines and
each line is organized into packets.</pre>
<pre>the first word in the data following the block header contains the number of
lines in the block. each line can begin with some optional words that are used
to skip lines and set the last byte in the line for animations with odd widths.
these optional words are followed by a count of the packets in the line. the
line count does not include skipped lines.</pre>
<pre>the high order two bits of the word is used to determine the contents of
the word :</pre>
<pre> bit 15 bit 14 meaning</pre>
<pre> 0 0 the word contains the packet count. the packets follow
this word. the packet count can be zero; this occurs
when only the last pixel on a line changes.</pre>
<pre> 1 0 the low order byte is to be stored in the last byte of
the current line. the packet count always follows this
word.</pre>
<pre> 1 1 the word contains a line skip count. the number of
lines skipped is given by the absolute value of the
word. this word can be followed by more skip counts,
by a last byte word, or by the packet count.</pre>
<pre>the packets in each line are similar to the packets for the line coded block.
the first byte of each packet is a column skip count. the second byte is a
packet type. if the packet type is positive, the packet type is a count of words
to be copied from the packet to the animation image. if the packet type is
negative, the packet contains one more word which is to be replicated. the
absolute value of the packet type gives the number of times the word is to be
replicated. the high and low order byte in the replicated word do not
necessarily have the same value.</pre>
<pre>--- block type 18 (fli_pstamp) - postage stamp image</pre>
<pre>this block type holds a postage stamp - a reduced-size image - of the frame. it
generally appears only in the first frame block within a flic file. when
creating a postage stamp, animator pro considers the ideal size to be 100x63
pixels. the actual size will vary as needed to maintain the same aspect ratio as
the original.
the pixels in a postage stamp image are mapped into a six-cube color space,
regardless of the color palette settings for the full frame image. a six-cube
color space is formed as follows:</pre>
<pre> start at palette entry 0
for red = 0 thru 5
for green = 0 thru 5
for blue = 0 thru 5
palette_red = (red * 256)/6
palette_green = (green * 256)/6
palette_blue = (blue * 256)/6
move to next palette entry
end for blue
end for green
end for red</pre>
<pre>any arbitrary rgb value (where each component is in the range of 0-255) can be
mapped into the six-cube space using the formula:</pre>
<pre> ((6*red)/256)*36 + ((6*green)/256)*6 + ((6*blue)/256)</pre>
<pre>the full postage stamp block header is defined as follows:</pre>
<pre>offset length name description
offset count type description
0000h 1 dword size of this block, including header size
0004h 1 word id=18
0006h 1 word height of the postage stamp image
0008h 1 word width of the image
000ah 1 word color translation type :
1 - six-cube color space</pre>
<pre>immediately following this header is the postage stamp data. the data is
formatted as a block with standard size/type header. the type will be one of:</pre>
<pre> 15 fps_brun byte run length compression
16 fps_copy no compression
18 fps_xlat256 six-cube color xlate table</pre>
<pre>the fps_brun and fps_copy types are identical to the fli_brun and fli_copy
encoding methods described above.</pre>
<pre>the fps_xlat256 type indicates that the block contains a 256-byte color
translation table instead of pixel data. to process this type of postage stamp,
read the pixel data for the full-sized frame image, and translate its pixels
into six-cube space using a lookup in the 256-byte color translation table. this
type of postage stamp appears when the size of the animation frames is smaller
than the standard 100x63 postage stamp size.
*************
twe - tween data files</pre>
<pre>a twe file holds information about a tweening operation set up
via the tween menus. the information includes the starting and
ending shapes, and the optional userd specified links between the
shapes. animator pro creates tween files.</pre>
<pre>a twe file begins with an 8-byte header defined as follows:</pre>
<pre>offset length name description</pre>
<pre> 0 2 magic file format identifier. always hex 1995.</pre>
<pre> 2 2 version the file format version; always zero.</pre>
<pre> 4 4 tcount the number of tween shapes in the file;
always 2.</pre>
<pre> 8 8 reserved unused space; set to zeroes.</pre>
<pre> 16 4 linkcount the number of link entries in the file.</pre>
<pre>immediately following the file header are the link entries. if
the linkcount value is zero there are no links. each link entry
is a pair of 32-bit integers. the first value in each pair is the
index of the point in the first shape, and the second value is
the index of the point in the ending shape. (ie, a link value of
2,7 says to link the second starting-shape point to the seventh
ending-shape point.)</pre>
<pre>following the link entries is the data block that describes the
starting shape, then the data block that describes the ending
shape. the format of these blocks is identical to that of the
polygon (ply) file, including file header data. in other words,
they appear as if a pair of polygon files are embedded in the
tween file at this point.</pre>
<pre>**********
opt - optics menu settings files
</pre>
<pre>an opt file holds information about an optics operation set up
via the optics menus. both animator pro and the original
animator create opt files. the file format is the same for both.</pre>
<pre>an opt file starts with a 4-byte header, as follows:</pre>
<pre>offset length name description</pre>
<pre> 0 2 magic file type identifier. always hex 1a3f.</pre>
<pre> 2 2 count number of records in the file.</pre>
<pre>following the file header are optics records of 50 bytes each. a
record is generated for each click on continue move in the optics
menu. the move records are formatted as follows:</pre>
<pre>offset length name description</pre>
<pre> 0 4 link in the file, this field is always zero.
in memory, it's a pointer to the next
move record.</pre>
<pre> 4 6 spincenter the x,y,z coordinates of the spin
center point; three 16-bit values.</pre>
<pre> 10 6 spinaxis the x,y,z coordinates of the spin axis;
three 16-bit values.</pre>
<pre> 16 6 spinturns the x,y,z coordinates of the spin turns;
three 16-bit values.</pre>
<pre> 22 4 spininter intermediate turns. two 16-bit values.
these are values for a conjugation matrix
that corresponds to spin axis.</pre>
<pre> 26 6 sizecenter the x,y,z coordinates of the size
center point; three 16-bit values.</pre>
<pre> 32 2 xmultiplier determines (along with xdivisor)
how to scale along x dimension.</pre>
<pre> 34 2 xdivisor determines (along with xmultiplier) how
to scale along x dimension.</pre>
<pre> 36 2 ymultiplier determines (along with ydivisor)
how to scale along y dimension.</pre>
<pre> 38 2 ydivisor determines (along with ymultiplier) how
to scale along y dimension.</pre>
<pre> 40 2 bothmult like xmultiplier, but applied to both
dimensions.</pre>
<pre> 42 2 bothdiv like xdivisor, but applied to both
dimensions.</pre>
<pre> 44 6 linearmove the x,y,z offset for a linear move;
three 16-bit values.</pre>
<pre>extension:flt
occurences:pc
programs:autodesk animator pro
reference:
see also:flic
validation:</pre>
</td>
</tr>
</table>
</center></div>
<p align="center"><a href="../index.htm">返回</a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?