Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
PictureXmp.cpp File Reference
#include "PictureXmp.h"
#include "filesystem/File.h"
#include <charconv>

Namespaces

namespace  KODI
 
namespace  KODI::PICTURE
 
namespace  KODI::PICTURE::XMP
 

Functions

std::string KODI::PICTURE::XMP::Read (XFILE::CFile &file)
 Read the XMP packet near the start of a JPEG, from the file's current position.
 
std::string_view KODI::PICTURE::XMP::GetValue (std::string_view xmp, std::string_view name)
 Get a property's value, written either as an attribute or as an element.
 
std::vector< std::string_view > KODI::PICTURE::XMP::GetValues (std::string_view xmp, std::string_view name)
 Get every value of a property written as an rdf:Seq list, or its one value otherwise.
 
uint64_t KODI::PICTURE::XMP::GetUnsigned (std::string_view xmp, std::string_view name)
 Get a property's value as a whole number, or 0 if it's missing.
 
std::vector< ContainerItem > KODI::PICTURE::XMP::GetContainerItems (std::string_view xmp)
 Get the items of a Container:Directory, in the order they are stored in the file.