Lines Matching defs:path
52 save_resized_album_art(image_s *imsrc, const char *path)
62 if( art_cache_exists(path, &cache_file) )
94 update_if_album_art(const char *path)
108 strncpyt(fpath, path, sizeof(fpath));
122 strncpyt(dpath, path, sizeof(dpath));
149 DPRINTF(E_DEBUG, L_METADATA, "New file %s looks like cover art for %s\n", path, dp->d_name);
160 check_embedded_art(const char *path, const char *image_data, int image_size)
172 if( !image_data || !image_size || !path )
183 art_cache_exists(path, &art_path);
216 art_path = save_resized_album_art(imsrc, path);
221 if( art_cache_exists(path, &art_path) )
248 DPRINTF(E_WARN, L_METADATA, "Invalid embedded album art in %s\n", basename((char *)path));
252 DPRINTF(E_DEBUG, L_METADATA, "Found new embedded album art in %s\n", basename((char *)path));
260 check_for_album_file(const char *path)
271 if( stat(path, &st) != 0 )
276 dir = path;
279 strncpyt(mypath, path, sizeof(mypath));
283 snprintf(file, sizeof(file), "%s.cover.jpg", path);
293 snprintf(file, sizeof(file), "%s", path);
337 find_album_art(const char *path, const char *image_data, int image_size)
345 if( (image_size && (album_art = check_embedded_art(path, image_data, image_size))) ||
346 (album_art = check_for_album_file(path)) )
348 sql = sqlite3_mprintf("SELECT ID from ALBUM_ART where PATH = '%q'", album_art ? album_art : path);