Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestSampledGeometry.cpp File Reference
#include "video/geometry/SampledGeometry.h"
#include <gtest/gtest.h>

Functions

 TEST (TestSampledGeometry, ASucceededScanBecomesItsDisplayRatio)
 
 TEST (TestSampledGeometry, AnAnamorphicScanStoresTheRatioItIsSeenAt)
 The ratio is the displayed one: an anamorphic frame's coded pixels are not square.
 
 TEST (TestSampledGeometry, AVaryingTitleStoresEachRatioDominantFirst)
 
 TEST (TestSampledGeometry, TheSameRatioTwiceIsStoredOnce)
 
 TEST (TestSampledGeometry, AScanThatReadNothingStoresNoRatio)
 
 TEST (TestSampledGeometry, NothingIsNeededForAnUpToDateMeasurement)
 
 TEST (TestSampledGeometry, AFileWithNoAttemptNeedsMeasuring)
 
 TEST (TestSampledGeometry, ASupersededMeasurementNeedsMeasuringAgain)
 
 TEST (TestSampledGeometry, AMeasurementOfDifferentContentNeedsMeasuringAgain)
 
 TEST (TestSampledGeometry, AnAttemptThatFoundNothingCountsAsDoneUntilTheFileChanges)
 
 TEST (TestSampledGeometry, AnUnknownIdentityAlwaysAsksForMeasurement)
 

Function Documentation

◆ TEST() [1/11]

TEST ( TestSampledGeometry ,
AFileWithNoAttemptNeedsMeasuring  )

◆ TEST() [2/11]

TEST ( TestSampledGeometry ,
AMeasurementOfDifferentContentNeedsMeasuringAgain  )

◆ TEST() [3/11]

TEST ( TestSampledGeometry ,
AnAnamorphicScanStoresTheRatioItIsSeenAt  )

The ratio is the displayed one: an anamorphic frame's coded pixels are not square.

◆ TEST() [4/11]

TEST ( TestSampledGeometry ,
AnAttemptThatFoundNothingCountsAsDoneUntilTheFileChanges  )

The whole point of recording an attempt that found nothing. Asked again about a file that has not changed since, the answer is no - otherwise every sweep pays for an open over the network for every unreadable file in the library.

◆ TEST() [5/11]

TEST ( TestSampledGeometry ,
AnUnknownIdentityAlwaysAsksForMeasurement  )

An identity nothing could establish matches nothing, including itself, so a caller that passed one would remeasure the file on every single run.

◆ TEST() [6/11]

TEST ( TestSampledGeometry ,
AScanThatReadNothingStoresNoRatio  )

A file that could not be read, or that read nothing, still becomes a row, so that a sweep over a large library does not attempt it again every time. It carries no ratio.

◆ TEST() [7/11]

TEST ( TestSampledGeometry ,
ASucceededScanBecomesItsDisplayRatio  )

◆ TEST() [8/11]

TEST ( TestSampledGeometry ,
ASupersededMeasurementNeedsMeasuringAgain  )

◆ TEST() [9/11]

TEST ( TestSampledGeometry ,
AVaryingTitleStoresEachRatioDominantFirst  )

◆ TEST() [10/11]

TEST ( TestSampledGeometry ,
NothingIsNeededForAnUpToDateMeasurement  )

◆ TEST() [11/11]

TEST ( TestSampledGeometry ,
TheSameRatioTwiceIsStoredOnce  )

Two stretches at one ratio are one ratio, so a title is not said to vary for moving its bars by a row.