-
Notifications
You must be signed in to change notification settings - Fork 1
/
ClmbsImg_Util.h
44 lines (27 loc) · 1012 Bytes
/
ClmbsImg_Util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "ColumbusImage.h"
#include <stdio.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
int ReadBytes(void* data, size_t size, FILE* fp);
int WriteBytes(const void* data, size_t size, FILE* fp);
int ReadUint8(uint8_t* data, FILE* fp);
int WriteUint8(const uint8_t* data, FILE* fp);
int ReadUint16(uint16_t* data, FILE* fp);
int WriteUint16(const uint16_t* data, FILE* fp);
int ReadUint32(uint32_t* data, FILE* fp);
int WriteUint32(const uint32_t* data, FILE* fp);
int ReadInt32(int32_t* data, FILE* fp);
int WriteInt32(const int32_t* data, FILE* fp);
int bgr2rgb(uint8_t* data, size_t size);
int bgra2rgba(uint8_t* data, size_t size);
int rgb2bgr(uint8_t* data, size_t size);
int rgba2bgra(uint8_t* data, size_t size);
int flipX(uint8_t* aData, size_t aWidth, size_t aHeight, size_t aBPP);
int flipY(uint8_t* aData, size_t aWidth, size_t aHeight, size_t aBPP);
int flipXY(uint8_t* aData, size_t aWidth, size_t aHeight, size_t aBPP);
#ifdef __cplusplus
}
#endif