mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 18:14:19 +00:00
18 lines
527 B
C
18 lines
527 B
C
#ifndef ENGINE_SHARED_IMAGE_MANIPULATION_H
|
|
#define ENGINE_SHARED_IMAGE_MANIPULATION_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#define TW_DILATE_ALPHA_THRESHOLD 10
|
|
|
|
void DilateImage(unsigned char *pImageBuff, int w, int h, int BPP);
|
|
void DilateImageSub(unsigned char *pImageBuff, int w, int h, int BPP, int x, int y, int sw, int sh);
|
|
|
|
// returned pointer is allocated with malloc
|
|
uint8_t *ResizeImage(const uint8_t *pImageData, int Width, int Height, int NewWidth, int NewHeight, int BPP);
|
|
|
|
int HighestBit(int OfVar);
|
|
|
|
#endif
|