#include <mythxdisplay.h>
Public Member Functions | |
| MythXDisplay () | |
| ~MythXDisplay () | |
| Display * | GetDisplay (void) |
| int | GetScreen (void) const |
| void | Lock (void) |
| void | Unlock (void) |
| int | GetDepth (void) const |
| Window | GetRoot (void) const |
| GC | GetGC (void) const |
| unsigned long | GetBlack (void) const |
| bool | Open (void) |
| bool | CreateGC (Window win) |
| void | SetForeground (unsigned long color) |
| void | FillRectangle (Window win, const QRect &rect) |
| void | MoveResizeWin (Window win, const QRect &rect) |
| int | GetNumberXineramaScreens (void) |
| QSize | GetDisplaySize (void) |
| QSize | GetDisplayDimensions (void) |
| float | GetRefreshRate (void) |
| void | Sync (bool flush=false) |
| void | StartLog (void) |
| bool | StopLog (void) |
Private Member Functions | |
| bool | CheckErrors (Display *disp=NULL) |
| void | CheckOrphanedErrors (void) |
Private Attributes | |
| Display * | m_disp |
| int | m_screen_num |
| Screen * | m_screen |
| int | m_depth |
| unsigned long | m_black |
| GC | m_gc |
| Window | m_root |
| QMutex | m_lock |
Definition at line 16 of file mythxdisplay.h.
| MythXDisplay::MythXDisplay | ( | ) |
Definition at line 70 of file mythxdisplay.cpp.
| MythXDisplay::~MythXDisplay | ( | ) |
Definition at line 77 of file mythxdisplay.cpp.
| Display* MythXDisplay::GetDisplay | ( | void | ) | [inline] |
Definition at line 21 of file mythxdisplay.h.
Referenced by ScreenSaverX11::Asleep(), CheckNVOpenGLSyncToVBlank(), VAAPIDisplay::Create(), VideoOutputXv::CreateBuffers(), MythRenderVDPAU::CreateDevice(), ChromaKeyOSD::CreateShmImage(), VideoOutputXv::CreateShmImages(), VideoOutputXv::DeleteBuffers(), ChromaKeyOSD::DestroyShmImage(), ScreenSaverX11::Disable(), ScreenSaverX11Private::DisableDPMS(), VideoOutputXv::DrawUnusedRects(), GetNvidiaRates(), GetScreenConfig(), DisplayResX::GetVideoModes(), VideoOutputXv::GrabSuitableXvPort(), VideoOutputXv::Init(), VideoOutputXv::InitXVideo(), VideoOutputXv::PrepareFrameMem(), ScreenSaverX11::Reset(), ScreenSaverX11::Restore(), ScreenSaverX11Private::RestoreDPMS(), ScreenSaverX11Private::RestoreScreenSaver(), save_port_attributes(), ScreenSaverX11Private::SaveScreenSaver(), ScreenSaverX11Private::ScreenSaverX11Private(), SetFromHW(), VideoOutputXv::ShowXVideo(), DisplayResX::SwitchToVideoMode(), VideoOutputXv::UngrabXvPort(), xv_get_attrib(), xv_is_attrib_supported(), xv_set_attrib(), and VideoOutputXv::~VideoOutputXv().
| int MythXDisplay::GetScreen | ( | void | ) | const [inline] |
Definition at line 22 of file mythxdisplay.h.
Referenced by CheckNVOpenGLSyncToVBlank(), VideoOutputXv::CreateBuffers(), MythRenderVDPAU::CreateDevice(), ChromaKeyOSD::CreateShmImage(), VideoOutputXv::CreateShmImages(), GetNvidiaRates(), GetScreenConfig(), DisplayResX::GetVideoModes(), and VideoOutputXv::Init().
| void MythXDisplay::Lock | ( | void | ) | [inline] |
Definition at line 23 of file mythxdisplay.h.
Referenced by VAAPIContext::CopySurfaceToTexture(), ChromaKeyOSD::DestroyShmImage(), VAAPIDisplay::DownRef(), VideoOutputXv::GrabSuitableXvPort(), MythXLocker::MythXLocker(), VideoOutputXv::PrepareFrameMem(), VideoOutputXv::ShowXVideo(), VideoOutputXv::UngrabXvPort(), and VAAPIContext::~VAAPIContext().
| void MythXDisplay::Unlock | ( | void | ) | [inline] |
Definition at line 24 of file mythxdisplay.h.
Referenced by VAAPIContext::CopySurfaceToTexture(), ChromaKeyOSD::DestroyShmImage(), VAAPIDisplay::DownRef(), VideoOutputXv::GrabSuitableXvPort(), VideoOutputXv::PrepareFrameMem(), VideoOutputXv::ShowXVideo(), VideoOutputXv::UngrabXvPort(), MythXLocker::~MythXLocker(), and VAAPIContext::~VAAPIContext().
| int MythXDisplay::GetDepth | ( | void | ) | const [inline] |
Definition at line 25 of file mythxdisplay.h.
Referenced by VideoOutputXv::CreateBuffers(), ChromaKeyOSD::CreateShmImage(), VideoOutputXv::CreateShmImages(), VideoOutputXv::InitOSD(), and MythRenderVDPAU::SetColorKey().
| Window MythXDisplay::GetRoot | ( | void | ) | const [inline] |
Definition at line 26 of file mythxdisplay.h.
Referenced by allowed_video_renderers(), VideoOutputXv::InitXVideo(), and DisplayResX::SwitchToVideoMode().
| GC MythXDisplay::GetGC | ( | void | ) | const [inline] |
Definition at line 27 of file mythxdisplay.h.
Referenced by VideoOutputXv::DrawUnusedRects(), VideoOutputXv::PrepareFrameMem(), and VideoOutputXv::ShowXVideo().
| unsigned long MythXDisplay::GetBlack | ( | void | ) | const [inline] |
Definition at line 28 of file mythxdisplay.h.
Referenced by MythRenderVDPAU::DrawDisplayRect(), VideoOutputXv::Init(), and VideoOutputXv::~VideoOutputXv().
| bool MythXDisplay::Open | ( | void | ) |
Definition at line 92 of file mythxdisplay.cpp.
Referenced by OpenMythXDisplay().
| bool MythXDisplay::CreateGC | ( | Window | win | ) |
Definition at line 115 of file mythxdisplay.cpp.
Referenced by MythRenderVDPAU::Create(), and VideoOutputXv::Init().
| void MythXDisplay::SetForeground | ( | unsigned long | color | ) |
Definition at line 122 of file mythxdisplay.cpp.
Referenced by MythRenderVDPAU::DrawDisplayRect(), VideoOutputXv::DrawUnusedRects(), and VideoOutputXv::~VideoOutputXv().
| void MythXDisplay::FillRectangle | ( | Window | win, | |
| const QRect & | rect | |||
| ) |
Definition at line 129 of file mythxdisplay.cpp.
Referenced by MythRenderVDPAU::DrawDisplayRect(), VideoOutputXv::DrawUnusedRects(), and VideoOutputXv::~VideoOutputXv().
| void MythXDisplay::MoveResizeWin | ( | Window | win, | |
| const QRect & | rect | |||
| ) |
Definition at line 138 of file mythxdisplay.cpp.
Referenced by MythRenderVDPAU::MoveResizeWin(), and VideoOutputXv::MoveResizeWindow().
| int MythXDisplay::GetNumberXineramaScreens | ( | void | ) |
Definition at line 145 of file mythxdisplay.cpp.
Referenced by MythDisplay::GetNumberXineramaScreens().
| QSize MythXDisplay::GetDisplaySize | ( | void | ) |
Definition at line 158 of file mythxdisplay.cpp.
Referenced by MythDisplay::GetDisplayInfo().
| QSize MythXDisplay::GetDisplayDimensions | ( | void | ) |
Definition at line 166 of file mythxdisplay.cpp.
Referenced by MythDisplay::GetDisplayInfo().
| float MythXDisplay::GetRefreshRate | ( | void | ) |
Definition at line 174 of file mythxdisplay.cpp.
Referenced by MythDisplay::GetDisplayInfo().
| void MythXDisplay::Sync | ( | bool | flush = false |
) |
Definition at line 208 of file mythxdisplay.cpp.
Referenced by CheckErrors(), VideoOutputXv::CreateBuffers(), ChromaKeyOSD::CreateShmImage(), VideoOutputXv::CreateShmImages(), ScreenSaverX11::Disable(), ScreenSaverX11Private::DisableDPMS(), VideoOutputXv::DrawUnusedRects(), ScreenSaverX11::Reset(), ScreenSaverX11::Restore(), ScreenSaverX11Private::RestoreDPMS(), ScreenSaverX11Private::RestoreScreenSaver(), VideoOutputXv::Show(), StartLog(), StopLog(), MythRenderVDPAU::SyncDisplay(), and VAAPIDisplay::~VAAPIDisplay().
| void MythXDisplay::StartLog | ( | void | ) |
Definition at line 213 of file mythxdisplay.cpp.
Referenced by CreateGC(), VideoOutputXv::InitXlib(), VideoOutputXv::InitXShm(), and VideoOutputXv::InitXVideo().
| bool MythXDisplay::StopLog | ( | void | ) |
Definition at line 222 of file mythxdisplay.cpp.
Referenced by CreateGC(), VideoOutputXv::InitXlib(), VideoOutputXv::InitXShm(), VideoOutputXv::InitXVideo(), and ~MythXDisplay().
| bool MythXDisplay::CheckErrors | ( | Display * | disp = NULL |
) | [private] |
Definition at line 234 of file mythxdisplay.cpp.
Referenced by CheckOrphanedErrors(), and StopLog().
| void MythXDisplay::CheckOrphanedErrors | ( | void | ) | [private] |
Definition at line 276 of file mythxdisplay.cpp.
Referenced by CheckErrors().
Display* MythXDisplay::m_disp [private] |
Definition at line 46 of file mythxdisplay.h.
Referenced by CheckErrors(), CreateGC(), FillRectangle(), GetDisplayDimensions(), GetDisplaySize(), GetNumberXineramaScreens(), GetRefreshRate(), MoveResizeWin(), Open(), SetForeground(), StartLog(), StopLog(), Sync(), and ~MythXDisplay().
int MythXDisplay::m_screen_num [private] |
Definition at line 47 of file mythxdisplay.h.
Referenced by GetDisplayDimensions(), GetDisplaySize(), GetRefreshRate(), and Open().
Screen* MythXDisplay::m_screen [private] |
Definition at line 48 of file mythxdisplay.h.
Referenced by Open().
int MythXDisplay::m_depth [private] |
Definition at line 49 of file mythxdisplay.h.
Referenced by Open().
unsigned long MythXDisplay::m_black [private] |
Definition at line 50 of file mythxdisplay.h.
Referenced by Open().
GC MythXDisplay::m_gc [private] |
Definition at line 51 of file mythxdisplay.h.
Referenced by CreateGC(), FillRectangle(), SetForeground(), and ~MythXDisplay().
Window MythXDisplay::m_root [private] |
Definition at line 52 of file mythxdisplay.h.
Referenced by Open().
QMutex MythXDisplay::m_lock [private] |
Definition at line 53 of file mythxdisplay.h.
1.6.3