openMSX
|
#include <PixelOperations.hh>
Public Member Functions | |
PixelOpBase (const PixelFormat &format_) | |
const PixelFormat & | getPixelFormat () const |
unsigned | getRmask () const |
unsigned | getGmask () const |
unsigned | getBmask () const |
unsigned | getAmask () const |
unsigned | getRshift () const |
unsigned | getGshift () const |
unsigned | getBshift () const |
unsigned | getAshift () const |
unsigned | getRloss () const |
unsigned | getGloss () const |
unsigned | getBloss () const |
unsigned | getAloss () const |
Pixel | getBlendMask () const |
Returns a constant that is useful to calculate the average of two pixel values. More... | |
Static Public Attributes | |
static constexpr bool | IS_RGB565 = false |
Return true if it's statically known that the pixelformat has a 5-6-5 format (not specified which component goes where, but usually it will be BGR). More... | |
Definition at line 14 of file PixelOperations.hh.
|
inlineexplicit |
Definition at line 17 of file PixelOperations.hh.
|
inline |
Definition at line 36 of file PixelOperations.hh.
References openmsx::PixelFormat::getAloss().
|
inline |
Definition at line 28 of file PixelOperations.hh.
References openmsx::PixelFormat::getAmask().
|
inline |
Definition at line 32 of file PixelOperations.hh.
References openmsx::PixelFormat::getAshift().
|
inline |
Returns a constant that is useful to calculate the average of two pixel values.
See the implementation of blend(p1, p2) for more details. For single pixels it's of course better to use the blend(p1, p2) method directly. This method is typically used as a helper in older SIMD (MMX/SSE1) routines.
Definition at line 45 of file PixelOperations.hh.
|
inline |
Definition at line 35 of file PixelOperations.hh.
References openmsx::PixelFormat::getBloss().
|
inline |
Definition at line 27 of file PixelOperations.hh.
References openmsx::PixelFormat::getBmask().
|
inline |
Definition at line 31 of file PixelOperations.hh.
References openmsx::PixelFormat::getBshift().
Referenced by openmsx::createEdgeHQ().
|
inline |
Definition at line 34 of file PixelOperations.hh.
References openmsx::PixelFormat::getGloss().
|
inline |
Definition at line 26 of file PixelOperations.hh.
References openmsx::PixelFormat::getGmask().
|
inline |
Definition at line 30 of file PixelOperations.hh.
References openmsx::PixelFormat::getGshift().
Referenced by openmsx::createEdgeHQ().
|
inline |
Definition at line 23 of file PixelOperations.hh.
|
inline |
Definition at line 33 of file PixelOperations.hh.
References openmsx::PixelFormat::getRloss().
|
inline |
Definition at line 25 of file PixelOperations.hh.
References openmsx::PixelFormat::getRmask().
|
inline |
Definition at line 29 of file PixelOperations.hh.
References openmsx::PixelFormat::getRshift().
Referenced by openmsx::createEdgeHQ().
|
staticconstexpr |
Return true if it's statically known that the pixelformat has a 5-6-5 format (not specified which component goes where, but usually it will be BGR).
This method is currently used to pick a faster version for lerp() on dingoo.
Definition at line 51 of file PixelOperations.hh.