(ab965b1c2c3e7e4cd62a4b45abfaf393f4fb4618)
#include <stdint.h>
#include <tuple>
#include <utility>
Go to the source code of this file.
|
enum class | FXDIB_Format : uint16_t {
kInvalid = 0
, k1bppRgb = 0x001
, k8bppRgb = 0x008
, kRgb = 0x018
,
kRgb32 = 0x020
, k1bppMask = 0x101
, k8bppMask = 0x108
, kArgb = 0x220
} |
|
enum class | BlendMode {
kNormal = 0
, kMultiply
, kScreen
, kOverlay
,
kDarken
, kLighten
, kColorDodge
, kColorBurn
,
kHardLight
, kSoftLight
, kDifference
, kExclusion
,
kHue
, kSaturation
, kColor
, kLuminosity
,
kLast = kLuminosity
} |
|
|
constexpr uint32_t | FXSYS_BGR (uint8_t b, uint8_t g, uint8_t r) |
|
constexpr uint8_t | FXSYS_GetRValue (uint32_t bgr) |
|
constexpr uint8_t | FXSYS_GetGValue (uint32_t bgr) |
|
constexpr uint8_t | FXSYS_GetBValue (uint32_t bgr) |
|
constexpr unsigned int | FXSYS_GetUnsignedAlpha (float alpha) |
|
int | GetBppFromFormat (FXDIB_Format format) |
|
int | GetCompsFromFormat (FXDIB_Format format) |
|
bool | GetIsMaskFromFormat (FXDIB_Format format) |
|
FXDIB_Format | MakeRGBFormat (int bpp) |
|
constexpr FX_CMYK | CmykEncode (uint32_t c, uint32_t m, uint32_t y, uint32_t k) |
|
std::tuple< int, int, int, int > | ArgbDecode (FX_ARGB argb) |
|
std::pair< int, FX_COLORREF > | ArgbToAlphaAndColorRef (FX_ARGB argb) |
|
FX_COLORREF | ArgbToColorRef (FX_ARGB argb) |
|
constexpr FX_ARGB | ArgbEncode (uint32_t a, uint32_t r, uint32_t g, uint32_t b) |
|
FX_ARGB | AlphaAndColorRefToArgb (int a, FX_COLORREF colorref) |
|
void | ReverseCopy3Bytes (uint8_t *dest, const uint8_t *src) |
|
◆ FXARGB_A
Value:((uint8_t)((argb) >> 24))
Definition at line 124 of file fx_dib.h.
◆ FXARGB_B
◆ FXARGB_G
◆ FXARGB_GETDIB
#define FXARGB_GETDIB |
( |
| p | ) |
|
Value: ((((uint8_t*)(
p))[0]) | (((uint8_t*)(
p))[1] << 8) | \
(((uint8_t*)(
p))[2] << 16) | (((uint8_t*)(
p))[3] << 24))
Definition at line 134 of file fx_dib.h.
◆ FXARGB_MUL_ALPHA
#define FXARGB_MUL_ALPHA |
( |
| argb, |
|
|
| alpha ) |
Value: (((((argb) >> 24) * (
alpha) / 255) << 24) | ((argb)&0xffffff))
GLfloat GLfloat GLfloat alpha
Definition at line 128 of file fx_dib.h.
◆ FXARGB_R
Value:((uint8_t)((argb) >> 16))
Definition at line 125 of file fx_dib.h.
◆ FXARGB_SETDIB
#define FXARGB_SETDIB |
( |
| p, |
|
|
| argb ) |
Value: ((uint8_t*)(
p))[0] = (uint8_t)(argb), \
((uint8_t*)(
p))[1] = (uint8_t)((argb) >> 8), \
((uint8_t*)(
p))[2] = (uint8_t)((argb) >> 16), \
((uint8_t*)(
p))[3] = (uint8_t)((argb) >> 24)
Definition at line 137 of file fx_dib.h.
◆ FXARGB_SETRGBORDERDIB
#define FXARGB_SETRGBORDERDIB |
( |
| p, |
|
|
| argb ) |
Value: ((uint8_t*)(
p))[3] = (uint8_t)(argb >> 24), \
((uint8_t*)(
p))[0] = (uint8_t)((argb) >> 16), \
((uint8_t*)(
p))[1] = (uint8_t)((argb) >> 8), \
((uint8_t*)(
p))[2] = (uint8_t)(argb)
Definition at line 142 of file fx_dib.h.
◆ FXARGB_TOBGRORDERDIB
#define FXARGB_TOBGRORDERDIB |
( |
| argb | ) |
|
Value: ((uint8_t)(argb >> 16) | ((uint8_t)(argb >> 8)) << 8 | \
((uint8_t)(argb)) << 16 | ((uint8_t)(argb >> 24) << 24))
Definition at line 150 of file fx_dib.h.
◆ FXCMYK_TODIB
#define FXCMYK_TODIB |
( |
| cmyk | ) |
|
Value: ((uint8_t)((cmyk) >> 24) | ((uint8_t)((cmyk) >> 16)) << 8 | \
((uint8_t)((cmyk) >> 8)) << 16 | ((uint8_t)(cmyk) << 24))
Definition at line 147 of file fx_dib.h.
◆ FXDIB_ALPHA_MERGE
#define FXDIB_ALPHA_MERGE |
( |
| backdrop, |
|
|
| source, |
|
|
| source_alpha ) |
Value: (((backdrop) * (255 - (source_alpha)) + (
source) * (source_alpha)) / 255)
GLsizei GLsizei GLchar * source
Definition at line 132 of file fx_dib.h.
◆ FXRGB2GRAY
#define FXRGB2GRAY |
( |
| r, |
|
|
| g, |
|
|
| b ) |
Value:(((
b)*11 + (
g)*59 + (
r)*30) / 100)
GLboolean GLboolean GLboolean b
Definition at line 131 of file fx_dib.h.
◆ FX_ARGB
◆ FX_CMYK
◆ FX_COLORREF
◆ BlendMode
Enumerator |
---|
kNormal | |
kMultiply | |
kScreen | |
kOverlay | |
kDarken | |
kLighten | |
kColorDodge | |
kColorBurn | |
kHardLight | |
kSoftLight | |
kDifference | |
kExclusion | |
kHue | |
kSaturation | |
kColor | |
kLuminosity | |
kLast | |
Definition at line 49 of file fx_dib.h.
◆ FXDIB_Format
Enumerator |
---|
kInvalid | |
k1bppRgb | |
k8bppRgb | |
kRgb | |
kRgb32 | |
k1bppMask | |
k8bppMask | |
kArgb | |
Definition at line 19 of file fx_dib.h.
◆ AlphaAndColorRefToArgb()
◆ ArgbDecode()
std::tuple< int, int, int, int > ArgbDecode |
( |
FX_ARGB | argb | ) |
|
◆ ArgbEncode()
FX_ARGB ArgbEncode |
( |
uint32_t | a, |
|
|
uint32_t | r, |
|
|
uint32_t | g, |
|
|
uint32_t | b ) |
|
constexpr |
Definition at line 118 of file fx_dib.h.
Referenced by AlphaAndColorRefToArgb(), CFX_DIBitmap::CompositeRect(), CPDF_RenderShading::Draw(), CFWL_EditTP::DrawBackground(), CFWL_ListBoxTP::DrawBackground(), CFWL_WidgetTP::DrawBorder(), CPDF_Annot::DrawBorder(), CPWL_EditImpl::DrawEdit(), CFX_DrawUtils::DrawFocusRect(), CFX_RenderDevice::DrawShadow(), CPWL_Caret::DrawThisAppearance(), CPWL_ListBox::DrawThisAppearance(), CPWL_SBButton::DrawThisAppearance(), CPDF_ApSettings::GetColorARGB(), CPDF_DefaultAppearance::GetColorARGB(), CFX_DIBBase::GetPaletteArgb(), CXFA_FFPushButton::OnDrawWidget(), CFX_CSSDeclaration::ParseCSSColor(), CXFA_Color::StringToFXARGB(), CFX_Color::ToFXColor(), and CPDF_RenderOptions::TranslateColor().
◆ ArgbToAlphaAndColorRef()
◆ ArgbToColorRef()
◆ CmykEncode()
FX_CMYK CmykEncode |
( |
uint32_t | c, |
|
|
uint32_t | m, |
|
|
uint32_t | y, |
|
|
uint32_t | k ) |
|
constexpr |
◆ FXSYS_BGR()
uint32_t FXSYS_BGR |
( |
uint8_t | b, |
|
|
uint8_t | g, |
|
|
uint8_t | r ) |
|
constexpr |
◆ FXSYS_GetBValue()
uint8_t FXSYS_GetBValue |
( |
uint32_t | bgr | ) |
|
|
constexpr |
◆ FXSYS_GetGValue()
uint8_t FXSYS_GetGValue |
( |
uint32_t | bgr | ) |
|
|
constexpr |
◆ FXSYS_GetRValue()
uint8_t FXSYS_GetRValue |
( |
uint32_t | bgr | ) |
|
|
constexpr |
◆ FXSYS_GetUnsignedAlpha()
unsigned int FXSYS_GetUnsignedAlpha |
( |
float | alpha | ) |
|
|
constexpr |
◆ GetBppFromFormat()
Definition at line 90 of file fx_dib.h.
Referenced by CStretchEngine::CStretchEngine(), CFX_DIBitmap::CalculatePitchAndSize(), CFX_DIBBase::ClipToInternal(), CFX_DIBitmap::CompositeBitmap(), CFX_ScanlineCompositor::CompositeBitMaskLine(), CFX_ScanlineCompositor::CompositeByteMaskLine(), CFX_DIBitmap::CompositeMask(), CFX_ScanlineCompositor::CompositePalBitmapLine(), CFX_DIBitmap::CompositeRect(), CFX_ScanlineCompositor::CompositeRgbBitmapLine(), CFX_DIBBase::ConvertBuffer(), CFX_DIBitmap::ConvertFormat(), CFX_DIBBase::FlipImage(), CFX_DIBBase::GetBPP(), and CFX_DIBBase::GetRequiredPaletteSize().
◆ GetCompsFromFormat()
◆ GetIsMaskFromFormat()
◆ MakeRGBFormat()
◆ ReverseCopy3Bytes()
void ReverseCopy3Bytes |
( |
uint8_t * | dest, |
|
|
const uint8_t * | src ) |
|
inline |