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

Video tag loader using FFMPEG. More...

#include <VideoTagLoaderFFmpeg.h>

Inheritance diagram for CVideoTagLoaderFFmpeg:
KODI::VIDEO::IVideoInfoTagLoader

Public Member Functions

 CVideoTagLoaderFFmpeg (const CFileItem &item, const ADDON::ScraperPtr &info, bool lookInFolder)
 Constructor.
 
 ~CVideoTagLoaderFFmpeg () override
 Destructor.
 
bool HasInfo () const override
 Returns whether or not reader has info.
 
CInfoScanner::INFO_TYPE Load (CVideoInfoTag &tag, bool, std::vector< EmbeddedArt > *art=nullptr) override
 Load "tag" from nfo file.
 
ADDON::ScraperPtr GetScraperInfo () const
 
- Public Member Functions inherited from KODI::VIDEO::IVideoInfoTagLoader
 IVideoInfoTagLoader (const CFileItem &item, ADDON::ScraperPtr info, bool lookInFolder)
 Constructor.
 
virtual ~IVideoInfoTagLoader ()=default
 
const CScraperUrlScraperUrl () const
 Returns url associated with obtained URL (NFO_URL et al).
 
const ADDON::ScraperPtr GetAddonInfo () const
 Returns current scaper info.
 

Protected Member Functions

CInfoScanner::INFO_TYPE LoadMKV (CVideoInfoTag &tag, std::vector< EmbeddedArt > *art)
 Load tags from MKV file.
 
CInfoScanner::INFO_TYPE LoadMP4 (CVideoInfoTag &tag, std::vector< EmbeddedArt > *art)
 Load tags from MP4 file.
 
CInfoScanner::INFO_TYPE LoadAVI (CVideoInfoTag &tag, std::vector< EmbeddedArt > *art)
 Load tags from AVI file.
 

Protected Attributes

ADDON::ScraperPtr m_info
 Passed scraper info.
 
AVIOContext * m_ioctx = nullptr
 IO context for file.
 
AVFormatContext * m_fctx = nullptr
 Format context for file.
 
XFILE::CFilem_file = nullptr
 VFS file handle for file.
 
int m_metadata_stream = -1
 Stream holding kodi metadata (mkv)
 
bool m_override_data = false
 Data is for overriding.
 
- Protected Attributes inherited from KODI::VIDEO::IVideoInfoTagLoader
const CFileItemm_item
 Reference to item to load for.
 
ADDON::ScraperPtr m_info
 Scraper info.
 
CScraperUrl m_url
 URL for scraper.
 

Detailed Description

Video tag loader using FFMPEG.

Constructor & Destructor Documentation

◆ CVideoTagLoaderFFmpeg()

CVideoTagLoaderFFmpeg::CVideoTagLoaderFFmpeg ( const CFileItem & item,
const ADDON::ScraperPtr & info,
bool lookInFolder )

Constructor.

◆ ~CVideoTagLoaderFFmpeg()

CVideoTagLoaderFFmpeg::~CVideoTagLoaderFFmpeg ( )
override

Destructor.

Member Function Documentation

◆ GetScraperInfo()

ADDON::ScraperPtr CVideoTagLoaderFFmpeg::GetScraperInfo ( ) const
inline

◆ HasInfo()

bool CVideoTagLoaderFFmpeg::HasInfo ( ) const
overridevirtual

Returns whether or not reader has info.

Implements KODI::VIDEO::IVideoInfoTagLoader.

◆ Load()

CInfoScanner::INFO_TYPE CVideoTagLoaderFFmpeg::Load ( CVideoInfoTag & tag,
bool ,
std::vector< EmbeddedArt > * art = nullptr )
overridevirtual

Load "tag" from nfo file.

tag Tag to load info into

Implements KODI::VIDEO::IVideoInfoTagLoader.

◆ LoadAVI()

CInfoScanner::INFO_TYPE CVideoTagLoaderFFmpeg::LoadAVI ( CVideoInfoTag & tag,
std::vector< EmbeddedArt > * art )
protected

Load tags from AVI file.

◆ LoadMKV()

CInfoScanner::INFO_TYPE CVideoTagLoaderFFmpeg::LoadMKV ( CVideoInfoTag & tag,
std::vector< EmbeddedArt > * art )
protected

Load tags from MKV file.

◆ LoadMP4()

CInfoScanner::INFO_TYPE CVideoTagLoaderFFmpeg::LoadMP4 ( CVideoInfoTag & tag,
std::vector< EmbeddedArt > * art )
protected

Load tags from MP4 file.

Member Data Documentation

◆ m_fctx

AVFormatContext* CVideoTagLoaderFFmpeg::m_fctx = nullptr
protected

Format context for file.

◆ m_file

XFILE::CFile* CVideoTagLoaderFFmpeg::m_file = nullptr
protected

VFS file handle for file.

◆ m_info

ADDON::ScraperPtr CVideoTagLoaderFFmpeg::m_info
protected

Passed scraper info.

◆ m_ioctx

AVIOContext* CVideoTagLoaderFFmpeg::m_ioctx = nullptr
protected

IO context for file.

◆ m_metadata_stream

int CVideoTagLoaderFFmpeg::m_metadata_stream = -1
mutableprotected

Stream holding kodi metadata (mkv)

◆ m_override_data

bool CVideoTagLoaderFFmpeg::m_override_data = false
mutableprotected

Data is for overriding.


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