2022-09-08 02:19:15 +02:00
|
|
|
#ifndef BLT_H
|
|
|
|
#define BLT_H
|
|
|
|
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
|
2022-09-19 13:13:34 +02:00
|
|
|
extern BOOL g_blt_use_avx;
|
|
|
|
|
2022-09-18 19:02:15 +02:00
|
|
|
void blt_copy(
|
|
|
|
unsigned char* dst,
|
|
|
|
unsigned char* src,
|
|
|
|
size_t size);
|
|
|
|
|
2022-09-08 02:19:15 +02:00
|
|
|
void blt_clean(
|
|
|
|
unsigned char* dst,
|
|
|
|
int dst_x,
|
|
|
|
int dst_y,
|
|
|
|
int dst_w,
|
|
|
|
int dst_h,
|
|
|
|
int dst_p,
|
|
|
|
unsigned char* src,
|
|
|
|
int src_x,
|
|
|
|
int src_y,
|
|
|
|
int src_p,
|
|
|
|
int bpp);
|
|
|
|
|
|
|
|
void blt_overlap(
|
|
|
|
unsigned char* dst,
|
|
|
|
int dst_x,
|
|
|
|
int dst_y,
|
|
|
|
int dst_w,
|
|
|
|
int dst_h,
|
|
|
|
int dst_p,
|
|
|
|
unsigned char* src,
|
|
|
|
int src_x,
|
|
|
|
int src_y,
|
|
|
|
int src_p,
|
|
|
|
int bpp);
|
|
|
|
|
|
|
|
void blt_colorkey(
|
|
|
|
unsigned char* dst,
|
|
|
|
int dst_x,
|
|
|
|
int dst_y,
|
|
|
|
int dst_w,
|
|
|
|
int dst_h,
|
|
|
|
int dst_p,
|
|
|
|
unsigned char* src,
|
|
|
|
int src_x,
|
|
|
|
int src_y,
|
|
|
|
int src_p,
|
|
|
|
unsigned int key_low,
|
|
|
|
unsigned int key_high,
|
|
|
|
int bpp);
|
|
|
|
|
|
|
|
void blt_colorkey_mirror_stretch(
|
|
|
|
unsigned char* dst,
|
|
|
|
int dst_x,
|
|
|
|
int dst_y,
|
|
|
|
int dst_w,
|
|
|
|
int dst_h,
|
|
|
|
int dst_p,
|
|
|
|
unsigned char* src,
|
|
|
|
int src_x,
|
|
|
|
int src_y,
|
|
|
|
int src_w,
|
|
|
|
int src_h,
|
|
|
|
int src_p,
|
|
|
|
unsigned int key_low,
|
|
|
|
unsigned int key_high,
|
|
|
|
BOOL mirror_up_down,
|
|
|
|
BOOL mirror_left_right,
|
|
|
|
int bpp);
|
|
|
|
|
2022-09-15 02:12:27 +02:00
|
|
|
void blt_clear(
|
|
|
|
unsigned char* dst,
|
2022-09-20 02:27:01 +02:00
|
|
|
char color,
|
2022-09-15 02:12:27 +02:00
|
|
|
size_t size);
|
|
|
|
|
2022-09-08 02:19:15 +02:00
|
|
|
void blt_colorfill(
|
|
|
|
unsigned char* dst,
|
|
|
|
int dst_x,
|
|
|
|
int dst_y,
|
|
|
|
int dst_w,
|
|
|
|
int dst_h,
|
|
|
|
int dst_p,
|
|
|
|
unsigned int color,
|
|
|
|
int bpp);
|
|
|
|
|
2022-09-09 10:44:04 +02:00
|
|
|
void blt_rgb565_to_rgba8888(
|
|
|
|
unsigned int* dst,
|
|
|
|
int dst_x,
|
|
|
|
int dst_y,
|
|
|
|
int dst_w,
|
|
|
|
int dst_h,
|
|
|
|
int dst_p,
|
|
|
|
unsigned short* src,
|
|
|
|
int src_x,
|
|
|
|
int src_y,
|
|
|
|
int src_p);
|
|
|
|
|
2023-03-24 22:45:30 +01:00
|
|
|
void blt_rgb555_to_rgba8888(
|
|
|
|
unsigned int* dst,
|
|
|
|
int dst_x,
|
|
|
|
int dst_y,
|
|
|
|
int dst_w,
|
|
|
|
int dst_h,
|
|
|
|
int dst_p,
|
|
|
|
unsigned short* src,
|
|
|
|
int src_x,
|
|
|
|
int src_y,
|
|
|
|
int src_p);
|
|
|
|
|
2022-09-09 10:44:04 +02:00
|
|
|
void blt_bgra8888_to_rgba8888(
|
|
|
|
unsigned int* dst,
|
|
|
|
int dst_x,
|
|
|
|
int dst_y,
|
|
|
|
int dst_w,
|
|
|
|
int dst_h,
|
|
|
|
int dst_p,
|
|
|
|
unsigned int* src,
|
|
|
|
int src_x,
|
|
|
|
int src_y,
|
|
|
|
int src_p);
|
|
|
|
|
2022-09-08 02:19:15 +02:00
|
|
|
void blt_stretch(
|
2022-09-13 15:51:14 +02:00
|
|
|
unsigned char* dst,
|
2022-09-08 02:19:15 +02:00
|
|
|
int dst_x,
|
|
|
|
int dst_y,
|
|
|
|
int dst_w,
|
|
|
|
int dst_h,
|
|
|
|
int dst_p,
|
2022-09-13 15:51:14 +02:00
|
|
|
unsigned char* src,
|
2022-09-08 02:19:15 +02:00
|
|
|
int src_x,
|
|
|
|
int src_y,
|
|
|
|
int src_w,
|
|
|
|
int src_h,
|
|
|
|
int src_p,
|
|
|
|
int bpp);
|
|
|
|
|
|
|
|
#endif
|