![]() |
Atlas Game Manager
A game manager for f95 and dlsite written in c++
|
Namespaces | |
| namespace | async |
| namespace | internal |
Classes | |
| struct | ImageLoader |
Functions | |
| std::string | createBlurhash (const QPixmap &pixmap) |
| std::string | createBlurhash (QImage image) |
| QPixmap | decodeBlurhash (const std::string &hash, int width, int height) |
| QPixmap | getBlurhash (const std::filesystem::path &path, const QSize size) |
| std::string | createBlurhash (const std::filesystem::path &path) |
| void | cleanOrphans () |
| Clears all images not found attached to any record. | |
| QImage | blurImage (const QImage &image, const qreal blur_radius, bool quality_blur, bool alpha_only, int transposed) |
| QPixmap | blurPixmap (const QPixmap &pixmap, qreal blur_radius, bool quality_blur, bool alpha_only, int transposed) |
| void | saveImage (const QByteArray &byteArray, const std::filesystem::path &dest) |
| void | saveImage (const QImage &img, const std::filesystem::path &dest) |
| std::filesystem::path | importImage (const std::filesystem::path &path, const RecordID game_id) |
| std::filesystem::path | importPixmap (const QPixmap pixmap, const RecordID game_id) |
| std::filesystem::path | importImageFromURL (const QString url, const RecordID record_id) |
| std::filesystem::path | importPixmap (const QPixmap pixmap, const atlas::records::Game game) |
| const std::string | pixmapKey (const QSize target_size, const SCALE_TYPE scale_type, const std::filesystem::path &path) |
| QPixmap | scalePixmap (QPixmap img, const QSize target_size, const SCALE_TYPE scale_type) |
| QPixmap | loadPixmap (const std::filesystem::path &path) |
| QPixmap | loadScaledPixmap (const QSize target_size, const SCALE_TYPE scale_type, const std::filesystem::path &path) |
| QImage | loadImage (const std::filesystem::path &path) |
| QSize | thumbnailSize () |
| std::filesystem::path | createThumbnail (const std::filesystem::path &image_path) |
| Creates a thumbnail for a given image. | |
| std::filesystem::path | thumbnailPath (const std::filesystem::path &image) |
| Returns the thumbnail path for an image. Will return an empty path if no thumbnail is made. | |
| QPixmap | thumbnail (const std::filesystem::path &path) |
| Returns the thumbnail for a path. Path must be a TRUE image. NOT the thumbnail path. | |
| void | verifyThumbnail (const std::filesystem::path &path) |
| Verifies that the thumbnail is the proper resolution and fixes it if not. | |
| QImage atlas::images::blurImage | ( | const QImage & | image, |
| const qreal | blur_radius, | ||
| bool | quality_blur, | ||
| bool | alpha_only, | ||
| int | transposed ) |
| QPixmap atlas::images::blurPixmap | ( | const QPixmap & | pixmap, |
| qreal | blur_radius, | ||
| bool | quality_blur, | ||
| bool | alpha_only, | ||
| int | transposed ) |
| void atlas::images::cleanOrphans | ( | ) |
Clears all images not found attached to any record.
| std::string atlas::images::createBlurhash | ( | const QPixmap & | pixmap | ) |
| std::string atlas::images::createBlurhash | ( | const std::filesystem::path & | path | ) |
| std::string atlas::images::createBlurhash | ( | QImage | image | ) |
| std::filesystem::path atlas::images::createThumbnail | ( | const std::filesystem::path & | image_path | ) |
Creates a thumbnail for a given image.
Will create a thumbnail next to the original image with a .thumb as it's extention
| image_path | path to create a thumbnail for. |
| QPixmap atlas::images::decodeBlurhash | ( | const std::string & | hash, |
| int | width, | ||
| int | height ) |
|
nodiscard |
|
nodiscard |
| std::filesystem::path atlas::images::importImageFromURL | ( | const QString | url, |
| const RecordID | record_id ) |
|
inlinenodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
| const std::string atlas::images::pixmapKey | ( | const QSize | target_size, |
| const SCALE_TYPE | scale_type, | ||
| const std::filesystem::path & | path ) |
| void atlas::images::saveImage | ( | const QByteArray & | byteArray, |
| const std::filesystem::path & | dest ) |
| source | Source path of the image. Used for logging purposes. |
| byteArray | |
| dest |
| void atlas::images::saveImage | ( | const QImage & | img, |
| const std::filesystem::path & | dest ) |
|
nodiscard |
| 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.
| path | Path of the SOURCE image. NOT thumbnail |
| 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.
| QSize atlas::images::thumbnailSize | ( | ) |
| void atlas::images::verifyThumbnail | ( | const std::filesystem::path & | path | ) |
Verifies that the thumbnail is the proper resolution and fixes it if not.