diff --git a/nx/include/switch/services/caps.h b/nx/include/switch/services/caps.h index 972f6134..d10e55c7 100644 --- a/nx/include/switch/services/caps.h +++ b/nx/include/switch/services/caps.h @@ -66,7 +66,7 @@ typedef struct { /// ScreenShotDecodeOption typedef struct { u8 fancy_upsampling; ///< See libjpeg-turbo do_fancy_upsampling. - u8 block_smoothing; ///< See libjpec-turbo do_block_smoothing. + u8 block_smoothing; ///< See libjpeg-turbo do_block_smoothing. u8 pad_x2[0x6]; ///< Padding. u64 unk_x8[0x3]; ///< Unknown. Ignored by official sw. } CapsScreenShotDecodeOption; diff --git a/nx/include/switch/services/capsdc.h b/nx/include/switch/services/capsdc.h index 4b6f7d51..f95e9d2a 100644 --- a/nx/include/switch/services/capsdc.h +++ b/nx/include/switch/services/capsdc.h @@ -23,7 +23,7 @@ Service* capsdcGetServiceSession(void); * @brief Decodes a jpeg buffer into RGBX. * @param[in] width Image width. * @param[in] height Image height. - * @param[in] opts CapsScreenShotDecodeOption decode options. + * @param[in] opts \ref CapsScreenShotDecodeOption. * @param[in] jpeg Jpeg image input buffer. * @param[in] jpeg_size Input image buffer size. * @param[out] out_image RGBA8 image output buffer. diff --git a/nx/source/services/capsdc.c b/nx/source/services/capsdc.c index 2ebdad57..e2d8378f 100644 --- a/nx/source/services/capsdc.c +++ b/nx/source/services/capsdc.c @@ -31,7 +31,7 @@ Result capsdcDecodeJpeg(u32 width, u32 height, const CapsScreenShotDecodeOption }, .buffers = { { jpeg, jpeg_size }, - { image, image_size }, + { out_image, out_image_size }, } ); }