Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
FrameSampling.h File Reference
#include <cstddef>
#include <utility>
#include <vector>

Classes

struct  KODI::VIDEO::GEOMETRY::SamplingParams
 

Namespaces

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

Enumerations

enum class  KODI::VIDEO::GEOMETRY::SamplingDepth { KODI::VIDEO::GEOMETRY::Normal , KODI::VIDEO::GEOMETRY::Thorough }
 How hard to look, for a measurement asked for by name. More...
 

Functions

bool KODI::VIDEO::GEOMETRY::ShouldEscalate (std::size_t clusters, unsigned int usable, unsigned int discarded, unsigned int unexplainedShapes=0, const SamplingParams &params={})
 Whether a first sampling pass is inconclusive enough to densify. One unexplainedShapes reading is enough on its own.
 
std::vector< double > KODI::VIDEO::GEOMETRY::UnsampledOffsets (const std::vector< double > &candidates, const std::vector< double > &sampled, double minSeparation=1.0)
 Offsets from candidates not already covered by sampled.
 
std::vector< double > KODI::VIDEO::GEOMETRY::SampleOffsets (double durationSeconds, const SamplingParams &params={})
 Positions, in seconds, at which to sample a title of durationSeconds. Spread across the window. Empty when it cannot be sampled.
 
std::pair< double, double > KODI::VIDEO::GEOMETRY::SampleWindow (double durationSeconds, const SamplingParams &params={})
 The first and last position that will be sampled, in seconds.