libnx
v4.2.0
|
Jpeg Decoder (caps:dc) service IPC wrapper. Only available on [4.0.0+]. 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... | |
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. |