MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ChromaKeyOSD Class Reference

#include <osdchromakey.h>

Collaboration diagram for ChromaKeyOSD:
Collaboration graph
[legend]

Public Member Functions

 ChromaKeyOSD (VideoOutputXv *vo)
 
 ~ChromaKeyOSD (void)
 
bool ProcessOSD (OSD *osd)
 
XImage * GetImage ()
 
MythPainterGetPainter (void)
 

Private Member Functions

bool Init (QSize new_size)
 
void TearDown (void)
 
bool CreateShmImage (QSize area)
 
void DestroyShmImage (void)
 
void BlendOrCopy (uint32_t colour, const QRect &rect)
 

Private Attributes

QSize current_size
 
QRect current_rect
 
VideoOutputXvvideoOutput
 
XImage * img
 
XShmSegmentInfo shm_infos
 
QImage * image
 
MythQImagePainterpainter
 
bool visible
 

Detailed Description

Definition at line 11 of file osdchromakey.h.

Constructor & Destructor Documentation

◆ ChromaKeyOSD()

ChromaKeyOSD::ChromaKeyOSD ( VideoOutputXv vo)
inlineexplicit

Definition at line 14 of file osdchromakey.h.

◆ ~ChromaKeyOSD()

ChromaKeyOSD::~ChromaKeyOSD ( void  )

Definition at line 26 of file osdchromakey.cpp.

Member Function Documentation

◆ ProcessOSD()

bool ChromaKeyOSD::ProcessOSD ( OSD osd)
Returns
true if we need a repaint, false otherwise

Definition at line 246 of file osdchromakey.cpp.

Referenced by VideoOutputXv::ProcessFrame().

◆ GetImage()

XImage* ChromaKeyOSD::GetImage ( )
inline

Definition at line 23 of file osdchromakey.h.

Referenced by VideoOutputXv::DrawUnusedRects().

◆ GetPainter()

MythPainter* ChromaKeyOSD::GetPainter ( void  )
inline

Definition at line 24 of file osdchromakey.h.

Referenced by VideoOutputXv::GetOSDPainter().

◆ Init()

bool ChromaKeyOSD::Init ( QSize  new_size)
private

Definition at line 94 of file osdchromakey.cpp.

Referenced by ProcessOSD().

◆ TearDown()

void ChromaKeyOSD::TearDown ( void  )
private

Definition at line 119 of file osdchromakey.cpp.

Referenced by Init(), and ~ChromaKeyOSD().

◆ CreateShmImage()

bool ChromaKeyOSD::CreateShmImage ( QSize  area)
private

Definition at line 31 of file osdchromakey.cpp.

Referenced by Init().

◆ DestroyShmImage()

void ChromaKeyOSD::DestroyShmImage ( void  )
private

Definition at line 74 of file osdchromakey.cpp.

Referenced by TearDown().

◆ BlendOrCopy()

void ChromaKeyOSD::BlendOrCopy ( uint32_t  colour,
const QRect &  rect 
)
private

Definition at line 139 of file osdchromakey.cpp.

Referenced by ProcessOSD().

Member Data Documentation

◆ current_size

QSize ChromaKeyOSD::current_size
private

Definition at line 33 of file osdchromakey.h.

Referenced by Init(), and ProcessOSD().

◆ current_rect

QRect ChromaKeyOSD::current_rect
private

Definition at line 34 of file osdchromakey.h.

Referenced by ProcessOSD().

◆ videoOutput

VideoOutputXv* ChromaKeyOSD::videoOutput
private

Definition at line 35 of file osdchromakey.h.

Referenced by CreateShmImage(), DestroyShmImage(), and ProcessOSD().

◆ img

XImage* ChromaKeyOSD::img
private

Definition at line 36 of file osdchromakey.h.

Referenced by BlendOrCopy(), CreateShmImage(), DestroyShmImage(), and GetImage().

◆ shm_infos

XShmSegmentInfo ChromaKeyOSD::shm_infos
private

Definition at line 37 of file osdchromakey.h.

Referenced by BlendOrCopy(), ChromaKeyOSD(), CreateShmImage(), and DestroyShmImage().

◆ image

QImage* ChromaKeyOSD::image
private

Definition at line 38 of file osdchromakey.h.

Referenced by BlendOrCopy(), Init(), ProcessOSD(), and TearDown().

◆ painter

MythQImagePainter* ChromaKeyOSD::painter
private

Definition at line 39 of file osdchromakey.h.

Referenced by GetPainter(), Init(), ProcessOSD(), and TearDown().

◆ visible

bool ChromaKeyOSD::visible
private

Definition at line 40 of file osdchromakey.h.

Referenced by GetImage(), VideoOutput::GetOSDBounds(), and ProcessOSD().


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