Lines Matching defs:artwork
42 #include "artwork.h"
47 "artwork", "cover",
67 DPRINTF(E_WARN, L_ART, "Could not open artwork file '%s': %s\n", filename, strerror(errno));
75 DPRINTF(E_WARN, L_ART, "Could not stat() artwork file '%s': %s\n", filename, strerror(errno));
83 DPRINTF(E_LOG, L_ART, "Out of memory for artwork\n");
136 DPRINTF(E_LOG, L_ART, "No suitable decoder found for artwork %s\n", src_ctx->filename);
207 DPRINTF(E_LOG, L_ART, "Output artwork URL too long\n");
271 DPRINTF(E_LOG, L_ART, "Invalid parameters for artwork output: %s\n", strerror(AVUNERROR(ret)));
306 DPRINTF(E_LOG, L_ART, "Out of memory for artwork buffer\n");
347 DPRINTF(E_LOG, L_ART, "Could not decode artwork\n");
375 DPRINTF(E_LOG, L_ART, "Could not open artwork destination buffer\n");
389 DPRINTF(E_LOG, L_ART, "Out of memory for encoded artwork buffer\n");
404 DPRINTF(E_LOG, L_ART, "Could not encode artwork\n");
422 DPRINTF(E_LOG, L_ART, "Could not write artwork header: %s\n", strerror(AVUNERROR(ret)));
432 DPRINTF(E_LOG, L_ART, "Error writing artwork\n");
441 DPRINTF(E_LOG, L_ART, "Could not write artwork trailer: %s\n", strerror(AVUNERROR(ret)));
517 DPRINTF(E_WARN, L_ART, "Cannot open artwork file '%s': %s\n", filename, strerror(AVUNERROR(ret)));
622 char artwork[PATH_MAX];
628 ret = snprintf(artwork, sizeof(artwork), "%s", path);
629 if ((ret < 0) || (ret >= sizeof(artwork)))
636 ptr = strrchr(artwork, '.');
640 len = strlen(artwork);
644 ret = snprintf(artwork + len, sizeof(artwork) - len, ".%s", cover_extension[i]);
645 if ((ret < 0) || (ret >= sizeof(artwork) - len))
652 DPRINTF(E_DBG, L_ART, "Trying own artwork file %s\n", artwork);
654 ret = access(artwork, F_OK);
664 return artwork_get(artwork, max_w, max_h, format, evbuf);
670 char artwork[PATH_MAX];
677 ret = snprintf(artwork, sizeof(artwork), "%s", path);
678 if ((ret < 0) || (ret >= sizeof(artwork)))
687 ptr = strrchr(artwork, '/');
692 len = strlen(artwork);
698 ret = snprintf(artwork + len, sizeof(artwork) - len, "/%s.%s", cover_basename[i], cover_extension[j]);
699 if ((ret < 0) || (ret >= sizeof(artwork) - len))
706 DPRINTF(E_DBG, L_ART, "Trying directory artwork file %s\n", artwork);
708 ret = access(artwork, F_OK);
722 return artwork_get(artwork, max_w, max_h, format, evbuf);
731 /* FUTURE: look at embedded artwork */
738 /* Look for basedir(filename)/{artwork,cover}.{png,jpg} */
760 DPRINTF(E_DBG, L_ART, "No artwork found for item id %d\n", id);
778 /* Try directory artwork first */
789 /* Skip to invidual files artwork */