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

Declaration of CDecoderFilter. More...

#include <DecoderFilterManager.h>

Public Types

enum  : uint32_t { FLAG_GENERAL_ALLOWED = 1 , FLAG_STILLS_ALLOWED = 2 , FLAG_DVD_ALLOWED = 4 }
 Flags to control decoder validity. More...
 

Public Member Functions

 CDecoderFilter (const std::string &name)
 constructs a CDecoderFilter
 
 CDecoderFilter (const std::string &name, uint32_t flags, int minHeight)
 
virtual ~CDecoderFilter ()=default
 
bool operator< (const CDecoderFilter &other) const
 used for sorting / replacing / find
 
virtual bool isValid (const CDVDStreamInfo &streamInfo) const
 test if stream is allowed by filter.
 
virtual bool Load (const tinyxml2::XMLNode *node)
 load all members from XML node
 
virtual bool Save (tinyxml2::XMLNode *node) const
 store all members in XML node
 

Detailed Description

Declaration of CDecoderFilter.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : uint32_t

Flags to control decoder validity.

Enumerator
FLAG_GENERAL_ALLOWED 

early false exit if set

FLAG_STILLS_ALLOWED 

early false exit if set and stream is marked as "has stillframes"

FLAG_DVD_ALLOWED 

early false exit if set and stream is marked as dvd

Constructor & Destructor Documentation

◆ CDecoderFilter() [1/2]

CDecoderFilter::CDecoderFilter ( const std::string & name)
inline

constructs a CDecoderFilter

Parameters
namedecodername
Returns
nothing.

◆ CDecoderFilter() [2/2]

CDecoderFilter::CDecoderFilter ( const std::string & name,
uint32_t flags,
int minHeight )

◆ ~CDecoderFilter()

virtual CDecoderFilter::~CDecoderFilter ( )
virtualdefault

Member Function Documentation

◆ isValid()

bool CDecoderFilter::isValid ( const CDVDStreamInfo & streamInfo) const
virtual

test if stream is allowed by filter.

Returns
true if valid, false otherwise

◆ Load()

bool CDecoderFilter::Load ( const tinyxml2::XMLNode * node)
virtual

load all members from XML node

Parameters
nodefilter node from where to get the values
Returns
true if operation was successful, false on error

◆ operator<()

bool CDecoderFilter::operator< ( const CDecoderFilter & other) const
inline

used for sorting / replacing / find

◆ Save()

bool CDecoderFilter::Save ( tinyxml2::XMLNode * node) const
virtual

store all members in XML node

Parameters
nodea ready to use filter setting node
Returns
true if operation was successful, false on error

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