Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CVideoFileGeometry Class Reference

Decodes a file at several points and describes each picture to the detector. More...

#include <VideoFileGeometry.h>

Static Public Member Functions

static bool CanMeasure (const CFileItem &fileItem)
 Whether ExtractContentGeometry() may open the item.
 
static KODI::VIDEO::GEOMETRY::SampledGeometry ExtractContentGeometry (const CFileItem &fileItem, const KODI::VIDEO::GEOMETRY::SamplingParams &sampling={}, const KODI::VIDEO::GEOMETRY::CombinerParams &combining={}, const std::function< bool()> &cancelled={})
 Sample a file at several points and work out its picture rectangle. Decodes in software with film grain synthesis off. cancelled is asked between positions, and a scan reporting itself cancelled must not be stored.
 
static bool BuildGeometryFrameRef (const VideoPicture &picture, const CDVDStreamInfo &hint, KODI::VIDEO::GEOMETRY::FrameRef &frame)
 Describe a decoded picture to the detector. Reads the layout from the pixel format descriptor, so an unfamiliar one is described correctly or refused. Fails for a picture whose buffer exposes no planes.
 
static bool BuildGeometryFrameRef (const KODI::VIDEO::GEOMETRY::ReducedFrame &reduction, const VideoPicture &picture, const CDVDStreamInfo &hint, KODI::VIDEO::GEOMETRY::FrameRef &frame)
 Point a FrameRef at a reduced copy instead of the picture itself. What such a frame detects is in the reduction's coordinates, and scaling it back is the caller's job.
 

Detailed Description

Decodes a file at several points and describes each picture to the detector.

Member Function Documentation

◆ BuildGeometryFrameRef() [1/2]

bool CVideoFileGeometry::BuildGeometryFrameRef ( const KODI::VIDEO::GEOMETRY::ReducedFrame & reduction,
const VideoPicture & picture,
const CDVDStreamInfo & hint,
KODI::VIDEO::GEOMETRY::FrameRef & frame )
static

Point a FrameRef at a reduced copy instead of the picture itself. What such a frame detects is in the reduction's coordinates, and scaling it back is the caller's job.

◆ BuildGeometryFrameRef() [2/2]

bool CVideoFileGeometry::BuildGeometryFrameRef ( const VideoPicture & picture,
const CDVDStreamInfo & hint,
KODI::VIDEO::GEOMETRY::FrameRef & frame )
static

Describe a decoded picture to the detector. Reads the layout from the pixel format descriptor, so an unfamiliar one is described correctly or refused. Fails for a picture whose buffer exposes no planes.

◆ CanMeasure()

bool CVideoFileGeometry::CanMeasure ( const CFileItem & fileItem)
static

Whether ExtractContentGeometry() may open the item.

◆ ExtractContentGeometry()

SampledGeometry CVideoFileGeometry::ExtractContentGeometry ( const CFileItem & fileItem,
const KODI::VIDEO::GEOMETRY::SamplingParams & sampling = {},
const KODI::VIDEO::GEOMETRY::CombinerParams & combining = {},
const std::function< bool()> & cancelled = {} )
static

Sample a file at several points and work out its picture rectangle. Decodes in software with film grain synthesis off. cancelled is asked between positions, and a scan reporting itself cancelled must not be stored.


The documentation for this class was generated from the following files: