foobar2000 SDK
2015-01-14
|
#include <album_art_helpers.h>
Public Member Functions | |
album_art_extractor_impl_stdtags (const char *exts) | |
bool | is_our_path (const char *p_path, const char *p_extension) |
album_art_extractor_instance_ptr | open (file_ptr p_filehint, const char *p_path, abort_callback &p_abort) |
Public Member Functions inherited from album_art_extractor | |
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (album_art_extractor) | |
Public Member Functions inherited from service_base | |
template<typename outPtr_t > | |
bool | cast (outPtr_t &outPtr) |
virtual int | service_add_ref ()=0 throw () |
virtual bool | service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid) |
template<class T > | |
bool | service_query_t (service_ptr_t< T > &p_out) |
virtual int | service_release ()=0 throw () |
Private Attributes | |
pfc::avltree_t< pfc::string, pfc::string::comparatorCaseInsensitiveASCII > | m_extensions |
Additional Inherited Members | |
Public Types inherited from service_base | |
typedef service_base | t_interface |
Static Public Member Functions inherited from album_art_extractor | |
static bool | g_get_interface (service_ptr_t< album_art_extractor > &out, const char *path) |
static bool | g_is_supported_path (const char *path) |
static album_art_extractor_instance_ptr | g_open (file_ptr p_filehint, const char *p_path, abort_callback &p_abort) |
static album_art_extractor_instance_ptr | g_open_allowempty (file_ptr p_filehint, const char *p_path, abort_callback &p_abort) |
Protected Member Functions inherited from service_base | |
service_base () | |
~service_base () | |
Helper implementation of album_art_extractor - reads album art from arbitrary file formats that comply with APEv2 tagging specification.
Definition at line 53 of file album_art_helpers.h.
|
inline |
exts | Semicolon-separated list of file format extensions to support. |
Definition at line 56 of file album_art_helpers.h.
|
inlinevirtual |
Returns whether the specified file is one of formats supported by our album_art_extractor implementation.
p_path | Path to file being queried. |
p_extension | Extension of file being queried (also present in p_path parameter) - provided as a separate parameter for performance reasons. |
Implements album_art_extractor.
Definition at line 60 of file album_art_helpers.h.
|
inlinevirtual |
Instantiates album_art_extractor_instance providing access to album art stored in a specified media file.
Throws one of I/O exceptions on failure; exception_album_art_not_found when the file has no album art record at all.
p_filehint | Optional; specifies a file interface to use for accessing the specified file; can be null - in that case, the implementation will open and close the file internally. |
Implements album_art_extractor.
Definition at line 64 of file album_art_helpers.h.
|
private |
Definition at line 71 of file album_art_helpers.h.