Skip to content

Struct videocomposer::OutputInfo

ClassList > videocomposer > OutputInfo

More...

  • #include <OutputInfo.h>

Public Attributes

Type Name
bool connected = false
bool enabled = false
int32_t height = 0
int32_t index = -1
std::string make
std::string model
std::vector< OutputMode > modes
std::string name
int32_t physicalHeightMM = 0
int32_t physicalWidthMM = 0
double refreshRate = 0.0
int32_t scale = 1
std::string serialNumber
int32_t width = 0
int32_t x = 0
int32_t y = 0

Public Functions

Type Name
bool containsPoint (int px, int py) const
const OutputMode * findMode (int w, int h, double refresh=0.0) const
void getBounds (int & outX, int & outY, int & outWidth, int & outHeight) const
OutputMode getCurrentMode () const
double getDPI () const
std::string getDisplayName () const
const OutputMode * getPreferredMode () const

Detailed Description

OutputInfo - Full information about a display output

Contains identification, current state, and capabilities of a display. Used across all display backends (DRM, X11, Wayland).

Public Attributes Documentation

variable connected

bool videocomposer::OutputInfo::connected;

variable enabled

bool videocomposer::OutputInfo::enabled;

variable height

int32_t videocomposer::OutputInfo::height;

variable index

int32_t videocomposer::OutputInfo::index;

variable make

std::string videocomposer::OutputInfo::make;

variable model

std::string videocomposer::OutputInfo::model;

variable modes

std::vector<OutputMode> videocomposer::OutputInfo::modes;

variable name

std::string videocomposer::OutputInfo::name;

variable physicalHeightMM

int32_t videocomposer::OutputInfo::physicalHeightMM;

variable physicalWidthMM

int32_t videocomposer::OutputInfo::physicalWidthMM;

variable refreshRate

double videocomposer::OutputInfo::refreshRate;

variable scale

int32_t videocomposer::OutputInfo::scale;

variable serialNumber

std::string videocomposer::OutputInfo::serialNumber;

variable width

int32_t videocomposer::OutputInfo::width;

variable x

int32_t videocomposer::OutputInfo::x;

variable y

int32_t videocomposer::OutputInfo::y;

Public Functions Documentation

function containsPoint

inline bool videocomposer::OutputInfo::containsPoint (
    int px,
    int py
) const

Check if this output contains a point in global coordinates


function findMode

inline const OutputMode * videocomposer::OutputInfo::findMode (
    int w,
    int h,
    double refresh=0.0
) const

Find a specific mode by resolution and optional refresh rate

Parameters:

  • w Width
  • h Height
  • refresh Refresh rate (0 = don't care)

Returns:

Pointer to matching mode, or nullptr if not found


function getBounds

inline void videocomposer::OutputInfo::getBounds (
    int & outX,
    int & outY,
    int & outWidth,
    int & outHeight
) const

Get output bounds as a rect


function getCurrentMode

inline OutputMode videocomposer::OutputInfo::getCurrentMode () const

Get current mode as OutputMode


function getDPI

inline double videocomposer::OutputInfo::getDPI () const

Get DPI (dots per inch) based on physical size

Returns:

DPI value, or 96.0 if physical size unknown


function getDisplayName

inline std::string videocomposer::OutputInfo::getDisplayName () const

Get display name for UI (e.g., "Samsung U28E590 (HDMI-A-1)")


function getPreferredMode

inline const OutputMode * videocomposer::OutputInfo::getPreferredMode () const

Get the preferred/native mode

Returns:

Pointer to preferred mode, or nullptr if none found



The documentation for this class was generated from the following file src/cuems_videocomposer/cpp/display/OutputInfo.h