Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
EffectiveGeometry.h File Reference
#include "utils/Geometry.h"
#include "video/geometry/ContentGeometryCombiner.h"
#include "video/geometry/ContentGeometryRecord.h"
#include "video/geometry/GeometryTransforms.h"
#include <optional>
#include <string>
#include <vector>

Classes

struct  KODI::VIDEO::GEOMETRY::GeometrySection
 One of the geometries a title was measured in. More...
 
struct  KODI::VIDEO::GEOMETRY::EffectiveGeometry
 The content rectangle in force, and everything needed to interpret it. More...
 
struct  KODI::VIDEO::GEOMETRY::ContentAspect
 One of the distinct ratios a title contains, as it is published. More...
 
struct  KODI::VIDEO::GEOMETRY::ContentAspectSet
 The ratios a title contains, dominant first and each once. The content's own, so a variable title's envelope is not among them. More...
 
struct  KODI::VIDEO::GEOMETRY::DrawnGeometry
 Where Kodi put the picture, in screen pixels, observed from what the renderer drew. More...
 
struct  KODI::VIDEO::GEOMETRY::GeometryInputs
 What ResolveEffectiveGeometry() answers one file from. More...
 
struct  KODI::VIDEO::GEOMETRY::GeometryOverrides
 What an automation has told Kodi to render this playback into, each field falling back to its setting when unset. More...
 

Namespaces

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

Enumerations

enum class  KODI::VIDEO::GEOMETRY::GeometrySource { KODI::VIDEO::GEOMETRY::Container , KODI::VIDEO::GEOMETRY::Cached , KODI::VIDEO::GEOMETRY::Live , KODI::VIDEO::GEOMETRY::Declared }
 Where an effective geometry came from, in ascending precedence. More...
 
enum class  KODI::VIDEO::GEOMETRY::VariableGeometryPolicy { KODI::VIDEO::GEOMETRY::Envelope , KODI::VIDEO::GEOMETRY::Dominant }
 How a title whose geometry changes partway through resolves to one rectangle. More...
 
enum class  KODI::VIDEO::GEOMETRY::OsdPlacement : int { KODI::VIDEO::GEOMETRY::Raster = 0 , KODI::VIDEO::GEOMETRY::Picture = 1 }
 Which rectangle the interface is laid out against. More...
 

Functions

const char * KODI::VIDEO::GEOMETRY::GeometrySourceName (GeometrySource source)
 
ContentAspectSet KODI::VIDEO::GEOMETRY::ContentAspectsOf (const EffectiveGeometry &geometry)
 The distinct ratios geometry establishes, dominant first.
 
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.
 
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.
 
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.