|
libnx v4.9.0
|
Application screenshot saving (caps:su) service IPC wrapper. More...
#include "../types.h"#include "../sf/service.h"#include "../services/acc.h"#include "../services/caps.h"Go to the source code of this file.
Functions | |
| Result | capssuInitialize (void) |
| Initialize caps:su. Only available on [4.0.0+]. | |
| void | capssuExit (void) |
| Exit caps:su. | |
| Service * | capssuGetServiceSession (void) |
| Gets the Service for caps:su. | |
| Result | capssuSaveScreenShot (const void *buffer, size_t size, AlbumReportOption reportoption, AlbumImageOrientation orientation, CapsApplicationAlbumEntry *out) |
| This is a wrapper for capssuSaveScreenShotEx0. | |
| Result | capssuSaveScreenShotWithUserData (const void *buffer, size_t size, AlbumReportOption reportoption, AlbumImageOrientation orientation, const void *userdata, size_t userdata_size, CapsApplicationAlbumEntry *out) |
| Similar to capssuSaveScreenShot, except this is a wrapper for capssuSaveScreenShotEx1. | |
| Result | capssuSaveScreenShotWithUserIds (const void *buffer, size_t size, AlbumReportOption reportoption, AlbumImageOrientation orientation, const AccountUid *uids, size_t uid_count, CapsApplicationAlbumEntry *out) |
| Similar to capssuSaveScreenShot, except this is a wrapper for capssuSaveScreenShotEx2. | |
| Result | capssuSaveScreenShotEx0 (const void *buffer, size_t size, const CapsScreenShotAttribute *attr, AlbumReportOption reportoption, CapsApplicationAlbumEntry *out) |
| Saves an Album screenshot using the specified gfx data in the buffer, with the specified CapsScreenShotAttribute. | |
| Result | capssuSaveScreenShotEx1 (const void *buffer, size_t size, const CapsScreenShotAttribute *attr, AlbumReportOption reportoption, CapsApplicationData *appdata, CapsApplicationAlbumEntry *out) |
| Same as capssuSaveScreenShotEx0, except this allows specifying the CapsApplicationData. | |
| Result | capssuSaveScreenShotEx2 (const void *buffer, size_t size, const CapsScreenShotAttribute *attr, AlbumReportOption reportoption, CapsUserIdList *list, CapsApplicationAlbumEntry *out) |
| Same as capssuSaveScreenShotEx0, except this allows specifying the CapsUserIdList. | |
Application screenshot saving (caps:su) service IPC wrapper.
| Result capssuSaveScreenShot | ( | const void * | buffer, |
| size_t | size, | ||
| AlbumReportOption | reportoption, | ||
| AlbumImageOrientation | orientation, | ||
| CapsApplicationAlbumEntry * | out | ||
| ) |
This is a wrapper for capssuSaveScreenShotEx0.
| [in] | buffer | RGBA8 1280x720 image buffer. |
| [in] | size | Size of the buffer. |
| [in] | reportoption | AlbumReportOption |
| [in] | orientation | AlbumImageOrientation |
| [out] | out | CapsApplicationAlbumEntry. Optional, can be NULL. |
| Result capssuSaveScreenShotEx0 | ( | const void * | buffer, |
| size_t | size, | ||
| const CapsScreenShotAttribute * | attr, | ||
| AlbumReportOption | reportoption, | ||
| CapsApplicationAlbumEntry * | out | ||
| ) |
Saves an Album screenshot using the specified gfx data in the buffer, with the specified CapsScreenShotAttribute.
| [in] | buffer | RGBA8 1280x720 image data buffer. |
| [in] | size | Size of the buffer, must be at least 0x384000. |
| [in] | attr | CapsScreenShotAttribute |
| [in] | reportoption | AlbumReportOption |
| [out] | out | CapsApplicationAlbumEntry. Optional, can be NULL. |
| Result capssuSaveScreenShotEx1 | ( | const void * | buffer, |
| size_t | size, | ||
| const CapsScreenShotAttribute * | attr, | ||
| AlbumReportOption | reportoption, | ||
| CapsApplicationData * | appdata, | ||
| CapsApplicationAlbumEntry * | out | ||
| ) |
Same as capssuSaveScreenShotEx0, except this allows specifying the CapsApplicationData.
| [in] | buffer | RGBA8 1280x720 image data buffer. |
| [in] | size | Size of the buffer, must be at least 0x384000. |
| [in] | attr | CapsScreenShotAttribute |
| [in] | reportoption | AlbumReportOption |
| [in] | appdata | CapsApplicationData |
| [out] | out | CapsApplicationAlbumEntry. Optional, can be NULL. |
| Result capssuSaveScreenShotEx2 | ( | const void * | buffer, |
| size_t | size, | ||
| const CapsScreenShotAttribute * | attr, | ||
| AlbumReportOption | reportoption, | ||
| CapsUserIdList * | list, | ||
| CapsApplicationAlbumEntry * | out | ||
| ) |
Same as capssuSaveScreenShotEx0, except this allows specifying the CapsUserIdList.
| [in] | buffer | RGBA8 1280x720 image data buffer. |
| [in] | size | Size of the buffer, must be at least 0x384000. |
| [in] | attr | CapsScreenShotAttribute |
| [in] | reportoption | AlbumReportOption |
| [in] | list | CapsUserIdList |
| [out] | out | CapsApplicationAlbumEntry. Optional, can be NULL. |
| Result capssuSaveScreenShotWithUserData | ( | const void * | buffer, |
| size_t | size, | ||
| AlbumReportOption | reportoption, | ||
| AlbumImageOrientation | orientation, | ||
| const void * | userdata, | ||
| size_t | userdata_size, | ||
| CapsApplicationAlbumEntry * | out | ||
| ) |
Similar to capssuSaveScreenShot, except this is a wrapper for capssuSaveScreenShotEx1.
| [in] | buffer | RGBA8 1280x720 image data buffer. |
| [in] | size | Size of the buffer. |
| [in] | reportoption | AlbumReportOption |
| [in] | orientation | AlbumImageOrientation |
| [in] | userdata | Input UserData buffer. If NULL, the CapsApplicationData will be empty. |
| [in] | userdata_size | Input UserData size, must be within bounds for CapsApplicationData::userdata. If 0, the CapsApplicationData will be empty. |
| [out] | out | CapsApplicationAlbumEntry. Optional, can be NULL. |
| Result capssuSaveScreenShotWithUserIds | ( | const void * | buffer, |
| size_t | size, | ||
| AlbumReportOption | reportoption, | ||
| AlbumImageOrientation | orientation, | ||
| const AccountUid * | uids, | ||
| size_t | uid_count, | ||
| CapsApplicationAlbumEntry * | out | ||
| ) |
Similar to capssuSaveScreenShot, except this is a wrapper for capssuSaveScreenShotEx2.
| [in] | buffer | RGBA8 1280x720 image data buffer. |
| [in] | size | Size of the buffer. |
| [in] | reportoption | AlbumReportOption |
| [in] | orientation | AlbumImageOrientation |
| [in] | uids | Input array of AccountUid. If NULL, the CapsUserIdList will be empty. |
| [in] | uid_count | Size of the uids array in entries, must be within bounds for CapsUserIdList::uids. If 0, the CapsUserIdList will be empty. |
| [out] | out | CapsApplicationAlbumEntry. Optional, can be NULL. |