capsdc: typo, use ref, fix build

This commit is contained in:
HookedBehemoth 2020-01-31 17:36:45 +01:00
parent b1e2896391
commit 40ac340e65
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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.

View File

@ -31,7 +31,7 @@ Result capsdcDecodeJpeg(u32 width, u32 height, const CapsScreenShotDecodeOption
},
.buffers = {
{ jpeg, jpeg_size },
{ image, image_size },
{ out_image, out_image_size },
}
);
}