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

Classes

class  CImageCacheCleaner
 Clean old unused images from the image cache. More...
 
class  CImageFileURL
 A mostly-typed representation of a URL to any image, whether a simple path to an image file, embedded in another file, or generated in some way. More...
 
struct  CleanerResult
 
class  CSpecialImageLoaderFactory
 
class  ISpecialImageFileLoader
 An interface to load special image files into a texture for display. More...
 

Functions

std::string URLFromFile (const std::string &filePath, std::string specialType="")
 Build an ImageFileURL string from a file path.
 
std::string ToCacheKey (const std::string &imageFileURL)
 Build a cache key for an ImageFileURL string.
 

Function Documentation

◆ ToCacheKey()

std::string IMAGE_FILES::ToCacheKey ( const std::string & imageFileURL)

Build a cache key for an ImageFileURL string.

◆ URLFromFile()

std::string IMAGE_FILES::URLFromFile ( const std::string & filePath,
std::string specialType = "" )

Build an ImageFileURL string from a file path.

Provide a 'specialType' parameter to specify a special image loader.

Parameters
specialTypeset a special image type - an implementation of ISpecialImageFileLoader