Isle
Loading...
Searching...
No Matches
flic.h
Go to the documentation of this file.
1#ifndef FLIC_H
2#define FLIC_H
3
4#include "decomp.h"
5
6#include <windows.h>
7
22 FLI_CHUNK_FRAME = 0xf1fa
23};
24
25#pragma pack(push, 1)
31typedef struct {
33 WORD type;
35
42typedef struct : FLIC_CHUNK {
43 WORD frames;
44 WORD width;
45 WORD height;
46 WORD depth;
47 WORD flags;
50#pragma pack(pop)
51
58typedef struct : FLIC_CHUNK {
59 WORD chunks;
60 WORD delay;
61 WORD reserved;
62 WORD width;
63 WORD height;
65
76 LPBITMAPINFOHEADER p_bitmapHeader,
77 BYTE* p_pixelData,
78 FLIC_HEADER* p_flcHeader,
79 FLIC_FRAME* p_flcFrame,
80 BYTE* p_decodedColorMap
81);
82
83#endif // FLIC_H
typedef DWORD(FAR PASCAL *LPCLIPPERCALLBACK)(LPDIRECTDRAWCLIPPER lpDDClipper
FLI_CHUNK_TYPE
[AI] Enumerates the chunk types used in the FLIC animation file format.
Definition: flic.h:13
@ FLI_CHUNK_FRAME
Marks the start of a FLIC animation frame. [AI].
Definition: flic.h:22
@ FLI_CHUNK_COPY
No compression; raw pixel data for the frame. [AI].
Definition: flic.h:20
@ FLI_CHUNK_COLOR64
64-level color palette info. Updates only 64 palette entries. [AI]
Definition: flic.h:16
@ FLI_CHUNK_BLACK
Entire frame is filled with color index 0 (black). [AI].
Definition: flic.h:18
@ FLI_CHUNK_LC
Byte-oriented delta compression. Encodes lines with byte-level difference encoding....
Definition: flic.h:17
@ FLI_CHUNK_SS2
Word-oriented delta compression. Efficient for lines with word-aligned runs or minimal pixel changes....
Definition: flic.h:15
@ FLI_CHUNK_PSTAMP
Postage stamp sized image for previews/thumbnails. [AI].
Definition: flic.h:21
@ FLI_CHUNK_BRUN
Byte run-length compression. Lossless RLE for frame data. [AI].
Definition: flic.h:19
@ FLI_CHUNK_COLOR256
256-level color palette info. Updates the color lookup table with 256 entries. [AI]
Definition: flic.h:14
void DecodeFLCFrame(LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_pixelData, FLIC_HEADER *p_flcHeader, FLIC_FRAME *p_flcFrame, BYTE *p_decodedColorMap)
[AI] Decodes a single FLIC (FLI/FLC) animation frame and updates the pixel data and palette.
Definition: flic.cpp:457
[AI] Represents a generic chunk header in a FLIC animation file.
Definition: flic.h:31
DWORD size
[AI] Total size of the chunk in bytes, including the header and payload/subchunks.
Definition: flic.h:32
WORD type
[AI] Chunk type identifier (see FLI_CHUNK_TYPE).
Definition: flic.h:33
[AI] Structure describing the header of a FLIC animation frame, used to organize frame subchunks and ...
Definition: flic.h:58
WORD reserved
[AI] Reserved, always zero; for alignment or future use. [AI]
Definition: flic.h:61
WORD height
[AI] Frame height override (if non-zero, overrides main animation height for this frame)....
Definition: flic.h:63
WORD delay
[AI] Delay before displaying this frame, in milliseconds. [AI]
Definition: flic.h:60
WORD chunks
[AI] Number of subchunks that compose this animation frame (palette/image/compression chunks)....
Definition: flic.h:59
WORD width
[AI] Frame width override (if non-zero, overrides main animation width for this frame)....
Definition: flic.h:62
[AI] Structure for the main header of a FLIC animation file.
Definition: flic.h:42
WORD width
[AI] Image width in pixels for the animation. [AI]
Definition: flic.h:44
DWORD speed
[AI] Playback speed—time between frames in milliseconds. [AI]
Definition: flic.h:48
WORD depth
[AI] Color depth in bits per pixel (usually 8, i.e., indexed color). [AI]
Definition: flic.h:46
WORD height
[AI] Image height in pixels for the animation. [AI]
Definition: flic.h:45
WORD flags
[AI] File format flags, usually zero or three. [AI]
Definition: flic.h:47
WORD frames
[AI] Number of animation frames in the first segment of the file (main animation)....
Definition: flic.h:43