Lines Matching defs:path
47 save_resized_album_art(image * imsrc, const char * path)
57 if( art_cache_exists(path, &cache_file) )
104 update_if_album_art(const char * path)
116 match = strdup(basename((char *)path));
133 dir = dirname(strdup(path));
160 DPRINTF(E_DEBUG, L_METADATA, "New file %s looks like cover art for %s\n", path, dp->d_name);
175 check_embedded_art(const char * path, const char * image_data, int image_size)
188 if( !image_data || !image_size || !path )
199 art_cache_exists(path, &art_path);
232 art_path = save_resized_album_art(imsrc, path);
236 if( art_cache_exists(path, &art_path) )
262 DPRINTF(E_WARN, L_METADATA, "Invalid embedded album art in %s\n", basename((char *)path));
266 DPRINTF(E_DEBUG, L_METADATA, "Found new embedded album art in %s\n", basename((char *)path));
274 check_for_album_file(char * dir, const char * path)
283 sprintf(file, "%s.cover.jpg", path);
293 sprintf(file, "%s", path);
340 find_album_art(const char * path, const char * image_data, int image_size)
347 char * mypath = strdup(path);
349 if( (image_size && (album_art = check_embedded_art(path, image_data, image_size))) ||
350 (album_art = check_for_album_file(dirname(mypath), path)) )
352 sql = sqlite3_mprintf("SELECT ID from ALBUM_ART where PATH = '%q'", album_art ? album_art : path);