Offers tools to realign an image's memory.
More...
|
static void | realignPixelsAndRows (unsigned char *output, const unsigned char *input, unsigned int width, unsigned int height, unsigned int outputPixelSize, unsigned int outputRowSize, unsigned int inputPixelSize, unsigned int inputRowSize) |
|
static void | realignPixelsAndRowsReorderRgb (unsigned char *output, const unsigned char *input, unsigned int width, unsigned int height, unsigned int outputPixelSize, unsigned int outputRowSize, unsigned int inputPixelSize, unsigned int inputRowSize, unsigned int channelByteSize) |
|
static void | realignPixels (unsigned char *output, const unsigned char *input, unsigned int width, unsigned int height, unsigned int outputPixelSize, unsigned int inputPixelSize) |
|
static void | realignPixelsReorderRgb (unsigned char *output, const unsigned char *input, unsigned int width, unsigned int height, unsigned int outputPixelSize, unsigned int inputPixelSize, unsigned int channelByteSize) |
|
static void | realignRows (unsigned char *output, const unsigned char *input, unsigned int height, unsigned int outputRowSize, unsigned int inputRowSize) |
|
static unsigned int | getAlignedSize (unsigned int byteSize, unsigned int byteAlignment) |
|
Offers tools to realign an image's memory.
◆ realignPixelsAndRows()
static void nkImages::AlignmentUtils::realignPixelsAndRows |
( |
unsigned char * |
output, |
|
|
const unsigned char * |
input, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
outputPixelSize, |
|
|
unsigned int |
outputRowSize, |
|
|
unsigned int |
inputPixelSize, |
|
|
unsigned int |
inputRowSize |
|
) |
| |
|
static |
Realignment work over pixels / blocks and rows.
- Parameters
-
output | The output memory to copy to. |
input | The input memory to realign. |
width | The width of the image to process. |
height | The height of the image to process. |
outputPixelSize | The byte size of a block or pixel the output needs to satisfy. |
outputRowSize | The byte size of a row the output needs to satisfy. |
inputPixelSize | The byte size of a block or pixel the input satisfies. |
inputRowSize | The byte size of a row the input satisfies. |
◆ realignPixelsAndRowsReorderRgb()
static void nkImages::AlignmentUtils::realignPixelsAndRowsReorderRgb |
( |
unsigned char * |
output, |
|
|
const unsigned char * |
input, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
outputPixelSize, |
|
|
unsigned int |
outputRowSize, |
|
|
unsigned int |
inputPixelSize, |
|
|
unsigned int |
inputRowSize, |
|
|
unsigned int |
channelByteSize |
|
) |
| |
|
static |
Realignment work over pixels / blocks and rows, also reordering BGR channels into RGB.
- Parameters
-
output | The output memory to copy to. |
input | The input memory to realign. |
width | The width of the image to process. |
height | The height of the image to process. |
outputPixelSize | The byte size of a block or pixel the output needs to satisfy. |
outputRowSize | The byte size of a row the output needs to satisfy. |
inputPixelSize | The byte size of a block or pixel the input satisfies. |
inputRowSize | The byte size of a row the input satisfies. |
channelByteSize | The byte size of one color channel of a pixel. |
◆ realignPixels()
static void nkImages::AlignmentUtils::realignPixels |
( |
unsigned char * |
output, |
|
|
const unsigned char * |
input, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
outputPixelSize, |
|
|
unsigned int |
inputPixelSize |
|
) |
| |
|
static |
Realignment work over pixels / blocks.
- Parameters
-
output | The output memory to copy to. |
input | The input memory to realign. |
width | The width of the image to process. |
height | The height of the image to process. |
outputPixelSize | The byte size of a block or pixel the output needs to satisfy. |
inputPixelSize | The byte size of a block or pixel the input satisfies. |
◆ realignPixelsReorderRgb()
static void nkImages::AlignmentUtils::realignPixelsReorderRgb |
( |
unsigned char * |
output, |
|
|
const unsigned char * |
input, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
outputPixelSize, |
|
|
unsigned int |
inputPixelSize, |
|
|
unsigned int |
channelByteSize |
|
) |
| |
|
static |
Realignment work over pixels / blocks, also reordering BGR channels into RGB.
- Parameters
-
output | The output memory to copy to. |
input | The input memory to realign. |
width | The width of the image to process. |
height | The height of the image to process. |
outputPixelSize | The byte size of a block or pixel the output needs to satisfy. |
inputPixelSize | The byte size of a block or pixel the input satisfies. |
channelByteSize | The byte size of a color channel of a pixel. |
◆ realignRows()
static void nkImages::AlignmentUtils::realignRows |
( |
unsigned char * |
output, |
|
|
const unsigned char * |
input, |
|
|
unsigned int |
height, |
|
|
unsigned int |
outputRowSize, |
|
|
unsigned int |
inputRowSize |
|
) |
| |
|
static |
Realignment work over rows.
- Parameters
-
output | The output memory to copy to. |
input | The input memory to realign. |
height | The height of the image to process. |
outputRowSize | The byte size of a row the output needs to satisfy. |
inputRowSize | The byte size of a row the input satisfies. |
◆ getAlignedSize()
static unsigned int nkImages::AlignmentUtils::getAlignedSize |
( |
unsigned int |
byteSize, |
|
|
unsigned int |
byteAlignment |
|
) |
| |
|
static |
Computes the next aligned size from a given size and alignment constraint.
- Parameters
-
byteSize | The size which alignment should be made. |
byteAlignment | The alignment size should have. |
- Returns
- A new size, fitting the alignment requirement, from the size given.
The documentation for this class was generated from the following file: