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 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 12 of file PixelOperations.hh.

Constructor & Destructor Documentation

◆ PixelOpBase()

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

Definition at line 15 of file PixelOperations.hh.

Member Function Documentation

◆ getAloss()

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

Definition at line 34 of file PixelOperations.hh.

References openmsx::PixelFormat::getAloss().

◆ getAmask()

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

Definition at line 26 of file PixelOperations.hh.

References openmsx::PixelFormat::getAmask().

◆ getAshift()

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

Definition at line 30 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 43 of file PixelOperations.hh.

◆ getBloss()

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

◆ getBmask()

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

◆ getBshift()

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

◆ getGloss()

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

◆ getGmask()

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

◆ getGshift()

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

◆ getPixelFormat()

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

Definition at line 21 of file PixelOperations.hh.

◆ getRloss()

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

◆ getRmask()

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

◆ getRshift()

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

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 49 of file PixelOperations.hh.


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