Qt 4.8
|
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <QVarLengthArray>
Go to the source code of this file.
Macros | |
#define | ACCUMULATE(accumulator, x, y, width, v) if (x < width && x >= 0) accumulator[(y * width) + x] += v |
#define | CLAMP_256(v) if (v > 255) v = 255; if (v < 0) v = 0; |
#define | CONVERT_8BIT_TO_4BIT(v) (lookup_8bit_to_4bit[v]) |
#define | DIFF_8BIT_TO_4BIT(v) (lookup_8bit_to_4bit_diff[v]) |
#define | GET_RGBA_COMPONENT(data, x, y, stride, c) (data[(y * stride) + (x << 2) + c]) |
#define | PUT_4444(data, x, y, width, r, g, b, a) (data[(y * width) + x] = (r << 12) | (g << 8) | (b << 4) | a) |
#define | PUT_565(data, x, y, width, r, g, b) (data[(y * width) + x] = (r << 11) | (g << 5) | b) |
Functions | |
unsigned short * | convertARGB32_to_RGBA4444 (const unsigned char *in, int width, int height, int stride) |
unsigned char * | convertBGRA32_to_RGBA32 (const unsigned char *in, int width, int height, int stride) |
unsigned short * | convertRGB32_to_RGB565 (const unsigned char *in, int width, int height, int stride) |
#define ACCUMULATE | ( | accumulator, | |
x, | |||
y, | |||
width, | |||
v | |||
) | if (x < width && x >= 0) accumulator[(y * width) + x] += v |
Definition at line 78 of file dithering.cpp.
Referenced by convertARGB32_to_RGBA4444().
Definition at line 81 of file dithering.cpp.
Referenced by convertARGB32_to_RGBA4444().
#define CONVERT_8BIT_TO_4BIT | ( | v | ) | (lookup_8bit_to_4bit[v]) |
Referenced by convertARGB32_to_RGBA4444().
#define DIFF_8BIT_TO_4BIT | ( | v | ) | (lookup_8bit_to_4bit_diff[v]) |
Referenced by convertARGB32_to_RGBA4444().
Definition at line 68 of file dithering.cpp.
Referenced by convertARGB32_to_RGBA4444(), and convertRGB32_to_RGB565().
#define PUT_4444 | ( | data, | |
x, | |||
y, | |||
width, | |||
r, | |||
g, | |||
b, | |||
a | |||
) | (data[(y * width) + x] = (r << 12) | (g << 8) | (b << 4) | a) |
Definition at line 74 of file dithering.cpp.
Referenced by convertARGB32_to_RGBA4444().
Definition at line 71 of file dithering.cpp.
Referenced by convertRGB32_to_RGB565().
unsigned short* convertARGB32_to_RGBA4444 | ( | const unsigned char * | in, |
int | width, | ||
int | height, | ||
int | stride | ||
) |
Definition at line 152 of file dithering.cpp.
unsigned char* convertBGRA32_to_RGBA32 | ( | const unsigned char * | in, |
int | width, | ||
int | height, | ||
int | stride | ||
) |
Definition at line 250 of file dithering.cpp.
Referenced by QMeeGoPixmapData::imageToEGLSharedImage().
unsigned short* convertRGB32_to_RGB565 | ( | const unsigned char * | in, |
int | width, | ||
int | height, | ||
int | stride | ||
) |
Definition at line 84 of file dithering.cpp.
Referenced by QMeeGoPixmapData::imageToEGLSharedImage().