Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
EffectiveGeometry.cpp File Reference
#include "EffectiveGeometry.h"
#include "utils/AspectRatioVocabulary.h"
#include <algorithm>
#include <optional>
#include <utility>

Namespaces

namespace  KODI
 
namespace  KODI::VIDEO
 
namespace  KODI::VIDEO::GEOMETRY
 

Functions

RenderGeometry KODI::VIDEO::GEOMETRY::RenderGeometryOf (const EffectiveGeometry &geometry)
 The part of geometry a render path reads.
 
bool KODI::VIDEO::GEOMETRY::LiveReadingWidens (float reading, float served)
 Whether reading may be served over served. Live readings only ever widen.
 
CRect KODI::VIDEO::GEOMETRY::PictureOnScreen (const RenderGeometry &geometry, const CRect &source, const CRect &dest)
 The part of dest showing content, source being the coded region drawn into it.
 
GeometryInputs KODI::VIDEO::GEOMETRY::InputsForStream (const GeometryInputs &inputs, int videoStream)
 The inputs to resolve while videoStream is decoding. A stored measurement is withheld on any stream but the first.
 
EffectiveGeometry KODI::VIDEO::GEOMETRY::ResolveEffectiveGeometry (const GeometryInputs &inputs)
 The content rectangle in force for inputs. Precedence is declared, then live, then cached, then the container.
 
float KODI::VIDEO::GEOMETRY::ResolveDetectedAspect (const GeometryInputs &inputs)
 The ratio detection alone establishes, with any declaration set aside.
 
const char * KODI::VIDEO::GEOMETRY::GeometrySourceName (GeometrySource source)
 
ContentAspectSet KODI::VIDEO::GEOMETRY::ContentAspectsOf (const EffectiveGeometry &geometry)
 The distinct ratios geometry establishes, dominant first.
 

Variable Documentation

◆ rejected

bool rejected {false}

◆ source

GeometrySource source {GeometrySource::Container}

◆ stale

bool stale {false}

◆ upright

CRect upright

the frame itself when nothing was measured or the measurement was rejected

◆ varies

bool varies {false}