fix types and comment

This commit is contained in:
HookedBehemoth 2020-01-31 04:43:12 +01:00
parent 6ed58e3601
commit fb7fabdbc5
3 changed files with 4 additions and 5 deletions

View File

@ -67,8 +67,7 @@ typedef struct {
typedef struct { typedef struct {
bool fancy_upsampling; bool fancy_upsampling;
bool block_smoothing; bool block_smoothing;
u8 unk_x2[0x6]; ///< Padding. u8 unk_x2[0x1e]; ///< Unknown. Ignored by official sw.
u64 unk_x8[3]; ///< 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".

View File

@ -1,6 +1,6 @@
/** /**
* @file capsdc.h * @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. * @note Only holds one session that is occupied by capsrv.
* @author Behemoth * @author Behemoth
* @copyright libnx Authors * @copyright libnx Authors
@ -29,4 +29,4 @@ Service* capsdcGetServiceSession(void);
* @param[out] image RGBA8 image output buffer. * @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. * @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);

View File

@ -18,7 +18,7 @@ Service* capsdcGetServiceSession(void) {
return &g_capsdcSrv; 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 { const struct {
u32 width; u32 width;
u32 height; u32 height;