API Documentation
AlignmentUtils.h
1 // AlignmentUtils.h
3 //
5 
6 namespace nkImages
7 {
11  class AlignmentUtils final
12  {
13  public :
14 
29  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) ;
45  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) ;
58  static void realignPixels (unsigned char* output, const unsigned char* input, unsigned int width, unsigned int height, unsigned int outputPixelSize, unsigned int inputPixelSize) ;
72  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) ;
84  static void realignRows (unsigned char* output, const unsigned char* input, unsigned int height, unsigned int outputRowSize, unsigned int inputRowSize) ;
85 
86  // Alignment information
94  static unsigned int getAlignedSize (unsigned int byteSize, unsigned int byteAlignment) ;
95  } ;
96 }
nkImages::AlignmentUtils
Offers tools to realign an image's memory.
Definition: AlignmentUtils.h:12
nkImages::AlignmentUtils::realignPixelsAndRows
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)
nkImages::AlignmentUtils::getAlignedSize
static unsigned int getAlignedSize(unsigned int byteSize, unsigned int byteAlignment)
nkImages::AlignmentUtils::realignPixelsReorderRgb
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)
nkImages::AlignmentUtils::realignPixelsAndRowsReorderRgb
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)
nkImages::AlignmentUtils::realignPixels
static void realignPixels(unsigned char *output, const unsigned char *input, unsigned int width, unsigned int height, unsigned int outputPixelSize, unsigned int inputPixelSize)
nkImages
Encompasses all API of component NilkinsImages.
Definition: BmpEncoder.h:7
nkImages::AlignmentUtils::realignRows
static void realignRows(unsigned char *output, const unsigned char *input, unsigned int height, unsigned int outputRowSize, unsigned int inputRowSize)