ddnet/src/engine/shared/image_manipulation.h

18 lines
525 B
C
Raw Normal View History

#ifndef ENGINE_SHARED_IMAGE_MANIPULATION_H
#define ENGINE_SHARED_IMAGE_MANIPULATION_H
#include <stddef.h>
#include <stdint.h>
2020-10-26 16:05:57 +00:00
#define TW_DILATE_ALPHA_THRESHOLD 30
void DilateImage(unsigned char *pImageBuff, int w, int h, int BPP);
2020-10-26 16:05:57 +00:00
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 *pImgData, int Width, int Height, int NewWidth, int NewHeight, int BPP);
int HighestBit(int OfVar);
#endif