From b0c0a40d5c8abe34e4d64023a55bff4900996b24 Mon Sep 17 00:00:00 2001 From: Mark Kendall Date: Mon, 18 Jan 2021 08:56:04 +0000 Subject: [PATCH] MythDRMPlane: Add Description method --- mythtv/libs/libmythui/platforms/drm/mythdrmplane.cpp | 7 +++++++ mythtv/libs/libmythui/platforms/drm/mythdrmplane.h | 1 + 2 files changed, 8 insertions(+) diff --git a/mythtv/libs/libmythui/platforms/drm/mythdrmplane.cpp b/mythtv/libs/libmythui/platforms/drm/mythdrmplane.cpp index 47ad4a02eb4..4c4dac62cca 100644 --- a/mythtv/libs/libmythui/platforms/drm/mythdrmplane.cpp +++ b/mythtv/libs/libmythui/platforms/drm/mythdrmplane.cpp @@ -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; diff --git a/mythtv/libs/libmythui/platforms/drm/mythdrmplane.h b/mythtv/libs/libmythui/platforms/drm/mythdrmplane.h index 1287e18739d..f00a2f99fa7 100644 --- a/mythtv/libs/libmythui/platforms/drm/mythdrmplane.h +++ b/mythtv/libs/libmythui/platforms/drm/mythdrmplane.h @@ -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 };