Mercurial > geeqie.yaz
comparison src/thumb_standard.c @ 1521:68b73d524ca3
unconditionally enable fast jpeg thumbnailing
author | nadvornik |
---|---|
date | Mon, 06 Apr 2009 20:38:54 +0000 |
parents | a6f9ba6fd751 |
children | 24a12aa0cb54 |
comparison
equal
deleted
inserted
replaced
1520:7216f4a45698 | 1521:68b73d524ca3 |
---|---|
591 static gboolean thumb_loader_std_setup(ThumbLoaderStd *tl, FileData *fd) | 591 static gboolean thumb_loader_std_setup(ThumbLoaderStd *tl, FileData *fd) |
592 { | 592 { |
593 tl->il = image_loader_new(fd); | 593 tl->il = image_loader_new(fd); |
594 image_loader_set_priority(tl->il, G_PRIORITY_LOW); | 594 image_loader_set_priority(tl->il, G_PRIORITY_LOW); |
595 | 595 |
596 if (options->thumbnails.fast) | 596 /* this will speed up jpegs by up to 3x in some cases */ |
597 { | 597 if (tl->requested_width <= THUMB_SIZE_NORMAL && |
598 /* this will speed up jpegs by up to 3x in some cases */ | 598 tl->requested_height <= THUMB_SIZE_NORMAL) |
599 if (tl->requested_width <= THUMB_SIZE_NORMAL && | 599 { |
600 tl->requested_height <= THUMB_SIZE_NORMAL) | 600 image_loader_set_requested_size(tl->il, THUMB_SIZE_NORMAL, THUMB_SIZE_NORMAL); |
601 { | 601 } |
602 image_loader_set_requested_size(tl->il, THUMB_SIZE_NORMAL, THUMB_SIZE_NORMAL); | 602 else |
603 } | 603 { |
604 else | 604 image_loader_set_requested_size(tl->il, THUMB_SIZE_LARGE, THUMB_SIZE_LARGE); |
605 { | |
606 image_loader_set_requested_size(tl->il, THUMB_SIZE_LARGE, THUMB_SIZE_LARGE); | |
607 } | |
608 } | 605 } |
609 | 606 |
610 g_signal_connect(G_OBJECT(tl->il), "error", (GCallback)thumb_loader_std_error_cb, tl); | 607 g_signal_connect(G_OBJECT(tl->il), "error", (GCallback)thumb_loader_std_error_cb, tl); |
611 if (tl->func_progress) | 608 if (tl->func_progress) |
612 { | 609 { |