Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
FrameSampling.cpp File Reference
#include "FrameSampling.h"
#include <algorithm>
#include <cmath>

Namespaces

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

Functions

std::pair< double, double > KODI::VIDEO::GEOMETRY::SampleWindow (double durationSeconds, const SamplingParams &params={})
 The first and last position that will be sampled, in seconds.
 
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.
 
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.