|
MythTV
0.27pre
|
#include <mythimage.h>


Public Member Functions | |
| MythImage (MythPainter *parent, const char *name="MythImage") | |
| Creates a reference counted image, call DecrRef() to delete. | |
| MythPainter * | GetParent (void) |
| void | SetParent (MythPainter *parent) |
| virtual int | IncrRef (void) |
| Increments reference count. | |
| virtual int | DecrRef (void) |
| Decrements reference count and deletes on 0. | |
| virtual void | SetChanged (bool change=true) |
| bool | IsChanged () const |
| bool | IsGradient () const |
| bool | IsReflected () const |
| void | SetToYUV (void) |
| void | ConvertToYUV (void) |
| void | Assign (const QImage &img) |
| void | Assign (const QPixmap &pix) |
| bool | Load (MythImageReader *reader) |
| bool | Load (const QString &filename, bool scale=true) |
| void | Resize (const QSize &newSize, bool preserveAspect=false) |
| void | Reflect (ReflectAxis axis, int shear, int scale, int length, int spacing=0) |
| void | ToGreyscale () |
| void | SetID (unsigned int id) |
| unsigned int | GetID (void) const |
| void | SetFileName (QString fname) |
| QString | GetFileName (void) const |
| void | setIsReflected (bool reflected) |
| void | SetIsInCache (bool bCached) |
| uint | GetCacheSize (void) const |
Public Member Functions inherited from ReferenceCounter | |
| ReferenceCounter (const QString &debugName, bool logDebug=true) | |
| Creates reference counter with an initial value of 1. | |
Static Public Member Functions | |
| static MythImage * | Gradient (MythPainter *painter, const QSize &size, const QColor &beg, const QColor &end, uint alpha, FillDirection direction=FillTopToBottom) |
| Create a gradient image. | |
Static Public Member Functions inherited from ReferenceCounter | |
| static void | PrintDebug (void) |
| Print out any leaks if that level of debugging is enabled. | |
Protected Member Functions | |
| virtual | ~MythImage () |
Protected Member Functions inherited from ReferenceCounter | |
| virtual | ~ReferenceCounter (void) |
| Called on destruction, will warn if object deleted with references in place. | |
Static Protected Member Functions | |
| static void | MakeGradient (QImage &image, const QColor &begin, const QColor &end, int alpha, bool drawBoundary=true, FillDirection direction=FillTopToBottom) |
Protected Attributes | |
| bool | m_Changed |
| MythPainter * | m_Parent |
| bool | m_isGradient |
| QColor | m_gradBegin |
| QColor | m_gradEnd |
| int | m_gradAlpha |
| FillDirection | m_gradDirection |
| bool | m_isReflected |
| bool | m_isYUV |
| unsigned int | m_imageId |
| QString | m_FileName |
| bool | m_cached |
Protected Attributes inherited from ReferenceCounter | |
| const QString | m_debugName |
| bool | m_logDebug |
| This is used to suppress creating LoggingItem classes for LoggingItem reference count changes. | |
| QAtomicInt | m_referenceCount |
Static Protected Attributes | |
| static MythUIHelper * | s_ui = NULL |
Definition at line 31 of file mythimage.h.
| MythImage::MythImage | ( | MythPainter * | parent, |
| const char * | name = "MythImage" |
||
| ) |
Creates a reference counted image, call DecrRef() to delete.
Definition at line 28 of file mythimage.cpp.
|
protectedvirtual |
Definition at line 56 of file mythimage.cpp.
|
inline |
Definition at line 37 of file mythimage.h.
Referenced by MythPainter::CheckFormatImage().
|
inline |
Definition at line 38 of file mythimage.h.
Referenced by MythPainter::CheckFormatImage().
Increments reference count.
Reimplemented from ReferenceCounter.
Definition at line 62 of file mythimage.cpp.
Referenced by MythUIHelper::CacheImage(), MythUIImage::DrawSelf(), MythBrowser::GetDefaultFavIcon(), MythUIButtonListItem::GetImage(), MythPainter::GetImageFromRect(), MythPainter::GetImageFromTextLayout(), ImageLoader::LoadImage(), MythUIButtonListItem::SetImage(), MythUIImage::SetImage(), MythUIImage::SetImages(), SetIsInCache(), and ImageProperties::SetMaskImage().
Decrements reference count and deletes on 0.
Reimplemented from ReferenceCounter.
Definition at line 70 of file mythimage.cpp.
Referenced by SubtitleScreen::AddScaledImage(), MythUIImage::customEvent(), BDOverlayScreen::DisplayBDOverlay(), VideoOutput::DisplayOSD(), SubtitleScreen::DisplayScaledAVSubtitles(), MythYUVAPainter::DrawEllipse(), MythPainter::DrawEllipse(), MythYUVAPainter::DrawRect(), MythPainter::DrawRect(), MythYUVAPainter::DrawRoundRect(), MythPainter::DrawRoundRect(), MythUIImage::DrawSelf(), MythYUVAPainter::DrawText(), MythPainter::DrawText(), MythPainter::DrawTextLayout(), ZMEvents::eventChanged(), MythPainter::ExpireImages(), ThumbFinder::getFrameImage(), MythUIButtonListItem::HasImage(), MythUIImage::Load(), MythUIHelper::LoadCacheImage(), MythUIGuideGrid::LoadImage(), ImageLoader::LoadImage(), TeletextScreen::OptimiseDisplayedArea(), MythUIImage::ParseElement(), SubtitleScreen::RenderAssTrack(), MythUIVideo::Reset(), MythUIGuideGrid::SetArrow(), MythUIButtonListItem::SetImage(), SetIsInCache(), ImageProperties::SetMaskImage(), WebPage::slotIconChanged(), Player::updateFrame(), MHIContext::UpdateOSD(), ImageProperties::~ImageProperties(), MythBrowser::~MythBrowser(), MythUIButtonListItem::~MythUIButtonListItem(), MythUIGuideGrid::~MythUIGuideGrid(), MythUIVideo::~MythUIVideo(), and VideoOutput::~VideoOutput().
Reimplemented in MythQtImage.
Definition at line 43 of file mythimage.h.
Referenced by Assign(), ZMEvents::eventChanged(), MythD3D9Painter::GetImageFromCache(), MythVDPAUPainter::GetTextureFromCache(), MythOpenGLPainter::GetTextureFromCache(), ImageLoader::LoadImage(), Resize(), and MythUIWebBrowser::UpdateBuffer().
|
inline |
Definition at line 44 of file mythimage.h.
Referenced by MythD3D9Painter::GetImageFromCache(), MythVDPAUPainter::GetTextureFromCache(), and MythOpenGLPainter::GetTextureFromCache().
|
inline |
Definition at line 46 of file mythimage.h.
|
inline |
Definition at line 47 of file mythimage.h.
Referenced by MythUIImage::SetImage(), and MythUIImage::SetImages().
Definition at line 49 of file mythimage.h.
Referenced by MythYUVAPainter::DrawEllipse(), MythYUVAPainter::DrawRect(), MythYUVAPainter::DrawRoundRect(), and MythYUVAPainter::DrawText().
Definition at line 379 of file mythimage.cpp.
Referenced by VideoOutput::DisplayOSD(), and MythYUVAPainter::DrawImage().
| void MythImage::Assign | ( | const QImage & | img | ) |
Definition at line 95 of file mythimage.cpp.
Referenced by SubtitleScreen::AddScaledImage(), Assign(), MythBrowser::Create(), BDOverlayScreen::DisplayBDOverlay(), VideoOutput::DisplayOSD(), SubtitleScreen::DisplayScaledAVSubtitles(), MythYUVAPainter::DrawImage(), MythPainter::DrawRectPriv(), MythPainter::DrawTextPriv(), ZMEvents::eventChanged(), ThumbFinder::getFrameImage(), MythPainter::GetImageFromTextLayout(), Gradient(), MythUIWebBrowser::Init(), Load(), MythUIGuideGrid::LoadImage(), TeletextScreen::OptimiseDisplayedArea(), Reflect(), SubtitleScreen::RenderAssTrack(), Resize(), MythUIGuideGrid::SetArrow(), WebPage::slotIconChanged(), MythUIVideo::UpdateFrame(), Player::updateFrame(), MHIContext::UpdateOSD(), and ThumbFinder::updatePositionBar().
| void MythImage::Assign | ( | const QPixmap & | pix | ) |
Definition at line 110 of file mythimage.cpp.
| bool MythImage::Load | ( | MythImageReader * | reader | ) |
Definition at line 239 of file mythimage.cpp.
Referenced by MythUIHelper::LoadCacheImage(), ImageLoader::LoadImage(), and MythUIImage::ParseElement().
Definition at line 260 of file mythimage.cpp.
Definition at line 115 of file mythimage.cpp.
Referenced by ImageLoader::LoadImage(), MythUIImage::SetImage(), and MythUIImage::SetImages().
Definition at line 136 of file mythimage.cpp.
Referenced by ImageLoader::LoadImage(), MythUIImage::SetImage(), and MythUIImage::SetImages().
| void MythImage::ToGreyscale | ( | ) |
Definition at line 223 of file mythimage.cpp.
Referenced by ImageLoader::LoadImage(), MythUIImage::SetImage(), and MythUIImage::SetImages().
|
static |
Create a gradient image.
| size | The size of the image. |
| begin | The beginning colour. |
| end | The ending colour. |
Definition at line 356 of file mythimage.cpp.
Definition at line 75 of file mythimage.h.
Definition at line 76 of file mythimage.h.
|
inline |
Definition at line 78 of file mythimage.h.
Referenced by MythPainter::GetFormatImage(), MythPainter::GetImageFromRect(), MythPainter::GetImageFromTextLayout(), and Load().
|
inline |
Definition at line 79 of file mythimage.h.
Referenced by MythUIImage::SetImage().
Definition at line 81 of file mythimage.h.
Referenced by ImageLoader::LoadImage().
Definition at line 88 of file mythimage.cpp.
Referenced by Assign(), MythUIHelper::CacheImage(), and MythUIHelper::LoadCacheImage().
Definition at line 85 of file mythimage.h.
|
staticprotected |
Definition at line 313 of file mythimage.cpp.
Referenced by Gradient(), Reflect(), and Resize().
|
protected |
Definition at line 97 of file mythimage.h.
Referenced by MythImage().
|
protected |
Definition at line 98 of file mythimage.h.
Referenced by MythImage(), and ~MythImage().
|
protected |
Definition at line 100 of file mythimage.h.
Referenced by Gradient(), MythImage(), and Resize().
|
protected |
Definition at line 101 of file mythimage.h.
Referenced by Gradient(), MythImage(), and Resize().
|
protected |
Definition at line 102 of file mythimage.h.
Referenced by Gradient(), MythImage(), and Resize().
|
protected |
Definition at line 103 of file mythimage.h.
Referenced by Gradient(), MythImage(), and Resize().
|
protected |
Definition at line 104 of file mythimage.h.
Referenced by Gradient(), MythImage(), and Resize().
|
protected |
Definition at line 106 of file mythimage.h.
Referenced by MythImage(), and Reflect().
|
protected |
Definition at line 107 of file mythimage.h.
Referenced by ConvertToYUV(), and MythImage().
|
protected |
Definition at line 109 of file mythimage.h.
Referenced by MythImage().
|
protected |
Definition at line 111 of file mythimage.h.
Referenced by MythImage().
|
protected |
Definition at line 113 of file mythimage.h.
Referenced by Assign(), DecrRef(), IncrRef(), MythImage(), and SetIsInCache().
|
staticprotected |
Definition at line 115 of file mythimage.h.
Referenced by DecrRef(), IncrRef(), and MythImage().
1.8.1.2