libnx
v4.7.0
|
Jpeg Decoder (caps:dc) service IPC wrapper. More...
Go to the source code of this file.
Functions | |
Result | capsdcInitialize (void) |
Initialize caps:dc. | |
void | capsdcExit (void) |
Exit caps:dc. | |
Service * | capsdcGetServiceSession (void) |
Gets the Service for caps:dc. | |
Result | capsdcDecodeJpeg (u32 width, u32 height, const CapsScreenShotDecodeOption *opts, const void *jpeg, size_t jpeg_size, void *out_image, size_t out_image_size) |
Decodes a jpeg buffer into RGBX. More... | |
Result | capsdcShrinkJpeg (u32 width, u32 height, const CapsScreenShotDecodeOption *opts, const void *jpeg, size_t jpeg_size, void *out_jpeg, size_t out_jpeg_size, u64 *out_result_size) |
Shrinks a jpeg's dimensions by 2. | |
Jpeg Decoder (caps:dc) service IPC wrapper.
Only available on [4.0.0+].
Result capsdcDecodeJpeg | ( | u32 | width, |
u32 | height, | ||
const CapsScreenShotDecodeOption * | opts, | ||
const void * | jpeg, | ||
size_t | jpeg_size, | ||
void * | out_image, | ||
size_t | out_image_size | ||
) |
Decodes a jpeg buffer into RGBX.
[in] | width | Image width. |
[in] | height | Image height. |
[in] | opts | CapsScreenShotDecodeOption. |
[in] | jpeg | Jpeg image input buffer. |
[in] | jpeg_size | Input image buffer size. |
[out] | out_image | RGBA8 image output buffer. |
[in] | out_image_size | Output image buffer size, should be at least large enough for RGBA8 width x height. |