RGB data packing.
More...
#include <csgfx/packrgb.h>
List of all members.
Static Public Member Functions |
static void | DiscardPackedRGB (const uint8 *rgb) |
| Frees memory possibly allocated by PackRGBcolorToRGB().
|
static void | DiscardUnpackedRGBcolor (const csRGBcolor *pixels) |
| Frees memory possibly allocated by UnpackRGBtoRGBcolor().
|
static const uint8 * | PackRGBcolorToRGB (const csRGBcolor *pixels, size_t numPixels) |
| Pack an array of csRGBcolor into a RGB byte array.
|
static void | PackRGBcolorToRGBBuffer (uint8 *buf, const csRGBcolor *pixels, size_t numPixels) |
| Pack an array of csRGBcolor into a RGB byte array.
|
static void | PackRGBpixelToRGB (const csRGBpixel *pixels, uint8 *packTo, size_t numPixels) |
| Pack an array of csRGBpixel into a RGB byte array.
|
static uint8 * | PackRGBpixelToRGB (const csRGBpixel *pixels, size_t numPixels) |
| Pack an array of csRGBpixel into a RGB byte array.
|
static void | UnpackRGBtoRGBcolor (csRGBcolor *buf, const uint8 *rgb, size_t numPixels) |
| Unpack a RGB byte array into an array of csRGBcolor.
|
static const csRGBcolor * | UnpackRGBtoRGBcolor (const uint8 *rgb, size_t numPixels) |
| Unpack a RGB byte array into an array of csRGBcolor.
|
static void | UnpackRGBtoRGBpixelBuffer (csRGBpixel *buf, uint8 *rgb, size_t numPixels) |
| Unpack a RGB byte array into an array of csRGBpixel.
|
Detailed Description
RGB data packing.
Definition at line 55 of file packrgb.h.
Member Function Documentation
Pack an array of csRGBcolor into a RGB byte array.
- Parameters:
-
pixels | Source array of csRGBcolor data |
numPixels | Number of pixels in the array |
- Returns:
- A byte array containing the source data packed as RGB.
Definition at line 90 of file packrgb.h.
Pack an array of csRGBcolor into a RGB byte array.
- Parameters:
-
buf | Buffer to pack the data into. |
pixels | Source array of csRGBcolor data |
numPixels | Number of pixels in the array |
Definition at line 64 of file packrgb.h.
Pack an array of csRGBpixel into a RGB byte array.
Alpha information is discarded!
Definition at line 169 of file packrgb.h.
Pack an array of csRGBpixel into a RGB byte array.
Alpha information is discarded!
- Parameters:
-
pixels | Source array of csRGBpixel data |
numPixels | Number of pixels in the array |
- Returns:
- A byte array containing the source data packed as RGB.
Definition at line 190 of file packrgb.h.
Unpack a RGB byte array into an array of csRGBcolor.
- Parameters:
-
buf | Buffer to unpack the data into. |
rgb | Source array of RGB data |
numPixels | Number of pixels in the array |
Definition at line 117 of file packrgb.h.
Unpack a RGB byte array into an array of csRGBcolor.
- Parameters:
-
rgb | Source array of RGB data |
numPixels | Number of pixels in the array |
- Returns:
- An array containing the source data in csRGBcolor structs.
Definition at line 143 of file packrgb.h.
Unpack a RGB byte array into an array of csRGBpixel.
- Parameters:
-
buf | Buffer to unpack the data into. |
rgb | Source array of RGB data |
numPixels | Number of pixels in the array |
Definition at line 203 of file packrgb.h.
The documentation for this struct was generated from the following file: