libnx v4.9.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. | |
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. | |
Result | capsdcShrinkJpegEx (u32 scaled_width, u32 scaled_height, u32 jpeg_quality, 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. | |
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. |
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.
[in] | width | Input image width. |
[in] | height | Input image width. |
[in] | opts | CapsScreenShotDecodeOption. |
[in] | jpeg | Jpeg image input buffer. |
[in] | jpeg_size | Input image buffer size. |
[out] | out_jpeg | Jpeg image output buffer |
[in] | out_jpeg_size | Output image buffer size. |
[out] | out_result_size | size of the resulting JPEG. |
Result capsdcShrinkJpegEx | ( | u32 | scaled_width, |
u32 | scaled_height, | ||
u32 | jpeg_quality, | ||
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.
[in] | scaled_width | Wanted image width. |
[in] | scaled_height | Wanted image width. |
[in] | jpeg_quality | has to be in range 0-100. |
[in] | opts | CapsScreenShotDecodeOption. |
[in] | jpeg | Jpeg image input buffer. |
[in] | jpeg_size | Input image buffer size. |
[out] | out_jpeg | Jpeg image output buffer |
[in] | out_jpeg_size | Output image buffer size. |
[out] | out_result_size | size of the resulting jpeg. |