Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestGeometryPublication.cpp File Reference

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)
 

Function Documentation

◆ TEST() [1/13]

TEST ( TestGeometryPublication ,
AChangeToAnyPublishedFieldIsADifference  )

◆ TEST() [2/13]

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() [3/13]

TEST ( TestGeometryPublication ,
AnOverrideIsWithdrawnByZeroOrNullWithoutEndingPlayback  )

◆ TEST() [4/13]

TEST ( TestGeometryPublication ,
ANullFieldIsNotAWithdrawal  )

◆ TEST() [5/13]

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() [6/13]

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() [7/13]

TEST ( TestGeometryPublication ,
NothingStatedChangesNothing  )

◆ TEST() [8/13]

TEST ( TestGeometryPublication ,
OsdPlacementNamesTheTwoThingsItCanBeLaidOutAgainst  )

◆ TEST() [9/13]

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() [10/13]

TEST ( TestGeometryPublication ,
StatingOneOverrideLeavesTheOthersAlone  )

◆ TEST() [11/13]

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() [12/13]

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() [13/13]

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.