Lines Matching defs:max_h
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))
571 target_h = (double)max_h * ((double)src->height / (double)src->width);
575 target_h = max_h;
581 target_h = max_h;
586 if (target_h > max_h)
587 target_h = max_h;
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);