mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
fix types
This commit is contained in:
parent
fb7fabdbc5
commit
b1e2896391
@ -65,9 +65,10 @@ typedef struct {
|
|||||||
|
|
||||||
/// ScreenShotDecodeOption
|
/// ScreenShotDecodeOption
|
||||||
typedef struct {
|
typedef struct {
|
||||||
bool fancy_upsampling;
|
u8 fancy_upsampling; ///< See libjpeg-turbo do_fancy_upsampling.
|
||||||
bool block_smoothing;
|
u8 block_smoothing; ///< See libjpec-turbo do_block_smoothing.
|
||||||
u8 unk_x2[0x1e]; ///< Unknown. Ignored by official sw.
|
u8 pad_x2[0x6]; ///< Padding.
|
||||||
|
u64 unk_x8[0x3]; ///< Unknown. Ignored by official sw.
|
||||||
} CapsScreenShotDecodeOption;
|
} CapsScreenShotDecodeOption;
|
||||||
|
|
||||||
/// AlbumFileDateTime. This corresponds to each field in the Album entry filename, prior to the "-": "YYYYMMDDHHMMSSII".
|
/// AlbumFileDateTime. This corresponds to each field in the Album entry filename, prior to the "-": "YYYYMMDDHHMMSSII".
|
||||||
|
@ -26,7 +26,7 @@ Service* capsdcGetServiceSession(void);
|
|||||||
* @param[in] opts CapsScreenShotDecodeOption decode options.
|
* @param[in] opts CapsScreenShotDecodeOption decode options.
|
||||||
* @param[in] jpeg Jpeg image input buffer.
|
* @param[in] jpeg Jpeg image input buffer.
|
||||||
* @param[in] jpeg_size Input image buffer size.
|
* @param[in] jpeg_size Input image buffer size.
|
||||||
* @param[out] image RGBA8 image output buffer.
|
* @param[out] 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.
|
* @param[in] out_image_size Output image buffer size, should be at least large enough for RGBA8 width x height.
|
||||||
*/
|
*/
|
||||||
Result capsdcDecodeJpeg(u32 width, 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, size_t jpeg_size, void* out_image, size_t out_image_size);
|
||||||
|
@ -18,7 +18,7 @@ Service* capsdcGetServiceSession(void) {
|
|||||||
return &g_capsdcSrv;
|
return &g_capsdcSrv;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result capsdcDecodeJpeg(u32 width, 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, size_t jpeg_size, void* out_image, size_t out_image_size) {
|
||||||
const struct {
|
const struct {
|
||||||
u32 width;
|
u32 width;
|
||||||
u32 height;
|
u32 height;
|
||||||
|
Loading…
Reference in New Issue
Block a user