|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
#include "utils/AspectRatioVocabulary.h"#include "video/geometry/GeometryPublication.h"#include "video/geometry/test/GeometryTestHelpers.h"#include <gtest/gtest.h>Functions | |
| TEST (TestGeometryPublication, StatingOneOverrideLeavesTheOthersAlone) | |
| TEST (TestGeometryPublication, AnOverrideIsWithdrawnByZeroOrNullWithoutEndingPlayback) | |
| TEST (TestGeometryPublication, ANullFieldIsNotAWithdrawal) | |
| TEST (TestGeometryPublication, OsdPlacementNamesTheTwoThingsItCanBeLaidOutAgainst) | |
| TEST (TestGeometryPublication, NothingStatedChangesNothing) | |
| TEST (TestGeometryPublication, SectionsReachTheSerialisedForm) | |
| TEST (TestGeometryPublication, ARefusedMeasurementIsDistinguishableOnTheWireFromNoneAtAll) | |
| TEST (TestGeometryPublication, TheSectionsArrayIsWrittenEvenWhenNothingWasMeasured) | |
| TEST (TestGeometryPublication, AShapeWithNoFrameIsSerialisedWithoutAnyPixels) | |
| TEST (TestGeometryPublication, WhatWasDrawnIsSerialisedAsTwoRectangles) | |
| TEST (TestGeometryPublication, AMeasuredGeometryStillCarriesItsRectangle) | |
| TEST (TestGeometryPublication, ThePublishedRatioIsRoundedToTheVocabularysPrecision) | |
| TEST (TestGeometryPublication, AChangeToAnyPublishedFieldIsADifference) | |
| TEST | ( | TestGeometryPublication | , |
| AChangeToAnyPublishedFieldIsADifference | ) |
| TEST | ( | TestGeometryPublication | , |
| AMeasuredGeometryStillCarriesItsRectangle | ) |
A measured geometry keeps every pixel it always had, so the omission above cannot start applying to a stream that has a frame.
| TEST | ( | TestGeometryPublication | , |
| AnOverrideIsWithdrawnByZeroOrNullWithoutEndingPlayback | ) |
| TEST | ( | TestGeometryPublication | , |
| ANullFieldIsNotAWithdrawal | ) |
| TEST | ( | TestGeometryPublication | , |
| ARefusedMeasurementIsDistinguishableOnTheWireFromNoneAtAll | ) |
Both of these serve the frame and both report container. If the serialised form did not carry the rejection, a consumer could not tell the file that needs measuring from the one whose detector failed on it.
| TEST | ( | TestGeometryPublication | , |
| AShapeWithNoFrameIsSerialisedWithoutAnyPixels | ) |
What Kodi reports while nothing is playing. There is no picture and no resolution behind one, so a rectangle here would be invented - and zeros are a rectangle a consumer can act on, which is why the fields are absent rather than empty.
| TEST | ( | TestGeometryPublication | , |
| NothingStatedChangesNothing | ) |
| TEST | ( | TestGeometryPublication | , |
| OsdPlacementNamesTheTwoThingsItCanBeLaidOutAgainst | ) |
| TEST | ( | TestGeometryPublication | , |
| SectionsReachTheSerialisedForm | ) |
varies says one rectangle does not describe the title; the sections are what a consumer acts on it with, so the two must not be able to disagree about whether they are there.
| TEST | ( | TestGeometryPublication | , |
| StatingOneOverrideLeavesTheOthersAlone | ) |
| TEST | ( | TestGeometryPublication | , |
| ThePublishedRatioIsRoundedToTheVocabularysPrecision | ) |
A float widened to a double serialises as sixteen digits of its own representation error, which a caller cannot compare against the ratio it asked for.
| TEST | ( | TestGeometryPublication | , |
| TheSectionsArrayIsWrittenEvenWhenNothingWasMeasured | ) |
An unmeasured file has no sections, and the array is still written - an absent one would be a third state on top of the empty one.
| TEST | ( | TestGeometryPublication | , |
| WhatWasDrawnIsSerialisedAsTwoRectangles | ) |
Both rectangles, because they answer different instructions: a mask is driven to the lit picture and a lens to the area Kodi is operating in, and the two coincide only when the content is exactly the shape of the room.