Lines Matching defs:max_w
495 artwork_get(char *filename, int max_w, int max_h, int format, struct evbuffer *evbuf)
506 DPRINTF(E_DBG, L_ART, "Artwork request parameters: max w = %d, max h = %d\n", max_w, max_h);
560 /* Determine width/height -- assuming max_w == max_h */
561 if ((src->width <= max_w) && (src->height <= max_h))
570 target_w = max_w;
576 target_w = (double)max_w * ((double)src->width / (double)src->height);
580 target_w = max_w;
592 if (target_w > max_w)
593 target_w = max_w - (max_w % 2);
620 artwork_get_own_image(char *path, int max_w, int max_h, int format, struct evbuffer *evbuf)
664 return artwork_get(artwork, max_w, max_h, format, evbuf);
668 artwork_get_dir_image(char *path, int isdir, int max_w, int max_h, int format, struct evbuffer *evbuf)
722 return artwork_get(artwork, max_w, max_h, format, evbuf);
727 artwork_get_item_filename(char *filename, int max_w, int max_h, int format, struct evbuffer *evbuf)
734 ret = artwork_get_own_image(filename, max_w, max_h, format, evbuf);
739 ret = artwork_get_dir_image(filename, 0, max_w, max_h, format, evbuf);
747 artwork_get_item(int id, int max_w, int max_h, int format, struct evbuffer *evbuf)
758 ret = artwork_get_item_filename(filename, max_w, max_h, format, evbuf);
768 artwork_get_group(int id, int max_w, int max_h, int format, struct evbuffer *evbuf)
796 got_art = artwork_get_dir_image(dir, 1, max_w, max_h, format, evbuf);
825 got_art = artwork_get_own_image(dbmfi.path, max_w, max_h, format, evbuf);