Skip to content

Commit

Permalink
MythDRMPlane: Add Description method
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Jan 18, 2021
1 parent 88c46ce commit b0c0a40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mythtv/libs/libmythui/platforms/drm/mythdrmplane.cpp
Expand Up @@ -75,6 +75,13 @@ MythDRMPlane::MythDRMPlane(int FD, uint32_t Id, uint32_t Index)
}
}

QString MythDRMPlane::Description() const
{
return QString("Plane #%1 %2 Index: %3 FB: %4 CRTC: %5 Formats: %6")
.arg(m_id).arg(MythDRMPlane::PlaneTypeToString(m_type)).arg(m_index)
.arg(m_fbId).arg(m_crtcId).arg(MythDRMPlane::FormatsToString(m_formats));
}

DRMPlanes MythDRMPlane::GetPlanes(int FD, int CRTCFilter)
{
DRMPlanes result;
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythui/platforms/drm/mythdrmplane.h
Expand Up @@ -34,6 +34,7 @@ class MUI_PUBLIC MythDRMPlane
static bool FormatIsVideo (uint32_t Format);
static bool HasOverlayFormat (FOURCCVec Formats);
static uint32_t GetAlphaFormat (FOURCCVec Formats);
QString Description() const;

uint32_t m_id { 0 };
uint32_t m_index { 0 };
Expand Down

0 comments on commit b0c0a40

Please sign in to comment.