Files
Cesarus85--mjolnir-vr/source/bitmaps/bitmap_utilities.h
T
Jonas VolmanandClaude Opus 5 94f7bbb80c Restore bitmap_data/bitmap_group owner types and bitmap helper prototypes; reopen five bitmap_extract parks exact
bitmap_group.h: signed depth/mipmap_count and union point2d registration_point (HCEA types, January movsx reads and whole-point copies), respelled in its four consumers. bitmaps_mipmap.h declares bitmap_get_max_mipmap_count (fixes an implicit declaration); bitmap_group_internal.h declares bitmap_group_add_bitmap (bitmap_group.h placement regressed decals by declaration count). bitmap_compress_to_mipmap takes the transparent-colour reference pointer January passes. Header renames and their consumers are one measured packet. Unparks _extract_add_bitmap, _extract_build_debug_plate, _extract_mipmaps_to_bitmap, _extract_pixels_from_mipmap, _extract_pixels_to_mipmap (+4,544 padded); re-baselines parked _bitmap_group_add_bitmap (same 992/59). Adversarially verified; 45 bitmap_group.h consumers rebuilt, 0 regressions.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 21:37:53 -07:00

55 lines
1.3 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);
#endif /* __BITMAP_UTILITIES_H */