mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
capsdc: typo, use ref, fix build
This commit is contained in:
parent
b1e2896391
commit
40ac340e65
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -31,7 +31,7 @@ Result capsdcDecodeJpeg(u32 width, u32 height, const CapsScreenShotDecodeOption
|
||||
},
|
||||
.buffers = {
|
||||
{ jpeg, jpeg_size },
|
||||
{ image, image_size },
|
||||
{ out_image, out_image_size },
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user