openMSX
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
openmsx::Deflicker Class Reference

#include <Deflicker.hh>

Inheritance diagram for openmsx::Deflicker:
Inheritance graph
[legend]
Collaboration diagram for openmsx::Deflicker:
Collaboration graph
[legend]

Public Member Functions

void init ()
 
virtual ~Deflicker ()=default
 
- Public Member Functions inherited from openmsx::FrameSource
void init (FieldType fieldType_)
 (Re)initialize an existing FrameSource. More...
 
FieldType getField () const
 Gets the role this frame plays in interlacing. More...
 
unsigned getHeight () const
 Gets the number of lines in this frame. More...
 
unsigned getWidth () const
 Get the width of (all) lines in this frame. More...
 
template<typename Pixel >
Pixel getLineColor (unsigned line) const
 Get the (single) color of the given line. More...
 
template<typename Pixel >
const PixelgetLinePtr (int line, unsigned width, Pixel *buf) const
 Gets a pointer to the pixels of the given line number. More...
 
template<typename Pixel >
const PixelgetMultiLinePtr (int line, unsigned numLines, unsigned &actualLines, unsigned width, Pixel *buf) const
 Similar to the above getLinePtr() method, but now tries to get multiple lines at once. More...
 
virtual const void * getLineInfo (unsigned line, unsigned &lineWidth, void *buf, unsigned bufWidth) const =0
 Abstract implementation of getLinePtr(). More...
 
template<typename Pixel >
const PixelgetLinePtr320_240 (unsigned line, Pixel *buf) const
 Get a pointer to a given line in this frame, the frame is scaled to 320x240 pixels. More...
 
template<typename Pixel >
const PixelgetLinePtr640_480 (unsigned line, Pixel *buf) const
 Get a pointer to a given line in this frame, the frame is scaled to 640x480 pixels. More...
 
template<typename Pixel >
const PixelgetLinePtr960_720 (unsigned line, Pixel *buf) const
 Get a pointer to a given line in this frame, the frame is scaled to 960x720 pixels. More...
 
virtual unsigned getRowLength () const
 Returns the distance (in pixels) between two consecutive lines. More...
 
const SDL_PixelFormat & getSDLPixelFormat () const
 

Static Public Member Functions

static std::unique_ptr< Deflickercreate (const SDL_PixelFormat &format, std::unique_ptr< RawFrame > *lastFrames)
 

Protected Member Functions

 Deflicker (const SDL_PixelFormat &format, std::unique_ptr< RawFrame > *lastFrames)
 
unsigned getLineWidth (unsigned line) const override
 Gets the number of display pixels on the given line. More...
 
- Protected Member Functions inherited from openmsx::FrameSource
 FrameSource (const SDL_PixelFormat &format)
 
 ~FrameSource ()=default
 
void setHeight (unsigned height_)
 
virtual bool hasContiguousStorage () const
 Returns true when two consecutive rows are also consecutive in memory. More...
 
template<typename Pixel >
void scaleLine (const Pixel *in, Pixel *out, unsigned inWidth, unsigned outWidth) const
 

Protected Attributes

std::unique_ptr< RawFrame > * lastFrames
 

Additional Inherited Members

- Public Types inherited from openmsx::FrameSource
enum  FieldType { FIELD_NONINTERLACED, FIELD_EVEN, FIELD_ODD }
 What role does this frame play in interlacing? More...
 

Detailed Description

Definition at line 11 of file Deflicker.hh.

Constructor & Destructor Documentation

◆ ~Deflicker()

virtual openmsx::Deflicker::~Deflicker ( )
virtualdefault

◆ Deflicker()

openmsx::Deflicker::Deflicker ( const SDL_PixelFormat &  format,
std::unique_ptr< RawFrame > *  lastFrames 
)
protected

Definition at line 47 of file Deflicker.cc.

Member Function Documentation

◆ create()

std::unique_ptr< Deflicker > openmsx::Deflicker::create ( const SDL_PixelFormat &  format,
std::unique_ptr< RawFrame > *  lastFrames 
)
static

Definition at line 29 of file Deflicker.cc.

References lastFrames, and UNREACHABLE.

Referenced by openmsx::PostProcessor::PostProcessor().

◆ getLineWidth()

unsigned openmsx::Deflicker::getLineWidth ( unsigned  line) const
overrideprotectedvirtual

Gets the number of display pixels on the given line.

Returns
line width (=1 for a vertical border line)

Implements openmsx::FrameSource.

Definition at line 60 of file Deflicker.cc.

References lastFrames.

◆ init()

void openmsx::Deflicker::init ( )

Member Data Documentation

◆ lastFrames

std::unique_ptr<RawFrame>* openmsx::Deflicker::lastFrames
protected

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