|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
#include <cstdint>#include <optional>#include <string>#include <vector>Classes | |
| struct | KODI::VIDEO::GEOMETRY::FileIdentity |
| Which file a stored measurement was taken from. More... | |
| struct | KODI::VIDEO::GEOMETRY::ContentGeometryRecord |
| One file's measured content geometry, as stored. More... | |
| struct | KODI::VIDEO::GEOMETRY::ContentGeometryLookup |
Namespaces | |
| namespace | KODI |
| namespace | KODI::VIDEO |
| namespace | KODI::VIDEO::GEOMETRY |
Enumerations | |
| enum class | KODI::VIDEO::GEOMETRY::ContentGeometryState { KODI::VIDEO::GEOMETRY::MISSING , KODI::VIDEO::GEOMETRY::STALE , KODI::VIDEO::GEOMETRY::VALID } |
| What a lookup found. More... | |
Functions | |
| FileIdentity | KODI::VIDEO::GEOMETRY::GetFileIdentity (const std::string &path) |
| float | KODI::VIDEO::GEOMETRY::StoredAspect (float aspect) |
aspect rounded to the two decimals a ratio is stored and written at. | |
| std::string | KODI::VIDEO::GEOMETRY::EncodeContentAspects (const std::vector< float > &aspects) |
| The ratios as "2.35;1.78". | |
| std::vector< float > | KODI::VIDEO::GEOMETRY::DecodeContentAspects (const std::string &packed) |
| Read EncodeContentAspects() back, skipping anything that is not a ratio. | |
| void | KODI::VIDEO::GEOMETRY::Archive (CArchive &ar, ContentGeometryRecord &record) |
Read or write the record on ar. | |
| void | KODI::VIDEO::GEOMETRY::SaveContentGeometryXML (TiXmlNode &movie, const ContentGeometryRecord &record) |
Write the ratios under movie as a <contentgeometry> element, nothing when the record has no reading. | |
| std::optional< ContentGeometryRecord > | KODI::VIDEO::GEOMETRY::LoadContentGeometryXML (const TiXmlElement &movie) |
Read SaveContentGeometryXML() back. Nothing when movie names no ratio. | |
| ContentGeometryState | KODI::VIDEO::GEOMETRY::StateOf (const ContentGeometryRecord &record) |
| STALE or VALID for a record in hand - MISSING is a lookup's answer, not a record's. | |
| float | KODI::VIDEO::GEOMETRY::WidestAspect (const ContentGeometryRecord &record) |
| The widest ratio the record holds, which the masking opens to. Zero with no reading. | |
| bool | KODI::VIDEO::GEOMETRY::NeedsContentGeometry (const std::optional< ContentGeometryRecord > &stored, const FileIdentity &identity) |
| Whether the file still needs measuring: nothing is stored, or what is stored is superseded or describes a different file. A record that found nothing counts as done until the file changes. | |
Variables | |
| constexpr int | KODI::VIDEO::GEOMETRY::CONTENT_GEOMETRY_ALGORITHM_VERSION {1} |
| Bumped when the detector changes its results. Older records read as STALE and stay usable. | |