#include <album_art_helpers.h>
Helper - a more advanced implementation of album_art_extractor_instance.
Definition at line 98 of file album_art_helpers.h.
struct album_art_extractor_instance_fileref::t_fileref |
album_art_extractor_instance_fileref::album_art_extractor_instance_fileref |
( |
file::ptr |
f | ) |
|
|
inline |
bool album_art_extractor_instance_fileref::have_item |
( |
const GUID & |
p_what | ) |
|
|
inline |
bool album_art_extractor_instance_fileref::is_empty |
( |
| ) |
const |
|
inline |
Throws exception_album_art_not_found when the requested album art entry could not be found in the referenced media file.
Implements album_art_extractor_instance.
Definition at line 112 of file album_art_helpers.h.
116 if (!
m_data.query(p_what, ref))
throw exception_album_art_not_found();
117 m_file->seek(ref.m_offset, p_abort);
static album_art_data_ptr g_create(const void *p_buffer, t_size p_bytes)
Creates an album_art_data object from picture data contained in a memory buffer.
void set(const _t_key &p_key, const _t_value &p_value)
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
bool query(const _t_key &p_key, _t_value &p_value) const
void album_art_extractor_instance_fileref::set |
( |
const GUID & |
p_what, |
|
|
t_filesize |
p_offset, |
|
|
t_filesize |
p_size |
|
) |
| |
|
inline |
Definition at line 102 of file album_art_helpers.h.
103 const t_fileref ref = {p_offset, p_size};
bool remove(const _t_key &p_key)
pfc::map_t<GUID, album_art_data::ptr> album_art_extractor_instance_fileref::m_cache |
|
private |
const file::ptr album_art_extractor_instance_fileref::m_file |
|
private |
The documentation for this class was generated from the following file: