openMSX
Public Member Functions | List of all members
openmsx::PixelFormat Class Reference

#include <PixelFormat.hh>

Public Member Functions

 PixelFormat ()=default
 
 PixelFormat (unsigned bpp_, uint32_t Rmask_, uint8_t Rshift_, uint8_t Rloss_, uint32_t Gmask_, uint8_t Gshift_, uint8_t Gloss_, uint32_t Bmask_, uint8_t Bshift_, uint8_t Bloss_, uint32_t Amask_, uint8_t Ashift_, uint8_t Aloss_)
 
unsigned getBpp () const
 
unsigned getBytesPerPixel () 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
 
unsigned map (unsigned r, unsigned g, unsigned b) const
 

Detailed Description

Definition at line 9 of file PixelFormat.hh.

Constructor & Destructor Documentation

◆ PixelFormat() [1/2]

openmsx::PixelFormat::PixelFormat ( )
default

◆ PixelFormat() [2/2]

openmsx::PixelFormat::PixelFormat ( unsigned  bpp_,
uint32_t  Rmask_,
uint8_t  Rshift_,
uint8_t  Rloss_,
uint32_t  Gmask_,
uint8_t  Gshift_,
uint8_t  Gloss_,
uint32_t  Bmask_,
uint8_t  Bshift_,
uint8_t  Bloss_,
uint32_t  Amask_,
uint8_t  Ashift_,
uint8_t  Aloss_ 
)
inline

Definition at line 13 of file PixelFormat.hh.

Member Function Documentation

◆ getAloss()

unsigned openmsx::PixelFormat::getAloss ( ) const
inline

Definition at line 40 of file PixelFormat.hh.

Referenced by openmsx::PixelOpBase< Pixel >::getAloss().

◆ getAmask()

unsigned openmsx::PixelFormat::getAmask ( ) const
inline

◆ getAshift()

unsigned openmsx::PixelFormat::getAshift ( ) const
inline

◆ getBloss()

unsigned openmsx::PixelFormat::getBloss ( ) const
inline

Definition at line 39 of file PixelFormat.hh.

Referenced by openmsx::PixelOpBase< Pixel >::getBloss().

◆ getBmask()

unsigned openmsx::PixelFormat::getBmask ( ) const
inline

◆ getBpp()

unsigned openmsx::PixelFormat::getBpp ( ) const
inline

◆ getBshift()

unsigned openmsx::PixelFormat::getBshift ( ) const
inline

◆ getBytesPerPixel()

unsigned openmsx::PixelFormat::getBytesPerPixel ( ) const
inline

Definition at line 25 of file PixelFormat.hh.

Referenced by openmsx::SDLOffScreenSurface::SDLOffScreenSurface().

◆ getGloss()

unsigned openmsx::PixelFormat::getGloss ( ) const
inline

Definition at line 38 of file PixelFormat.hh.

Referenced by openmsx::PixelOpBase< Pixel >::getGloss().

◆ getGmask()

unsigned openmsx::PixelFormat::getGmask ( ) const
inline

◆ getGshift()

unsigned openmsx::PixelFormat::getGshift ( ) const
inline

◆ getRloss()

unsigned openmsx::PixelFormat::getRloss ( ) const
inline

Definition at line 37 of file PixelFormat.hh.

Referenced by openmsx::PixelOpBase< Pixel >::getRloss().

◆ getRmask()

unsigned openmsx::PixelFormat::getRmask ( ) const
inline

◆ getRshift()

unsigned openmsx::PixelFormat::getRshift ( ) const
inline

◆ map()

unsigned openmsx::PixelFormat::map ( unsigned  r,
unsigned  g,
unsigned  b 
) const
inline

Definition at line 42 of file PixelFormat.hh.

References g.

Referenced by openmsx::OutputSurface::mapRGB255().


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