diff --git a/nx/include/switch/services/caps.h b/nx/include/switch/services/caps.h index 5383bfd5..53c755bf 100644 --- a/nx/include/switch/services/caps.h +++ b/nx/include/switch/services/caps.h @@ -67,8 +67,7 @@ typedef struct { typedef struct { bool fancy_upsampling; bool block_smoothing; - u8 unk_x2[0x6]; ///< Padding. - u64 unk_x8[3]; ///< Unknown. Ignored by official sw. + u8 unk_x2[0x1e]; ///< Unknown. Ignored by official sw. } CapsScreenShotDecodeOption; /// AlbumFileDateTime. This corresponds to each field in the Album entry filename, prior to the "-": "YYYYMMDDHHMMSSII". diff --git a/nx/include/switch/services/capsdc.h b/nx/include/switch/services/capsdc.h index f3d69968..c89a3aa7 100644 --- a/nx/include/switch/services/capsdc.h +++ b/nx/include/switch/services/capsdc.h @@ -1,6 +1,6 @@ /** * @file capsdc.h - * @brief Jpeg Decoder (caps:dc) service IPC wrapper. Only Available on 4.0.0+. + * @brief Jpeg Decoder (caps:dc) service IPC wrapper. Only Available on [4.0.0+]. * @note Only holds one session that is occupied by capsrv. * @author Behemoth * @copyright libnx Authors @@ -29,4 +29,4 @@ Service* capsdcGetServiceSession(void); * @param[out] image RGBA8 image output buffer. * @param[in] image_size Output image buffer size, should be at least large enough for RGBA8 width x height. */ -Result capsdcDecodeJpeg(const u32 width, const u32 height, const CapsScreenShotDecodeOption *opts, const void* jpeg, const u64 jpeg_size, void* image, const u64 image_size); +Result capsdcDecodeJpeg(u32 width, u32 height, const CapsScreenShotDecodeOption *opts, const void* jpeg, const u64 jpeg_size, void* image, const u64 image_size); diff --git a/nx/source/services/capsdc.c b/nx/source/services/capsdc.c index 3005fd1e..cc878f4f 100644 --- a/nx/source/services/capsdc.c +++ b/nx/source/services/capsdc.c @@ -18,7 +18,7 @@ Service* capsdcGetServiceSession(void) { return &g_capsdcSrv; } -Result capsdcDecodeJpeg(const u32 width, const u32 height, const CapsScreenShotDecodeOption *opts, const void* jpeg, const u64 jpeg_size, void* image, const u64 image_size) { +Result capsdcDecodeJpeg(u32 width, u32 height, const CapsScreenShotDecodeOption *opts, const void* jpeg, const u64 jpeg_size, void* image, const u64 image_size) { const struct { u32 width; u32 height;