|
VLC 4.0.0-dev
|
Functions | |
| static void | ArtCacheCreateDir (const char *psz_dir) |
| static bool | ArtUrlIsAttachment (const char *psz_arturl) |
| static char * | ArtCacheGetAttachmentDirPath (const char *psz_title, const char *psz_uri) |
| static char * | ArtCacheAttachmentPath (input_item_t *p_item) |
| static char * | ArtCacheGetDirPath (const char *psz_arturl, const char *psz_artist, const char *psz_album, const char *psz_date, const char *psz_title, const char *psz_uri) |
| static char * | ArtCachePath (input_item_t *p_item) |
| static char * | ArtCacheName (input_item_t *p_item, const char *psz_type) |
| static char * | ArtCacheNameFromDirPath (const char *psz_path, const char *psz_type) |
| static char * | ArtCacheFilePath (const char *psz_dir, const char *psz_name) |
| static char * | ArtCacheReadUriFromFile (const char *psz_file) |
| static char * | ArtCacheReadUriFromDirPath (const char *psz_dir) |
| static int | ArtCacheWriteUriToFile (vlc_object_t *obj, const char *psz_file, const char *psz_uri) |
| static char * | ArtCacheGetAttachmentBlobDirPath (const void *p_data, size_t i_data) |
| static char * | ArtCacheUriInPath (const char *psz_path) |
| static int | ArtCacheFindInPath (input_item_t *p_item, char *psz_path) |
| static int | ArtCacheFindAttachment (input_item_t *p_item) |
| int | input_FindArtInCache (input_item_t *p_item) |
| static char * | GetDirByItemUIDs (char *psz_uid) |
| int | input_FindArtInCacheUsingItemUID (input_item_t *p_item) |
| int | input_SaveArt (vlc_object_t *obj, input_item_t *p_item, const void *data, size_t length, const char *psz_type) |
|
static |
References ArtCacheGetAttachmentDirPath(), input_item_t::lock, input_item_t::p_meta, input_item_t::psz_name, input_item_t::psz_uri, vlc_meta_Get, vlc_meta_Title, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by ArtCacheFindAttachment(), and input_SaveArt().
|
static |
References vlc_mkdir_parent().
Referenced by ArtCacheName(), ArtCacheNameFromDirPath(), and input_SaveArt().
|
static |
References asprintf(), DIR_SEP, and psz_name.
Referenced by ArtCacheReadUriFromDirPath(), input_FindArtInCacheUsingItemUID(), and input_SaveArt().
|
static |
References ArtCacheAttachmentPath(), ArtCacheFindInPath(), ArtCacheReadUriFromDirPath(), input_item_SetArtURL, and VLC_SUCCESS.
Referenced by input_FindArtInCache().
|
static |
References ArtCacheUriInPath(), input_item_SetArtURL, VLC_EGENERIC, and VLC_SUCCESS.
Referenced by ArtCacheFindAttachment(), and input_FindArtInCache().
|
static |
References asprintf(), config_GetUserDir(), DIR_SEP, unlikely, VLC_CACHE_DIR, vlc_hash_FinishHex, VLC_HASH_MD5_DIGEST_HEX_SIZE, vlc_hash_md5_Init(), and vlc_hash_md5_Update().
Referenced by input_SaveArt().
|
static |
References asprintf(), config_GetUserDir(), DIR_SEP, EMPTY_STR, unlikely, VLC_CACHE_DIR, vlc_hash_FinishHex, VLC_HASH_MD5_DIGEST_HEX_SIZE, vlc_hash_md5_Init(), and vlc_hash_md5_Update().
Referenced by ArtCacheAttachmentPath().
|
static |
References ArtUrlIsAttachment(), asprintf(), config_GetUserDir(), DIR_SEP, EMPTY_STR, filename_sanitize(), strdup(), unlikely, VLC_CACHE_DIR, vlc_hash_FinishHex, VLC_HASH_MD5_DIGEST_HEX_SIZE, vlc_hash_md5_Init(), and vlc_hash_md5_Update().
Referenced by ArtCachePath().
|
static |
References ArtCacheCreateDir(), ArtCachePath(), asprintf(), DIR_SEP, filename_sanitize(), psz_ext, strdup(), and unlikely.
Referenced by input_SaveArt().
|
static |
References ArtCacheCreateDir(), asprintf(), DIR_SEP, filename_sanitize(), psz_ext, strdup(), and unlikely.
Referenced by input_SaveArt().
|
static |
References ArtCacheGetDirPath(), EMPTY_STR, input_item_t::lock, input_item_t::p_meta, input_item_t::psz_name, input_item_t::psz_uri, vlc_meta_Album, vlc_meta_Artist, vlc_meta_ArtworkURL, vlc_meta_Date, vlc_meta_Get, vlc_meta_New(), vlc_meta_Title, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by ArtCacheName(), and input_FindArtInCache().
|
static |
References ArtCacheFilePath(), and ArtCacheReadUriFromFile().
Referenced by ArtCacheFindAttachment().
|
static |
References strdup(), and vlc_fopen().
Referenced by ArtCacheReadUriFromDirPath(), and input_FindArtInCacheUsingItemUID().
|
static |
References asprintf(), DIR_SEP, vlc_closedir(), vlc_opendir(), vlc_path2uri(), and vlc_readdir().
Referenced by ArtCacheFindInPath(), and input_SaveArt().
|
static |
References msg_Err, VLC_EGENERIC, vlc_fopen(), vlc_strerror_c(), and VLC_SUCCESS.
Referenced by input_SaveArt().
|
static |
Referenced by ArtCacheGetDirPath(), and input_SaveArt().
|
static |
References asprintf(), config_GetUserDir(), DIR_SEP, unlikely, and VLC_CACHE_DIR.
Referenced by input_FindArtInCacheUsingItemUID(), and input_SaveArt().
| int input_FindArtInCache | ( | input_item_t * | p_item | ) |
References ArtCacheFindAttachment(), ArtCacheFindInPath(), ArtCachePath(), and VLC_SUCCESS.
Referenced by input_ExtractAttachmentAndCacheArt(), and SearchByScope().
| int input_FindArtInCacheUsingItemUID | ( | input_item_t * | p_item | ) |
References ArtCacheFilePath(), ArtCacheReadUriFromFile(), GetDirByItemUIDs(), input_item_GetInfo(), input_item_SetArtURL, VLC_EGENERIC, and VLC_SUCCESS.
Referenced by SearchByScope().
| int input_SaveArt | ( | vlc_object_t * | obj, |
| input_item_t * | p_item, | ||
| const void * | data, | ||
| size_t | length, | ||
| const char * | psz_type ) |
References ArtCacheAttachmentPath(), ArtCacheCreateDir(), ArtCacheFilePath(), ArtCacheGetAttachmentBlobDirPath(), ArtCacheName(), ArtCacheNameFromDirPath(), ArtCacheUriInPath(), ArtCacheWriteUriToFile(), ArtUrlIsAttachment(), GetDirByItemUIDs(), input_item_GetArtURL, input_item_GetInfo(), input_item_SetArtURL, msg_Dbg, msg_Err, VLC_EGENERIC, vlc_fopen(), vlc_path2uri(), vlc_stat(), vlc_strerror_c(), VLC_SUCCESS, vlc_unlink(), and vlc_uri2path().
Referenced by input_ExtractAttachmentAndCacheArt(), and RunDownloader().