mirror of
https://github.com/astromaddie/HaloCE-VR.git
synced 2026-10-19 22:00:14 +02:00
Integrate coherent B3, P2/K17 prerequisites, completed K1-K16 + S, and the independent profile/effects rulings. Five gains and two explicitly approved B3 debits: net +3 strict functions, +2770 meaningful/+2800 padded bytes (+2774 progress credit). No additional losses; Halo objects 394 to 396 and data unchanged. Clean rebuild, identical 8252-row stable sweep, 68 valid parks, admission/provider checks, 467-unit warning comparison, unchanged fake scan, and 1318 tests passed. Preserve canonical helper recoveries and unrelated work. Full evidence and disclosures in docs/object_matching_logs/astra_five_function_reconciliation_20260928.md.
112 lines
2.4 KiB
C
112 lines
2.4 KiB
C
/*
|
|
BITMAP_UTILITIES.H
|
|
|
|
Recovered public interface additions owned by BITMAP_UTILITIES.C.
|
|
*/
|
|
|
|
#ifndef __BITMAP_UTILITIES_H
|
|
#define __BITMAP_UTILITIES_H
|
|
#pragma once
|
|
|
|
#include "bitmaps/bitmaps.h"
|
|
|
|
void bitmap_fill(
|
|
struct bitmap_data *bitmap,
|
|
pixel32 fill_color);
|
|
void bitmap_alpha_to_rgb(
|
|
struct bitmap_data *bitmap);
|
|
struct bitmap_data *bitmap_clone(
|
|
struct bitmap_data *source_bitmap);
|
|
void bitmap_fade(
|
|
struct bitmap_data *bitmap,
|
|
pixel32 fade_color,
|
|
real fade_amount);
|
|
void bitmap_smooth(
|
|
struct bitmap_data *bitmap,
|
|
real filter_size);
|
|
void bitmap_sharpen(
|
|
struct bitmap_data *bitmap,
|
|
real sharpen_amount);
|
|
struct bitmap_data *bitmap_shrink(
|
|
struct bitmap_data *source_bitmap,
|
|
short scale,
|
|
short alpha_bias,
|
|
boolean ignore_transparent_pixels);
|
|
void bitmap_alpha_bleed(
|
|
struct bitmap_data *bitmap,
|
|
short passes);
|
|
void bitmap_height_map(
|
|
struct bitmap_data *bitmap,
|
|
real bump_height);
|
|
void bitmap_compress_to_mipmap(
|
|
struct bitmap_data *source_bitmap,
|
|
struct bitmap_data *destination_bitmap,
|
|
short destination_mipmap_index,
|
|
pixel32 const *transparent_color);
|
|
void bitmap_uncompress_from_mipmap(
|
|
struct bitmap_data *source_bitmap,
|
|
struct bitmap_data *destination_bitmap,
|
|
short source_mipmap_index);
|
|
union real_rgb_color *pixel32_to_real_rgb_color(
|
|
pixel32 color,
|
|
union real_rgb_color *result);
|
|
|
|
union rgb_color
|
|
{
|
|
word n[3];
|
|
struct { word red, green, blue; };
|
|
};
|
|
typedef union rgb_color rgb_color;
|
|
|
|
union hsv_color
|
|
{
|
|
word n[3];
|
|
struct { word hue, saturation, value; };
|
|
};
|
|
|
|
union argb_color
|
|
{
|
|
word n[4];
|
|
struct
|
|
{
|
|
word alpha;
|
|
union
|
|
{
|
|
rgb_color rgb;
|
|
struct { word red, green, blue; };
|
|
};
|
|
};
|
|
};
|
|
|
|
union real_hsv_color
|
|
{
|
|
real n[3];
|
|
struct
|
|
{
|
|
real hue;
|
|
real saturation;
|
|
real value;
|
|
};
|
|
};
|
|
|
|
union hsv_color *rgb_color_to_hsv_color(
|
|
union rgb_color const *rgb,
|
|
union hsv_color *hsv);
|
|
union rgb_color *hsv_color_to_rgb_color(
|
|
union hsv_color const *hsv,
|
|
union rgb_color *rgb);
|
|
union real_hsv_color *real_rgb_color_to_real_hsv_color(
|
|
union real_rgb_color const *rgb,
|
|
union real_hsv_color *hsv);
|
|
union real_rgb_color *real_hsv_color_to_real_rgb_color(
|
|
union real_hsv_color *hsv,
|
|
union real_rgb_color *rgb);
|
|
union real_argb_color *argb_color_to_real_argb_color(
|
|
union argb_color const *source,
|
|
union real_argb_color *result);
|
|
union real_rgb_color *rgb_color_to_real_rgb_color(
|
|
union rgb_color const *source,
|
|
union real_rgb_color *result);
|
|
|
|
#endif /* __BITMAP_UTILITIES_H */
|