Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
GeometryPublication.h File Reference
#include "utils/Variant.h"
#include "video/geometry/EffectiveGeometry.h"
#include <optional>
#include <string_view>

Namespaces

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

Functions

double KODI::VIDEO::GEOMETRY::PublishedAspect (float aspect)
 A ratio as the API states them, rounded to four places so a caller can compare it.
 
const char * KODI::VIDEO::GEOMETRY::OsdPlacementName (OsdPlacement placement)
 The name this placement goes on the wire under, which is also what the API accepts.
 
std::optional< OsdPlacement > KODI::VIDEO::GEOMETRY::OsdPlacementFromName (std::string_view name)
 The placement name states, nothing when it is neither.
 
bool KODI::VIDEO::GEOMETRY::PublishedGeometryDiffers (const EffectiveGeometry &a, const EffectiveGeometry &b)
 Whether these two differ in anything SerializeEffectiveGeometry() publishes.
 
void KODI::VIDEO::GEOMETRY::SerializeEffectiveGeometry (const EffectiveGeometry &geometry, CVariant &value)
 Write geometry as the Video.ContentRect JSON-RPC type.
 
void KODI::VIDEO::GEOMETRY::SerializeDrawnGeometry (const DrawnGeometry &drawn, CVariant &value)
 Write drawn as the Player.ScreenGeometry JSON-RPC type.
 
void KODI::VIDEO::GEOMETRY::SerializeGeometryOverrides (const GeometryOverrides &overrides, CVariant &value)
 Write overrides as the Player.GetGeometry "stated" object: what was asked for, not what it resolved to.
 
void KODI::VIDEO::GEOMETRY::ParseGeometryOverrides (const CVariant &geometry, GeometryOverrides &overrides)
 Take a Player.Geometry object onto overrides. An unstated (null) field is left alone; zero for a ratio, or "setting" for the placement, gives one back to its setting.