![]() |
Atlas Game Manager
A game manager for f95 and dlsite written in c++
|
#include "thumbnails.hpp"#include <QImageReader>#include <QtConcurrentRun>#include "core/exceptions.hpp"#include "core/utils/ImageCache/ImageCache.hpp"#include "core/utils/threading/pools.hpp"#include "loader.hpp"Namespaces | |
| namespace | atlas |
| namespace | atlas::images |
| namespace | atlas::images::async |
| namespace | atlas::images::async::internal |
Functions | |
| QSize | atlas::images::thumbnailSize () |
| std::filesystem::path | atlas::images::createThumbnail (const std::filesystem::path &image_path) |
| Creates a thumbnail for a given image. | |
| std::filesystem::path | atlas::images::thumbnailPath (const std::filesystem::path &image) |
| Returns the thumbnail path for an image. Will return an empty path if no thumbnail is made. | |
| QPixmap | atlas::images::thumbnail (const std::filesystem::path &path) |
| Returns the thumbnail for a path. Path must be a TRUE image. NOT the thumbnail path. | |
| void | atlas::images::verifyThumbnail (const std::filesystem::path &path) |
| Verifies that the thumbnail is the proper resolution and fixes it if not. | |
| void | atlas::images::async::internal::loadThumbnail (QPromise< QPixmap > &promise, const std::filesystem::path origin_path) |
| void | atlas::images::async::internal::loadScaledThumb (QPromise< QPixmap > &promise, const QSize size, const SCALE_TYPE scale_type, const std::filesystem::path origin_path) |
| QFuture< QPixmap > | atlas::images::async::thumbnail (const std::filesystem::path &path) |
| QFuture< QPixmap > | atlas::images::async::scaledThumbnail (const QSize size, const SCALE_TYPE scale_type, const std::filesystem::path &path) |
Variables | |
| static atlas::cache::ImageCache | thumb_cache |
|
inlinestatic |