libmediaart-1.0
Description:
The libmediaart library is the foundation for media art caching, extraction and lookup for applications on the desktop.
Content:
Namespaces:
- MediaArt
Classes:
- Process - A class implementation for processing and
extracting media art.
Enums:
- ProcessFlags - This type categorized the flags
used when processing media art.
- Type - This type categorized the type of media art we're
dealing with.
Error domains:
- Error - Enumeration values used in errors
returned by the Error API.
Methods:
- public bool buffer_to_jpeg (uint8 buffer, ulong len, string buffer_mime, string target) throws Error
This function performs the same operation as
file_to_jpeg with the exception that a raw buffer
can be used
instead providing len
and the buffer_mime
too.
- public bool file_to_jpeg (string filename, string target) throws Error
Save filename
to target
as JPEG format.
- public bool get_file (string? artist, string? title, string? prefix, File? file, out File cache_file, out File local_file)
Gets the files pointing to cache files suitable for storing the
media art provided by the artist
, title
and file
arguments.
- public bool get_path (string? artist, string? title, string? prefix, string? uri, out string cache_path, out string local_uri)
This function calls
get_file by creating a File for uri
and passing the same arguments to
get_file.
- public void plugin_init (int max_width)
This function facilitates a plugin's need to create any
internal caches before anything else is done.
- public void plugin_shutdown ()
This function facilitates a plugin's need to clean up any
internal caches.
- public bool remove (string artist, string? album)
Removes media art for given album/artist provided.
- public string strip_invalid_entities (string original)
Strip a albumname or artistname string to prepare it for calculating
the media art path with it.