openMSX
Public Member Functions | Static Public Attributes | List of all members
openmsx::PixelOpBase< Pixel > Class Template Reference

#include <PixelOperations.hh>

Inheritance diagram for openmsx::PixelOpBase< Pixel >:
Inheritance graph
[legend]

Public Member Functions

 PixelOpBase (const PixelFormat &format_)
 
const PixelFormatgetPixelFormat () 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...
 

Detailed Description

template<std::unsigned_integral Pixel>
class openmsx::PixelOpBase< Pixel >

Definition at line 14 of file PixelOperations.hh.

Constructor & Destructor Documentation

◆ PixelOpBase()

template<std::unsigned_integral Pixel>
openmsx::PixelOpBase< Pixel >::PixelOpBase ( const PixelFormat format_)
inlineexplicit

Definition at line 17 of file PixelOperations.hh.

Member Function Documentation

◆ getAloss()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getAloss ( ) const
inline

Definition at line 36 of file PixelOperations.hh.

References openmsx::PixelFormat::getAloss().

◆ getAmask()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getAmask ( ) const
inline

Definition at line 28 of file PixelOperations.hh.

References openmsx::PixelFormat::getAmask().

◆ getAshift()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getAshift ( ) const
inline

Definition at line 32 of file PixelOperations.hh.

References openmsx::PixelFormat::getAshift().

◆ getBlendMask()

template<std::unsigned_integral Pixel>
Pixel openmsx::PixelOpBase< Pixel >::getBlendMask ( ) const
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.

◆ getBloss()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getBloss ( ) const
inline

Definition at line 35 of file PixelOperations.hh.

References openmsx::PixelFormat::getBloss().

◆ getBmask()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getBmask ( ) const
inline

Definition at line 27 of file PixelOperations.hh.

References openmsx::PixelFormat::getBmask().

◆ getBshift()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getBshift ( ) const
inline

Definition at line 31 of file PixelOperations.hh.

References openmsx::PixelFormat::getBshift().

Referenced by openmsx::createEdgeHQ().

◆ getGloss()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getGloss ( ) const
inline

Definition at line 34 of file PixelOperations.hh.

References openmsx::PixelFormat::getGloss().

◆ getGmask()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getGmask ( ) const
inline

Definition at line 26 of file PixelOperations.hh.

References openmsx::PixelFormat::getGmask().

◆ getGshift()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getGshift ( ) const
inline

Definition at line 30 of file PixelOperations.hh.

References openmsx::PixelFormat::getGshift().

Referenced by openmsx::createEdgeHQ().

◆ getPixelFormat()

template<std::unsigned_integral Pixel>
const PixelFormat & openmsx::PixelOpBase< Pixel >::getPixelFormat ( ) const
inline

Definition at line 23 of file PixelOperations.hh.

◆ getRloss()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getRloss ( ) const
inline

Definition at line 33 of file PixelOperations.hh.

References openmsx::PixelFormat::getRloss().

◆ getRmask()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getRmask ( ) const
inline

Definition at line 25 of file PixelOperations.hh.

References openmsx::PixelFormat::getRmask().

◆ getRshift()

template<std::unsigned_integral Pixel>
unsigned openmsx::PixelOpBase< Pixel >::getRshift ( ) const
inline

Definition at line 29 of file PixelOperations.hh.

References openmsx::PixelFormat::getRshift().

Referenced by openmsx::createEdgeHQ().

Member Data Documentation

◆ IS_RGB565

template<std::unsigned_integral Pixel>
constexpr bool openmsx::PixelOpBase< Pixel >::IS_RGB565 = false
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.


The documentation for this class was generated from the following file: