#include <plpixel32.h>
Collaboration diagram for PLPixel32:
Public Member Functions | |
PLPixel32 () | |
PLPixel32 (PLBYTE r, PLBYTE g, PLBYTE b, PLBYTE a) | |
PLPixel32 (PLBYTE r, PLBYTE g, PLBYTE b) | |
void | Set (PLBYTE r, PLBYTE g, PLBYTE b, PLBYTE a) |
void | Set (PLBYTE r, PLBYTE g, PLBYTE b) |
void | SetR (PLBYTE r) |
void | SetG (PLBYTE g) |
void | SetB (PLBYTE b) |
void | SetA (PLBYTE a) |
PLBYTE | GetR () const |
PLBYTE | GetG () const |
PLBYTE | GetB () const |
PLBYTE | GetA () const |
bool | operator== (const PLPixel32 Pix) const |
bool | operator!= (const PLPixel32 Pix) const |
int | BoxDist (const PLPixel32 Pix) const |
Simple and fast 'distance' between two pixels. | |
Static Public Member Functions | |
PLPixel32 | Blend (int Factor, const PLPixel32 Pix1, const PLPixel32 Pix2) |
Returns a weighed average between two pixels. | |
Private Attributes | |
PLBYTE | m_Data [4] |
A pixel in this class contains 8 bits each of red, green, blue and alpha. The order of the color components is OS-dependent and defined in config.h. This class is meant to be fast, so all methods are inlined.
Definition at line 21 of file plpixel32.h.
|
Definition at line 72 of file plpixel32.h. Referenced by Blend(). |
|
Definition at line 77 of file plpixel32.h. |
Here is the call graph for this function:
|
Definition at line 83 of file plpixel32.h. |
Here is the call graph for this function:
|
Returns a weighed average between two pixels. Factor must be between 0 and 256. Factor=256 means Pix1 is the result, Factor=0 means Pix2 is the result. Definition at line 159 of file plpixel32.h. References GetA(), GetB(), GetG(), GetR(), PLASSERT, and PLPixel32(). |
Here is the call graph for this function:
|
Simple and fast 'distance' between two pixels. Just adds the distances between the color components and treats colors equally. Definition at line 152 of file plpixel32.h. References linalg::abs(), GetB(), GetG(), and GetR(). Referenced by PLBmp::FindNearestColor(). |
Here is the call graph for this function:
|
Definition at line 147 of file plpixel32.h. References m_Data, and PLBYTE. Referenced by PLFilterGetAlpha::Apply(), and Blend(). |
|
Definition at line 141 of file plpixel32.h. References m_Data, and PLBYTE. Referenced by Blend(), BoxDist(), PLFilterQuantize::colorDist(), PLFilterQuantize::ditherDestBmp(), PLTIFFEncoder::DoTiffEncode(), PLJPEGEncoder::encodeRGB(), PLFilterQuantize::genMedianPalette(), PLFilterQuantize::getColorTableIndex(), PLFilterQuantize::getShiftedColorTableIndex(), PLPixel24::operator=(), and PLFilterQuantize::squeeze(). |
|
Definition at line 135 of file plpixel32.h. References m_Data, and PLBYTE. Referenced by Blend(), BoxDist(), PLFilterQuantize::colorDist(), PLFilterQuantize::ditherDestBmp(), PLTIFFEncoder::DoTiffEncode(), PLJPEGEncoder::encodeRGB(), PLFilterQuantize::genMedianPalette(), PLFilterQuantize::getColorTableIndex(), PLFilterQuantize::getShiftedColorTableIndex(), PLPixel24::operator=(), and PLFilterQuantize::squeeze(). |
|
Definition at line 129 of file plpixel32.h. References m_Data, and PLBYTE. Referenced by Blend(), BoxDist(), PLFilterQuantize::colorDist(), PLFilterQuantize::ditherDestBmp(), PLTIFFEncoder::DoTiffEncode(), PLJPEGEncoder::encodeRGB(), PLFilterQuantize::genMedianPalette(), PLFilterQuantize::getColorTableIndex(), PLFilterQuantize::getShiftedColorTableIndex(), PLPixel24::operator=(), and PLFilterQuantize::squeeze(). |
|
Definition at line 174 of file plpixel32.h. |
|
Definition at line 169 of file plpixel32.h. References PLLONG. |
|
Definition at line 98 of file plpixel32.h. |
|
Definition at line 89 of file plpixel32.h. References m_Data, and PLBYTE. Referenced by createTrueColorCopy(), PLFilterQuantize::ditherDestBmp(), PLPCXDecoder::DoDecode(), PLTIFFDecoder::doHiColor(), PLPPMDecoder::expandByteLine(), PLFilterQuantize::genMedianPalette(), PLFilterQuantize::genPopularityPalette(), PLPixel32(), PLPPMDecoder::readASCIIPixel32(), and PLTGADecoder::readPixel32(). |
|
Definition at line 123 of file plpixel32.h. References m_Data, and PLBYTE. Referenced by PLBmp::SetAlphaChannel(), and PLPictDecoder::unpack32bits(). |
|
Definition at line 117 of file plpixel32.h. References m_Data, and PLBYTE. Referenced by PLJPEGDecoder::decodeRGB(), PLFilterQuantize::genPopularityPalette(), PLPictDecoder::readColourTable(), and PLPictDecoder::unpack32bits(). |
|
Definition at line 111 of file plpixel32.h. References m_Data, and PLBYTE. Referenced by PLJPEGDecoder::decodeRGB(), PLFilterQuantize::genPopularityPalette(), PLPictDecoder::readColourTable(), and PLPictDecoder::unpack32bits(). |
|
Definition at line 105 of file plpixel32.h. References m_Data, and PLBYTE. Referenced by PLJPEGDecoder::decodeRGB(), PLFilterQuantize::genPopularityPalette(), PLPictDecoder::readColourTable(), and PLPictDecoder::unpack32bits(). |
|
Definition at line 69 of file plpixel32.h. Referenced by GetA(), GetB(), GetG(), GetR(), Set(), SetA(), SetB(), SetG(), and SetR(). |