openMSX
|
#include <PixelOperations.hh>
Public Member Functions | |
PixelOpBase (const PixelFormat &format_) | |
const PixelFormat & | getPixelFormat () const |
int | getRmask () const |
int | getGmask () const |
int | getBmask () const |
int | getAmask () const |
int | getRshift () const |
int | getGshift () const |
int | getBshift () const |
int | getAshift () const |
int | getRloss () const |
int | getGloss () const |
int | getBloss () const |
int | 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 11 of file PixelOperations.hh.
|
inlineexplicit |
Definition at line 14 of file PixelOperations.hh.
|
inline |
Definition at line 33 of file PixelOperations.hh.
References openmsx::PixelFormat::getAloss().
|
inline |
Definition at line 25 of file PixelOperations.hh.
References openmsx::PixelFormat::getAmask().
|
inline |
Definition at line 29 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 42 of file PixelOperations.hh.
|
inline |
Definition at line 32 of file PixelOperations.hh.
References openmsx::PixelFormat::getBloss().
Referenced by openmsx::Multiply32< uint16_t >::Multiply32().
|
inline |
Definition at line 24 of file PixelOperations.hh.
References openmsx::PixelFormat::getBmask().
Referenced by openmsx::Multiply32< uint16_t >::Multiply32().
|
inline |
Definition at line 28 of file PixelOperations.hh.
References openmsx::PixelFormat::getBshift().
Referenced by openmsx::createEdgeHQ(), and openmsx::Multiply32< uint16_t >::Multiply32().
|
inline |
Definition at line 31 of file PixelOperations.hh.
References openmsx::PixelFormat::getGloss().
Referenced by openmsx::Multiply32< uint16_t >::Multiply32().
|
inline |
Definition at line 23 of file PixelOperations.hh.
References openmsx::PixelFormat::getGmask().
Referenced by openmsx::Multiply32< uint16_t >::Multiply32().
|
inline |
Definition at line 27 of file PixelOperations.hh.
References openmsx::PixelFormat::getGshift().
Referenced by openmsx::createEdgeHQ(), and openmsx::Multiply32< uint16_t >::Multiply32().
|
inline |
Definition at line 20 of file PixelOperations.hh.
|
inline |
Definition at line 30 of file PixelOperations.hh.
References openmsx::PixelFormat::getRloss().
Referenced by openmsx::Multiply32< uint16_t >::Multiply32().
|
inline |
Definition at line 22 of file PixelOperations.hh.
References openmsx::PixelFormat::getRmask().
Referenced by openmsx::Multiply32< uint16_t >::Multiply32().
|
inline |
Definition at line 26 of file PixelOperations.hh.
References openmsx::PixelFormat::getRshift().
Referenced by openmsx::createEdgeHQ(), and openmsx::Multiply32< uint16_t >::Multiply32().
|
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 48 of file PixelOperations.hh.