NetSurf
Macros
tinct.h File Reference

Tinct SWI numbers and flags for version 0.11. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Tinct_PlotAlpha   0x57240
 Plots an alpha-blended sprite at the specified coordinates. More...
 
#define Tinct_PlotScaledAlpha   0x57241
 Plots a scaled alpha-blended sprite at the specified coordinates. More...
 
#define Tinct_Plot   0x57242
 Plots a sprite at the specified coordinates with a constant 0xff value for the alpha channel, ie without a mask. More...
 
#define Tinct_PlotScaled   0x57243
 Plots a scaled sprite at the specified coordinates with a constant 0xff value for the alpha channel, ie without a mask. More...
 
#define Tinct_ConvertSprite   0x57244
 Converts a paletted sprite into its 32bpp equivalent. More...
 
#define Tinct_AvailableFeatures   0x57245
 Returns the features available to the caller by specifying bits in the flag word. More...
 
#define Tinct_Compress   0x57246
 Compresses an image using a fast algorithm. More...
 
#define Tinct_Decompress   0x57247
 Decompresses an image previously compressed. More...
 
#define tinct_READ_SCREEN_BASE   0x01 /** <-- Use when hardware scrolling */
 
#define tinct_BILINEAR_FILTER   0x02 /** <-- Perform bi-linear filtering */
 
#define tinct_DITHER   0x04 /** <-- Perform dithering */
 
#define tinct_ERROR_DIFFUSE   0x08 /** <-- Perform error diffusion */
 
#define tinct_DITHER_INVERTED   0x0C /** <-- Perform dithering with inverted pattern */
 
#define tinct_FILL_HORIZONTALLY   0x10 /** <-- Horizontally fill clipping region with image */
 
#define tinct_FILL_VERTICALLY   0x20 /** <-- Vertically fill clipping region with image */
 
#define tinct_FORCE_PALETTE_READ   0x40 /** <-- Use after a palette change when out of the desktop */
 
#define tinct_USE_OS_SPRITE_OP   0x80 /** <-- Use when printing */
 
#define tinct_OPAQUE_IMAGE   0x01 /** <-- Image is opaque, compress further */
 
#define tinct_BACKGROUND_SHIFT   0x08
 
#define tinct_SPRITE_MODE   (os_mode)0x301680b5
 
#define alpha_SPRITE_MODE   (os_mode)0x78608051
 

Detailed Description

Tinct SWI numbers and flags for version 0.11.

Definition in file tinct.h.

Macro Definition Documentation

◆ alpha_SPRITE_MODE

#define alpha_SPRITE_MODE   (os_mode)0x78608051

Definition at line 162 of file tinct.h.

◆ Tinct_AvailableFeatures

#define Tinct_AvailableFeatures   0x57245

Returns the features available to the caller by specifying bits in the flag word.

The features available are unique for each mode, although the current version of Tinct supports the same subset of features for all modes.

-> R0 Feature to test for, or 0 for all features <- R0 Features available

Definition at line 101 of file tinct.h.

◆ tinct_BACKGROUND_SHIFT

#define tinct_BACKGROUND_SHIFT   0x08

Definition at line 149 of file tinct.h.

◆ tinct_BILINEAR_FILTER

#define tinct_BILINEAR_FILTER   0x02 /** <-- Perform bi-linear filtering */

Definition at line 134 of file tinct.h.

◆ Tinct_Compress

#define Tinct_Compress   0x57246

Compresses an image using a fast algorithm.

Sufficient memory must have been previously allocated for the maximum possible compressed size. This value is equal to 28 + (width * height * 4) * 33 / 32.

-> R0 Source sprite pointer R2 Output data buffer R3 Output bytes available R7 Flag word (currently 0) <- R0 Size of compressed data

Definition at line 115 of file tinct.h.

◆ Tinct_ConvertSprite

#define Tinct_ConvertSprite   0x57244

Converts a paletted sprite into its 32bpp equivalent.

