KWin
|
#include <drm_output.h>
Public Member Functions | |
DrmOutput (const std::shared_ptr< DrmConnector > &connector) | |
~DrmOutput () override | |
DrmConnector * | connector () const |
DrmPipeline * | pipeline () const |
bool | present (const std::shared_ptr< OutputFrame > &frame) override |
DrmOutputLayer * | primaryLayer () const override |
DrmOutputLayer * | cursorLayer () const override |
bool | queueChanges (const std::shared_ptr< OutputChangeSet > &properties) |
void | applyQueuedChanges (const std::shared_ptr< OutputChangeSet > &properties) |
void | revertQueuedChanges () |
void | updateModes () |
void | updateDpmsMode (DpmsMode dpmsMode) |
bool | updateCursorLayer () override |
DrmLease * | lease () const |
bool | addLeaseObjects (QList< uint32_t > &objectList) |
void | leased (DrmLease *lease) |
void | leaseEnded () |
bool | setChannelFactors (const QVector3D &rgb) override |
QVector3D | channelFactors () const |
bool | needsColormanagement () const |
![]() | |
DrmAbstractOutput (DrmGpu *gpu) | |
RenderLoop * | renderLoop () const override |
void | frameFailed () const |
void | pageFlipped (std::chrono::nanoseconds timestamp, PresentationMode mode) |
DrmGpu * | gpu () const |
void | updateEnabled (bool enabled) |
![]() | |
Q_ENUM (AutoRotationPolicy) | |
Output (QObject *parent=nullptr) | |
~Output () override | |
void | ref () |
void | unref () |
QRect | mapFromGlobal (const QRect &rect) const |
QRectF | mapFromGlobal (const QRectF &rect) const |
QRectF | mapToGlobal (const QRectF &rect) const |
Q_INVOKABLE QPointF | mapToGlobal (const QPointF &pos) const |
Q_INVOKABLE QPointF | mapFromGlobal (const QPointF &pos) const |
QString | name () const |
QUuid | uuid () const |
bool | isEnabled () const |
QRect | geometry () const |
QRectF | geometryF () const |
QRect | rect () const |
QRectF | rectF () const |
uint32_t | refreshRate () const |
bool | isInternal () const |
qreal | scale () const |
QSize | physicalSize () const |
QSize | pixelSize () const |
QSize | modeSize () const |
QString | eisaId () const |
QString | manufacturer () const |
QString | model () const |
QString | serialNumber () const |
void | inhibitDirectScanout () |
void | uninhibitDirectScanout () |
bool | directScanoutInhibited () const |
OutputTransform | transform () const |
OutputTransform | manualTransform () const |
QSize | orientateSize (const QSize &size) const |
void | applyChanges (const OutputConfiguration &config) |
SubPixel | subPixel () const |
QString | description () const |
Capabilities | capabilities () const |
const Edid & | edid () const |
QList< std::shared_ptr< OutputMode > > | modes () const |
std::shared_ptr< OutputMode > | currentMode () const |
DpmsMode | dpmsMode () const |
uint32_t | overscan () const |
VrrPolicy | vrrPolicy () const |
RgbRange | rgbRange () const |
bool | isPlaceholder () const |
bool | isNonDesktop () const |
OutputTransform | panelOrientation () const |
bool | wideColorGamut () const |
bool | highDynamicRange () const |
uint32_t | sdrBrightness () const |
AutoRotationPolicy | autoRotationPolicy () const |
std::shared_ptr< IccProfile > | iccProfile () const |
QString | iccProfilePath () const |
QByteArray | mstPath () const |
virtual bool | setGammaRamp (const std::shared_ptr< ColorTransformation > &transformation) |
std::optional< double > | maxPeakBrightness () const |
std::optional< double > | maxAverageBrightness () const |
double | minBrightness () const |
std::optional< double > | maxPeakBrightnessOverride () const |
std::optional< double > | maxAverageBrightnessOverride () const |
std::optional< double > | minBrightnessOverride () const |
double | sdrGamutWideness () const |
const ColorDescription & | colorDescription () const |
Additional Inherited Members | |
![]() | |
enum class | DpmsMode { On , Standby , Suspend , Off } |
enum class | Capability : uint { Dpms = 1 , Overscan = 1 << 1 , Vrr = 1 << 2 , RgbRange = 1 << 3 , HighDynamicRange = 1 << 4 , WideColorGamut = 1 << 5 , AutoRotation = 1 << 6 , IccProfile = 1 << 7 , Tearing = 1 << 8 } |
enum class | SubPixel { Unknown , None , Horizontal_RGB , Horizontal_BGR , Vertical_RGB , Vertical_BGR } |
enum class | RgbRange { Automatic = 0 , Full = 1 , Limited = 2 } |
enum class | AutoRotationPolicy { Never = 0 , InTabletMode , Always } |
![]() | |
void | geometryChanged () |
void | enabledChanged () |
void | scaleChanged () |
void | aboutToTurnOff (std::chrono::milliseconds time) |
void | wakeUp () |
void | aboutToChange (OutputChangeSet *changeSet) |
void | changed () |
void | currentModeChanged () |
void | modesChanged () |
void | outputChange (const QRegion &damagedRegion) |
void | transformChanged () |
void | dpmsModeChanged () |
void | capabilitiesChanged () |
void | overscanChanged () |
void | vrrPolicyChanged () |
void | rgbRangeChanged () |
void | wideColorGamutChanged () |
void | sdrBrightnessChanged () |
void | highDynamicRangeChanged () |
void | autoRotationPolicyChanged () |
void | iccProfileChanged () |
void | iccProfilePathChanged () |
void | brightnessMetadataChanged () |
void | sdrGamutWidenessChanged () |
void | colorDescriptionChanged () |
![]() | |
static std::chrono::milliseconds | dimAnimationTime () |
![]() | |
void | setInformation (const Information &information) |
void | setState (const State &state) |
![]() | |
std::unique_ptr< RenderLoop > | m_renderLoop |
std::shared_ptr< OutputFrame > | m_frame |
DrmGpu *const | m_gpu |
![]() | |
State | m_state |
Information | m_information |
QUuid | m_uuid |
int | m_directScanoutCount = 0 |
int | m_refCount = 1 |
![]() | |
QRect | geometry |
qreal | devicePixelRatio |
QString | name |
QString | manufacturer |
QString | model |
QString | serialNumber |
Definition at line 34 of file drm_output.h.
KWin::DrmOutput::DrmOutput | ( | const std::shared_ptr< DrmConnector > & | connector | ) |
Definition at line 40 of file drm_output.cpp.
|
override |
Definition at line 113 of file drm_output.cpp.
bool KWin::DrmOutput::addLeaseObjects | ( | QList< uint32_t > & | objectList | ) |
Definition at line 118 of file drm_output.cpp.
void KWin::DrmOutput::applyQueuedChanges | ( | const std::shared_ptr< OutputChangeSet > & | properties | ) |
Definition at line 364 of file drm_output.cpp.
QVector3D KWin::DrmOutput::channelFactors | ( | ) | const |
Definition at line 476 of file drm_output.cpp.
DrmConnector * KWin::DrmOutput::connector | ( | ) | const |
Definition at line 308 of file drm_output.cpp.
|
overridevirtual |
Implements KWin::DrmAbstractOutput.
Definition at line 420 of file drm_output.cpp.
DrmLease * KWin::DrmOutput::lease | ( | ) | const |
Definition at line 144 of file drm_output.cpp.
void KWin::DrmOutput::leased | ( | DrmLease * | lease | ) |
Definition at line 133 of file drm_output.cpp.
void KWin::DrmOutput::leaseEnded | ( | ) |
Definition at line 138 of file drm_output.cpp.
bool KWin::DrmOutput::needsColormanagement | ( | ) | const |
Definition at line 481 of file drm_output.cpp.
DrmPipeline * KWin::DrmOutput::pipeline | ( | ) | const |
Definition at line 313 of file drm_output.cpp.
|
overridevirtual |
Implements KWin::DrmAbstractOutput.
Definition at line 275 of file drm_output.cpp.
|
overridevirtual |
Implements KWin::DrmAbstractOutput.
Definition at line 415 of file drm_output.cpp.
bool KWin::DrmOutput::queueChanges | ( | const std::shared_ptr< OutputChangeSet > & | properties | ) |
Definition at line 318 of file drm_output.cpp.
void KWin::DrmOutput::revertQueuedChanges | ( | ) |
Definition at line 410 of file drm_output.cpp.
|
overridevirtual |
Reimplemented from KWin::Output.
Definition at line 425 of file drm_output.cpp.
|
overridevirtual |
Reimplemented from KWin::Output.
Definition at line 149 of file drm_output.cpp.
void KWin::DrmOutput::updateDpmsMode | ( | DpmsMode | dpmsMode | ) |
Definition at line 268 of file drm_output.cpp.
void KWin::DrmOutput::updateModes | ( | ) |
Definition at line 240 of file drm_output.cpp.