Skip to Content
The Alchemy Project

src/battle/color_scale_kernel.c

The BGR555 palette scaling kernel, compiled as ARM code: btColorBufferScale (color_scale.s) copies it to the stack and runs it there, entered in Thumb through ColorBufferScaleKernelCode.

Functions

NameDescription
Sint32btColorBufferScaleArm (const Uint16 *source, Uint16 *destination, Sint32 scale, Sint32 count)Scales count BGR555 colours from source into destination by scale / 256, at most 1.0, masking each channel in place.

Description

The BGR555 palette scaling kernel, compiled as ARM code: btColorBufferScale (color_scale.s) copies it to the stack and runs it there, entered in Thumb through ColorBufferScaleKernelCode.

Functions in detail

btColorBufferScaleArm

Sint32 btColorBufferScaleArm(const Uint16 *source, Uint16 *destination, Sint32 scale, Sint32 count)

Scales count BGR555 colours from source into destination by scale / 256, at most 1.0, masking each channel in place.

References Sint32.

Definition at line 11 of file color_scale_kernel.c.