Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestContentGeometrySampler.cpp File Reference
#include "FileItem.h"
#include "cores/VideoPlayer/DVDFileInfo.h"
#include "cores/VideoPlayer/VideoFileGeometry.h"
#include "test/TestUtils.h"
#include <cstdlib>
#include <string>
#include <gtest/gtest.h>

Functions

 TEST (TestContentGeometrySampler, FindsTheBarsInALetterboxedFile)
 
 TEST (TestContentGeometrySampler, FindsTheBarsInAFileTheDecoderConverts)
 The frame is read in the format the decoder converted it to, not the one it decoded.
 
 TEST (TestContentGeometrySampler, MeasuresOneViewOfAContainerDeclaredStereoFile)
 A stereo mode only the container declares still confines the measurement to one view.
 
 TEST (TestContentGeometrySampler, RetainsThePerSampleReadings)
 
 TEST (TestContentGeometrySampler, IsRepeatable)
 
 TEST (TestContentGeometrySampler, HonoursTheRequestedPointCount)
 
 TEST (TestContentGeometrySampler, RefusesItemsThatCannotBeMeasured)
 The gate: an internet stream is not something we may open to measure.
 
 TEST (TestContentGeometrySampler, ABlurayTitleIsMeasurable)
 
 TEST (TestContentGeometrySampler, DISABLED_MeasuresABlurayTitle)
 
 TEST (TestContentGeometrySampler, MissingFileYieldsNoReading)
 

Function Documentation

◆ TEST() [1/10]

TEST ( TestContentGeometrySampler ,
ABlurayTitleIsMeasurable  )

A Blu-ray title opens without a player, so it is measured like any other file - only the thumbnail and stream detail extraction policy turns discs away.

◆ TEST() [2/10]

TEST ( TestContentGeometrySampler ,
DISABLED_MeasuresABlurayTitle  )

Needs a real Blu-ray, which CI does not have. To run it, set KODI_TEST_BLURAY to a title's bluray:// playlist path and pass –gtest_also_run_disabled_tests.

◆ TEST() [3/10]

TEST ( TestContentGeometrySampler ,
FindsTheBarsInAFileTheDecoderConverts  )

The frame is read in the format the decoder converted it to, not the one it decoded.

◆ TEST() [4/10]

TEST ( TestContentGeometrySampler ,
FindsTheBarsInALetterboxedFile  )

◆ TEST() [5/10]

TEST ( TestContentGeometrySampler ,
HonoursTheRequestedPointCount  )

◆ TEST() [6/10]

TEST ( TestContentGeometrySampler ,
IsRepeatable  )

Sampling is a measurement, so it has to give the same answer twice. If it ever does not, something in the decode path is order dependent and cached geometry cannot survive a rescan.

◆ TEST() [7/10]

TEST ( TestContentGeometrySampler ,
MeasuresOneViewOfAContainerDeclaredStereoFile  )

A stereo mode only the container declares still confines the measurement to one view.

◆ TEST() [8/10]

TEST ( TestContentGeometrySampler ,
MissingFileYieldsNoReading  )

Never narrower under uncertainty: a file that cannot be opened reports nothing at all rather than a narrow rectangle.

◆ TEST() [9/10]

TEST ( TestContentGeometrySampler ,
RefusesItemsThatCannotBeMeasured  )

The gate: an internet stream is not something we may open to measure.

◆ TEST() [10/10]

TEST ( TestContentGeometrySampler ,
RetainsThePerSampleReadings  )

Per-sample readings are retained, because a wrong cached answer can only be explained afterwards if the readings behind it survived.