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
 
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 wihich component goes where, but usually it will be BGR). More...
 

Detailed Description

template<typename Pixel>
class openmsx::PixelOpBase< Pixel >

Definition at line 11 of file PixelOperations.hh.

Constructor & Destructor Documentation

◆ PixelOpBase()

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

Definition at line 14 of file PixelOperations.hh.

Member Function Documentation

◆ getAloss()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getAloss ( ) const
inline

Definition at line 33 of file PixelOperations.hh.

◆ getAmask()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getAmask ( ) const
inline

Definition at line 25 of file PixelOperations.hh.

◆ getAshift()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getAshift ( ) const
inline

Definition at line 29 of file PixelOperations.hh.

◆ getBlendMask()

template<typename 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 42 of file PixelOperations.hh.

◆ getBloss()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getBloss ( ) const
inline

Definition at line 32 of file PixelOperations.hh.

Referenced by openmsx::Multiply32< uint16_t >::Multiply32().

◆ getBmask()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getBmask ( ) const
inline

Definition at line 24 of file PixelOperations.hh.

Referenced by openmsx::Multiply32< uint16_t >::Multiply32().

◆ getBshift()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getBshift ( ) const
inline

◆ getGloss()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getGloss ( ) const
inline

Definition at line 31 of file PixelOperations.hh.

Referenced by openmsx::Multiply32< uint16_t >::Multiply32().

◆ getGmask()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getGmask ( ) const
inline

Definition at line 23 of file PixelOperations.hh.

Referenced by openmsx::Multiply32< uint16_t >::Multiply32().

◆ getGshift()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getGshift ( ) const
inline

◆ getPixelFormat()

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

Definition at line 20 of file PixelOperations.hh.

◆ getRloss()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getRloss ( ) const
inline

Definition at line 30 of file PixelOperations.hh.

Referenced by openmsx::Multiply32< uint16_t >::Multiply32().

◆ getRmask()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getRmask ( ) const
inline

Definition at line 22 of file PixelOperations.hh.

Referenced by openmsx::Multiply32< uint16_t >::Multiply32().

◆ getRshift()

template<typename Pixel >
int openmsx::PixelOpBase< Pixel >::getRshift ( ) const
inline

Member Data Documentation

◆ IS_RGB565

template<typename 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 wihich 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.


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