Sufficient memory must have previously been allocated for the sprite (44 + width * height * 4). As sprites with 16bpp or 32bpp do not have palettes, conversion cannot be performed on these variants. All sprites must be supplied with a full palette, eg 8bpp must have 256 palette entries.

-> R2 Source sprite pointer R3 Destination sprite pointer

Definition at line 90 of file tinct.h.

◆ Tinct_Decompress

#define Tinct_Decompress   0x57247

Decompresses an image previously compressed.

Sufficient memory must have been previously allocated for the decompressed data (44 + width * height * 4) where width and height are available at +0 and +4 of the compressed data respectively.

-> R0 Input data buffer R2 Output data buffer R7 Flag word (currently 0) <- R0 Size of decompressed data

Definition at line 128 of file tinct.h.

◆ tinct_DITHER

#define tinct_DITHER   0x04 /** <-- Perform dithering */

Definition at line 135 of file tinct.h.

◆ tinct_DITHER_INVERTED

#define tinct_DITHER_INVERTED   0x0C /** <-- Perform dithering with inverted pattern */

Definition at line 137 of file tinct.h.

◆ tinct_ERROR_DIFFUSE

#define tinct_ERROR_DIFFUSE   0x08 /** <-- Perform error diffusion */

Definition at line 136 of file tinct.h.

◆ tinct_FILL_HORIZONTALLY

#define tinct_FILL_HORIZONTALLY   0x10 /** <-- Horizontally fill clipping region with image */

Definition at line 138 of file tinct.h.

◆ tinct_FILL_VERTICALLY

#define tinct_FILL_VERTICALLY   0x20 /** <-- Vertically fill clipping region with image */

Definition at line 139 of file tinct.h.

◆ tinct_FORCE_PALETTE_READ

#define tinct_FORCE_PALETTE_READ   0x40 /** <-- Use after a palette change when out of the desktop */

Definition at line 140 of file tinct.h.

◆ tinct_OPAQUE_IMAGE

#define tinct_OPAQUE_IMAGE   0x01 /** <-- Image is opaque, compress further */

Definition at line 145 of file tinct.h.

◆ Tinct_Plot

#define Tinct_Plot   0x57242

Plots a sprite at the specified coordinates with a constant 0xff value for the alpha channel, ie without a mask.

-> R2 Sprite pointer R3 X coordinate R4 Y coordinate R7 Flag word

Definition at line 64 of file tinct.h.

◆ Tinct_PlotAlpha

#define Tinct_PlotAlpha   0x57240

Plots an alpha-blended sprite at the specified coordinates.

-> R2 Sprite pointer R3 X coordinate R4 Y coordinate R7 Flag word

Definition at line 39 of file tinct.h.

◆ Tinct_PlotScaled

#define Tinct_PlotScaled   0x57243

Plots a scaled sprite at the specified coordinates with a constant 0xff value for the alpha channel, ie without a mask.

-> R2 Sprite pointer R3 X coordinate R4 Y coordinate R5 Scaled sprite width R6 Scaled sprite height R7 Flag word

Definition at line 77 of file tinct.h.

◆ Tinct_PlotScaledAlpha

#define Tinct_PlotScaledAlpha   0x57241

Plots a scaled alpha-blended sprite at the specified coordinates.

-> R2 Sprite pointer R3 X coordinate R4 Y coordinate R5 Scaled sprite width R6 Scaled sprite height R7 Flag word

Definition at line 52 of file tinct.h.

◆ tinct_READ_SCREEN_BASE

#define tinct_READ_SCREEN_BASE   0x01 /** <-- Use when hardware scrolling */

Definition at line 133 of file tinct.h.

◆ tinct_SPRITE_MODE

#define tinct_SPRITE_MODE   (os_mode)0x301680b5

Definition at line 156 of file tinct.h.

◆ tinct_USE_OS_SPRITE_OP

#define tinct_USE_OS_SPRITE_OP   0x80 /** <-- Use when printing */

Definition at line 141 of file tinct.h.