summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/caps/caps_manager.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-10-18 07:05:44 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2023-10-23 18:18:22 +0200
commit897b411ae76a817421453120ca0d0812e3de233f (patch)
treec4d69fd35790e21605c6382b29107186e5e2a6a1 /src/core/hle/service/caps/caps_manager.h
parentexternals: stb: Add image write (diff)
downloadyuzu-897b411ae76a817421453120ca0d0812e3de233f.tar
yuzu-897b411ae76a817421453120ca0d0812e3de233f.tar.gz
yuzu-897b411ae76a817421453120ca0d0812e3de233f.tar.bz2
yuzu-897b411ae76a817421453120ca0d0812e3de233f.tar.lz
yuzu-897b411ae76a817421453120ca0d0812e3de233f.tar.xz
yuzu-897b411ae76a817421453120ca0d0812e3de233f.tar.zst
yuzu-897b411ae76a817421453120ca0d0812e3de233f.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/caps/caps_manager.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/service/caps/caps_manager.h b/src/core/hle/service/caps/caps_manager.h
index f65eb12c1..44d85117f 100644
--- a/src/core/hle/service/caps/caps_manager.h
+++ b/src/core/hle/service/caps/caps_manager.h
@@ -58,6 +58,15 @@ public:
std::vector<u8>& out_image, const AlbumFileId& file_id,
const ScreenShotDecodeOption& decoder_options) const;
+ Result SaveScreenShot(ApplicationAlbumEntry& out_entry, const ScreenShotAttribute& attribute,
+ std::span<const u8> image_data, u64 aruid);
+ Result SaveScreenShot(ApplicationAlbumEntry& out_entry, const ScreenShotAttribute& attribute,
+ const ApplicationData& app_data, std::span<const u8> image_data,
+ u64 aruid);
+ Result SaveEditedScreenShot(ApplicationAlbumEntry& out_entry,
+ const ScreenShotAttribute& attribute, const AlbumFileId& file_id,
+ std::span<const u8> image_data);
+
private:
static constexpr std::size_t NandAlbumFileLimit = 1000;
static constexpr std::size_t SdAlbumFileLimit = 10000;
@@ -67,6 +76,8 @@ private:
Result GetAlbumEntry(AlbumEntry& out_entry, const std::filesystem::path& path) const;
Result LoadImage(std::span<u8> out_image, const std::filesystem::path& path, int width,
int height, ScreenShotDecoderFlag flag) const;
+ Result SaveImage(ApplicationAlbumEntry& out_entry, std::span<const u8> image, u64 title_id,
+ const AlbumFileDateTime& date) const;
AlbumFileDateTime ConvertToAlbumDateTime(u64 posix_time) const;