Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
GeometryTestHelpers.h File Reference
#include "utils/Geometry.h"
#include "video/geometry/EffectiveGeometry.h"
#include <utility>
#include <vector>
#include <gtest/gtest.h>

Namespaces

namespace  KODI
 
namespace  KODI::VIDEO
 
namespace  KODI::VIDEO::GEOMETRY
 
namespace  KODI::VIDEO::GEOMETRY::TEST
 

Functions

StreamGeometry KODI::VIDEO::GEOMETRY::TEST::Uhd (int orientation=0)
 A 16:9 UHD frame with square pixels.
 
StreamGeometry KODI::VIDEO::GEOMETRY::TEST::AnamorphicPal ()
 A PAL DVD frame carrying a 16:9 picture in 720x576 non-square pixels.
 
ContentGeometryLookup KODI::VIDEO::GEOMETRY::TEST::Cached (std::vector< float > aspects, ContentGeometryState state=ContentGeometryState::VALID)
 A stored measurement holding aspects, dominant first.
 
ContentGeometryRecord KODI::VIDEO::GEOMETRY::TEST::ScopeRecord (std::vector< float > aspects={2.40f})
 A measured 2.40 title, unless aspects says otherwise.
 
GeometryInputs KODI::VIDEO::GEOMETRY::TEST::ScopeCachedUhd ()
 A 2.40 measurement on a UHD frame, which most of the resolver tests start from.
 
GeometryInputs KODI::VIDEO::GEOMETRY::TEST::RefusedCachedUhd ()
 A 3.20 measurement on a UHD frame - further from every entry than the tolerance, which is what the resolver refuses.
 
GeometryInputs KODI::VIDEO::GEOMETRY::TEST::ScopeCachedPal (std::vector< float > aspects={2.35f})
 A 2.35 measurement on the anamorphic PAL frame, whose 720x576 coded pixels are not square.
 
void KODI::VIDEO::GEOMETRY::TEST::ExpectRect (const CRect &actual, float x1, float y1, float x2, float y2)
 
void KODI::VIDEO::GEOMETRY::TEST::ExpectRect (const CRectInt &actual, int x1, int y1, int x2, int y2)
 

Variables

const CRect KODI::VIDEO::GEOMETRY::TEST::ScopeRaster {0.0f, 280.0f, 3840.0f, 1880.0f}
 A 2.40 operating area on a UHD display: 3840x1600, centred in 2160.