Module flic::codec [] [src]

FLIC encoding and decoding subroutines.

Constants

FLI_BLACK

Magic for a FLI_BLACK chunk - No Data.

FLI_BRUN

Magic for a FLI_BRUN chunk - Byte Run Length Compression.

FLI_COLOR64

Magic for a FLI_COLOR64 chunk - 64-Level Color.

FLI_COLOR256

Magic for a FLI_COLOR256 chunk - 256-Level Color.

FLI_COPY

Magic for a FLI_COPY chunk - No Compression.

FLI_ICOLORS

Magic for a FLI_ICOLORS chunk.

FLI_LC

Magic for a FLI_LC chunk - Byte Aligned Delta Compression.

FLI_PSTAMP

Magic for a FLI_PSTAMP chunk - Postage Stamp Image.

FLI_SBSRSC

Magic for a FLI_SBSRSC chunk.

FLI_SS2

Magic for a FLI_SS2 chunk - Word Aligned Delta Compression.

FLI_WRUN

Magic for a FLI_WRUN chunk.

FPS_BRUN

Magic for a FPS_BRUN chunk - Postage Stamp, Byte Run Length Compression.

FPS_COPY

Magic for a FPS_COPY chunk - Postage Stamp, No Compression.

FPS_XLAT256

Magic for a FPS_XLAT256 chunk - Postage Stamp, Six-Cube Color Translation Table.

PSTAMP_SIXCUBE

Magic for the six-cube color translation type.

STANDARD_PSTAMP_H

Stardard postage stamp height.

STANDARD_PSTAMP_W

Stardard postage stamp width.

Functions

apply_pstamp_xlat256

Apply the translation table to the pixels in the raster, mapping the pixels to the postage stamp's six-cube palette.

can_encode_fli_black

True if the frame can be encoded by FLI_BLACK.

chunk_modifies_palette

Returns true if the chunk type modifies the palette.

decode_chunk

Decode a chunk, based on the chunk type.

decode_fli_black

Decode a FLI_BLACK chunk.

decode_fli_brun

Decode a FLI_BRUN chunk.

decode_fli_color64

Decode a FLI_COLOR64 chunk.

decode_fli_color256

Decode a FLI_COLOR256 chunk.

decode_fli_copy

Decode a FLI_COPY chunk.

decode_fli_icolors

Decode a FLI_ICOLORS chunk.

decode_fli_lc

Decode a FLI_LC chunk.

decode_fli_sbsrsc

Decode a FLI_SBSRSC chunk.

decode_fli_ss2

Decode a FLI_SS2 chunk.

decode_fli_wrun

Decode a FLI_WRUN chunk.

decode_fps_brun

Decode a FPS_BRUN chunk.

decode_fps_copy

Decode a FPS_COPY chunk.

encode_fli_brun

Encode a FLI_BRUN chunk.

encode_fli_color64

Encode a FLI_COLOR64 chunk.

encode_fli_color256

Encode a FLI_COLOR256 chunk.

encode_fli_copy

Encode a FLI_COPY chunk.

encode_fli_lc

Encode a FLI_LC chunk.

encode_fli_ss2

Encode a FLI_SS2 chunk.

make_pstamp_pal

Create the postage stamp's six-cube palette.

make_pstamp_xlat256

Create a translation table to map the palette into the postage stamp's six-cube palette.

prepare_pstamp

Create a new scaled down image, remapped into the six-color palette. The image may be encoded as part of a postage stamp chunk using the FLI_BRUN and FLI_COPY encoders.