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

#include <TextureDatabase.h>

Static Public Member Functions

static std::string GetWrappedImageURL (const std::string &image, const std::string &type="", const std::string &options="")
 retrieve a wrapped URL for a image file
 
static std::string GetWrappedThumbURL (const std::string &image)
 
static std::string UnwrapImageURL (const std::string &image)
 Unwrap an image://<url_encoded_path> style URL Such urls are used for art over the webserver or other users of the VFS.
 

Member Function Documentation

◆ GetWrappedImageURL()

std::string CTextureUtils::GetWrappedImageURL ( const std::string & image,
const std::string & type = "",
const std::string & options = "" )
static

retrieve a wrapped URL for a image file

Parameters
imagename of the file
typesignifies a special type of image (eg embedded video thumb, picture folder thumb)
optionswhich options we need (eg size=thumb)
Returns
full wrapped URL of the image file

◆ GetWrappedThumbURL()

std::string CTextureUtils::GetWrappedThumbURL ( const std::string & image)
static

◆ UnwrapImageURL()

std::string CTextureUtils::UnwrapImageURL ( const std::string & image)
static

Unwrap an image://<url_encoded_path> style URL Such urls are used for art over the webserver or other users of the VFS.

Parameters
imageurl of the image
Returns
the unwrapped URL, or the original URL if unwrapping is inappropriate.

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