|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
#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) | |
| 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 | ( | 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 | ( | TestContentGeometrySampler | , |
| FindsTheBarsInAFileTheDecoderConverts | ) |
The frame is read in the format the decoder converted it to, not the one it decoded.
| TEST | ( | TestContentGeometrySampler | , |
| FindsTheBarsInALetterboxedFile | ) |
| TEST | ( | TestContentGeometrySampler | , |
| HonoursTheRequestedPointCount | ) |
| 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 | ( | TestContentGeometrySampler | , |
| MeasuresOneViewOfAContainerDeclaredStereoFile | ) |
A stereo mode only the container declares still confines the measurement to one view.
| TEST | ( | TestContentGeometrySampler | , |
| MissingFileYieldsNoReading | ) |
Never narrower under uncertainty: a file that cannot be opened reports nothing at all rather than a narrow rectangle.
| TEST | ( | TestContentGeometrySampler | , |
| RefusesItemsThatCannotBeMeasured | ) |
The gate: an internet stream is not something we may open to measure.
| TEST | ( | TestContentGeometrySampler | , |
| RetainsThePerSampleReadings | ) |
Per-sample readings are retained, because a wrong cached answer can only be explained afterwards if the readings behind it survived.