-
Notifications
You must be signed in to change notification settings - Fork 0
/
image_helper.h
29 lines (26 loc) · 1.45 KB
/
image_helper.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
#ifndef QMAGEDECODER_IMAGE_HELPER_H
#define QMAGEDECODER_IMAGE_HELPER_H
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
// Converts an image in RGB565 format to RGB888 format
void convertRGB565ToRGB888(const unsigned char* input, unsigned char* output, size_t amountPixels);
// Converts an image in RGBA5658 format to RGBA8888 format
void convertRGBA5658ToRGBA8888(const unsigned char* input, unsigned char* output, size_t amountPixels);
// Converts an image in ARGB8565 format to RGBA8888 format
void convertARGB8565ToRGBA8888(const unsigned char* input, unsigned char* output, size_t amountPixels);
// Converts an image in BGR888 format to RGB888 format
void convertBGR888ToRGB888(const unsigned char* input, unsigned char* output, size_t amountPixels);
// Converts an image in ARGB8888 format to RGBA8888 format
void convertARGB8888ToRGBA8888(const unsigned char* input, unsigned char* output, size_t amountPixels);
// Converts an image in BGRA8888 format to RGBA8888 format
void convertBGRA8888ToRGB888(const unsigned char* input, unsigned char* output, size_t amountPixels);
// Converts an image in RGBA8888 format to RGB888 format
void convertRGBA8888ToRGB888(const unsigned char* input, unsigned char* output, size_t amountPixels);
// Converts an image in RGB888 format to RGBA8888 format
void convertRGB888ToRGBA8888(const unsigned char* input, unsigned char* output, size_t amountPixels);
#ifdef __cplusplus
}
#endif
#endif /* QMAGEDECODER_IMAGE_HELPER_H */