Isle
Loading...
Searching...
No Matches
flic.cpp File Reference
#include "flic.h"
Include dependency graph for flic.cpp:

Go to the source code of this file.

Functions

void WritePixel (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_pixelData, short p_column, short p_row, byte p_pixel)
 
void WritePixels (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_pixelData, short p_column, short p_row, BYTE *p_data, short p_count)
 
int ClampLine (LPBITMAPINFOHEADER p_bitmapHeader, short &p_column, short &p_row, short &p_count)
 
void WritePixelRun (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_pixelData, short p_column, short p_row, byte p_pixel, short p_count)
 
void WritePixelPairs (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_pixelData, short p_column, short p_row, WORD p_pixel, short p_count)
 
short DecodeChunks (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_pixelData, FLIC_HEADER *p_flcHeader, FLIC_FRAME *p_flcFrame, BYTE *p_flcSubchunks, BYTE *p_decodedColorMap)
 
void DecodeColors256 (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_data)
 
void DecodeColorPackets (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_data)
 
void DecodeColorPacket (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_data, short p_index, short p_count)
 
void DecodeColors64 (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_data)
 
void DecodeBrun (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_pixelData, BYTE *p_data, FLIC_HEADER *p_flcHeader)
 
void DecodeLC (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_pixelData, BYTE *p_data, FLIC_HEADER *p_flcHeader)
 
void DecodeSS2 (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_pixelData, BYTE *p_data, FLIC_HEADER *p_flcHeader)
 
void DecodeBlack (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_pixelData, BYTE *p_data, FLIC_HEADER *p_flcHeader)
 
void DecodeCopy (LPBITMAPINFOHEADER p_bitmapHeader, BYTE *p_pixelData, BYTE *p_data, FLIC_HEADER *p_flcHeader)
 
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. More...
 

Function Documentation

◆ ClampLine()

int ClampLine ( LPBITMAPINFOHEADER  p_bitmapHeader,
short &  p_column,
short &  p_row,
short &  p_count 
)

Definition at line 91 of file flic.cpp.

◆ DecodeBlack()

void DecodeBlack ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_pixelData,
BYTE *  p_data,
FLIC_HEADER p_flcHeader 
)

Definition at line 421 of file flic.cpp.

◆ DecodeBrun()

void DecodeBrun ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_pixelData,
BYTE *  p_data,
FLIC_HEADER p_flcHeader 
)

Definition at line 278 of file flic.cpp.

◆ DecodeChunks()

short DecodeChunks ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_pixelData,
FLIC_HEADER p_flcHeader,
FLIC_FRAME p_flcFrame,
BYTE *  p_flcSubchunks,
BYTE *  p_decodedColorMap 
)

Definition at line 175 of file flic.cpp.

◆ DecodeColorPacket()

void DecodeColorPacket ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_data,
short  p_index,
short  p_count 
)

Definition at line 255 of file flic.cpp.

◆ DecodeColorPackets()

void DecodeColorPackets ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_data 
)

Definition at line 231 of file flic.cpp.

◆ DecodeColors256()

void DecodeColors256 ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_data 
)

Definition at line 224 of file flic.cpp.

◆ DecodeColors64()

void DecodeColors64 ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_data 
)

Definition at line 271 of file flic.cpp.

◆ DecodeCopy()

void DecodeCopy ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_pixelData,
BYTE *  p_data,
FLIC_HEADER p_flcHeader 
)

Definition at line 442 of file flic.cpp.

◆ DecodeFLCFrame()

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.

[AI] Reads the frame, applies decompression and color/palette updates, and writes the updated result into the destination bitmap.

Parameters
p_bitmapHeader[AI] Pointer to the Windows DIB BITMAPINFOHEADER structure describing the destination bitmap. Must match the dimensions of the FLIC data.
p_pixelData[AI] Pointer to the raw pixel data buffer where decoded image output will be written.
p_flcHeader[AI] Pointer to the global FLIC_HEADER for this animation.
p_flcFrame[AI] Pointer to the frame header (FLIC_FRAME) describing this animation frame.
p_decodedColorMap[AI] Output flag, set to TRUE if this frame updates the color palette, FALSE otherwise. Used to signal palette changes.

Definition at line 457 of file flic.cpp.

◆ DecodeLC()

void DecodeLC ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_pixelData,
BYTE *  p_data,
FLIC_HEADER p_flcHeader 
)

Definition at line 317 of file flic.cpp.

◆ DecodeSS2()

void DecodeSS2 ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_pixelData,
BYTE *  p_data,
FLIC_HEADER p_flcHeader 
)

Definition at line 356 of file flic.cpp.

◆ WritePixel()

void WritePixel ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_pixelData,
short  p_column,
short  p_row,
byte  p_pixel 
)

Definition at line 53 of file flic.cpp.

◆ WritePixelPairs()

void WritePixelPairs ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_pixelData,
short  p_column,
short  p_row,
WORD  p_pixel,
short  p_count 
)

Definition at line 144 of file flic.cpp.

◆ WritePixelRun()

void WritePixelRun ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_pixelData,
short  p_column,
short  p_row,
byte  p_pixel,
short  p_count 
)

Definition at line 122 of file flic.cpp.

◆ WritePixels()

void WritePixels ( LPBITMAPINFOHEADER  p_bitmapHeader,
BYTE *  p_pixelData,
short  p_column,
short  p_row,
BYTE *  p_data,
short  p_count 
)

Definition at line 64 of file flic.cpp.