Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestApplicationContentGeometry.cpp File Reference
#include "application/ApplicationContentGeometry.h"
#include "video/geometry/test/GeometryTestHelpers.h"
#include <optional>
#include <gtest/gtest.h>

Functions

 TEST (TestApplicationContentGeometry, AnArmedInstructionTakesEffectWhenTheFileOpens)
 
 TEST (TestApplicationContentGeometry, AnArmedInstructionIsConsumedByTheFileItWasArmedFor)
 
 TEST (TestApplicationContentGeometry, ARequestThatNeverOpensDisarmsWhatItStated)
 
 TEST (TestApplicationContentGeometry, DisarmingLeavesThePlaybackInProgressAlone)
 
 TEST (TestApplicationContentGeometry, StoppingRevertsEveryOverride)
 
 TEST (TestApplicationContentGeometry, WhereThePictureWasDrawnIsRememberedForWhoeverAsks)
 
 TEST (TestApplicationContentGeometry, TheDrawnPictureIsPublishedInWholePixels)
 
 TEST (TestApplicationContentGeometry, StoppingForgetsWhereThePictureWas)
 
 TEST (TestApplicationContentGeometry, StoppingAlsoDiscardsAnInstructionThatNeverOpened)
 
 TEST (TestApplicationContentGeometry, AMixedRatioTitleMasksToItsWidestShapeNotItsEnvelope)
 
 TEST (TestApplicationContentGeometry, ThereIsNoMaskOpeningWithoutAMeasurement)
 
 TEST (TestApplicationContentGeometry, AFailedMeasurementOpensNothing)
 
 TEST (TestApplicationContentGeometry, StoppingClosesTheMaskOpening)
 
 TEST (TestApplicationContentGeometry, TheRenderInputsAgreeWithTheAccessorsTheyReplace)
 

Function Documentation

◆ TEST() [1/14]

TEST ( TestApplicationContentGeometry ,
AFailedMeasurementOpensNothing  )

◆ TEST() [2/14]

TEST ( TestApplicationContentGeometry ,
AMixedRatioTitleMasksToItsWidestShapeNotItsEnvelope  )

A title that mixes ratios - a scope body with taller sequences in it, as an IMAX release has - measures an envelope of the whole coded frame, because the union of a wide shape and a tall one is the frame that contains both.

Masking to that envelope pins every scope section inside a 16:9 opening, where it is drawn shorter than the 16:9 sections around it: the picture changes height at every boundary and never reaches the sides of a scope screen. The opening belongs at the widest shape, which leaves every section the same height and varies only their width - what a masked room does.

◆ TEST() [3/14]

TEST ( TestApplicationContentGeometry ,
AnArmedInstructionIsConsumedByTheFileItWasArmedFor  )

◆ TEST() [4/14]

TEST ( TestApplicationContentGeometry ,
AnArmedInstructionTakesEffectWhenTheFileOpens  )

◆ TEST() [5/14]

TEST ( TestApplicationContentGeometry ,
ARequestThatNeverOpensDisarmsWhatItStated  )

◆ TEST() [6/14]

TEST ( TestApplicationContentGeometry ,
DisarmingLeavesThePlaybackInProgressAlone  )

◆ TEST() [7/14]

TEST ( TestApplicationContentGeometry ,
StoppingAlsoDiscardsAnInstructionThatNeverOpened  )

◆ TEST() [8/14]

TEST ( TestApplicationContentGeometry ,
StoppingClosesTheMaskOpening  )

◆ TEST() [9/14]

TEST ( TestApplicationContentGeometry ,
StoppingForgetsWhereThePictureWas  )

◆ TEST() [10/14]

TEST ( TestApplicationContentGeometry ,
StoppingRevertsEveryOverride  )

◆ TEST() [11/14]

TEST ( TestApplicationContentGeometry ,
TheDrawnPictureIsPublishedInWholePixels  )

◆ TEST() [12/14]

TEST ( TestApplicationContentGeometry ,
ThereIsNoMaskOpeningWithoutAMeasurement  )

◆ TEST() [13/14]

TEST ( TestApplicationContentGeometry ,
TheRenderInputsAgreeWithTheAccessorsTheyReplace  )

The render path reads these together under one lock, so they must give the same answers as the individual accessors.

◆ TEST() [14/14]

TEST ( TestApplicationContentGeometry ,
WhereThePictureWasDrawnIsRememberedForWhoeverAsks  )