mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 19:53:18 -04:00
plugins: imageviewer: Hide info by default when loading file
Looks nicer, especially when the "View Album Art" option is used. Add delay to progress bar, so it only appears when 250ms have passed. Change-Id: I183c839f1ab206385cd01327922933b544c4b78b
This commit is contained in:
parent
fd7ae09e7a
commit
f4dc4d89dc
34 changed files with 160 additions and 114 deletions
|
|
@ -117,7 +117,8 @@ static int load_image(char *filename, struct image_info *info,
|
|||
POS(offset);
|
||||
}
|
||||
|
||||
if (!iv->running_slideshow)
|
||||
if (!iv->settings->hide_info &&
|
||||
!iv->running_slideshow)
|
||||
{
|
||||
rb->lcd_puts(0, 0, rb->strrchr(filename,'/')+1);
|
||||
rb->lcd_puts(0, 2, "decoding...");
|
||||
|
|
@ -142,7 +143,8 @@ static int load_image(char *filename, struct image_info *info,
|
|||
return PLUGIN_ERROR;
|
||||
}
|
||||
|
||||
if (!iv->running_slideshow)
|
||||
if (!iv->settings->hide_info &&
|
||||
!iv->running_slideshow)
|
||||
{
|
||||
rb->lcd_putsf(0, 2, "image %dx%d", p_jpg->X, p_jpg->Y);
|
||||
int w, h; /* used to center output */
|
||||
|
|
@ -262,7 +264,7 @@ static int get_image(struct image_info *info, int frame, int ds)
|
|||
c2 = (sumV + area/2) / area;
|
||||
}
|
||||
|
||||
// ITU BT.601 full-range YUV-to-RGB integer approximation
|
||||
// ITU BT.601 full-range YUV-to-RGB integer approximation
|
||||
{
|
||||
int y = (c0 << 5) + 16;
|
||||
int u = c1 - 128;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue