libnx
v4.8.0
|
Album Control (caps:c) service IPC wrapper. More...
Go to the source code of this file.
Data Structures | |
struct | CapsApplicationId |
Functions | |
Result | capscInitialize (void) |
Initialize caps:c. | |
void | capscExit (void) |
Exit caps:c. | |
Service * | capscGetServiceSession (void) |
Gets the Service for caps:c. | |
Result | capscNotifyAlbumStorageIsAvailable (CapsAlbumStorage storage) |
Notify the service that a storage is now available. More... | |
Result | capscNotifyAlbumStorageIsUnAvailable (CapsAlbumStorage storage) |
Notify the service that a storage is now unavailable. More... | |
Result | capscRegisterAppletResourceUserId (u64 appletResourceUserId, const CapsApplicationId *application_id) |
Register an applet for later usage. More... | |
Result | capscUnregisterAppletResourceUserId (u64 appletResourceUserId, const CapsApplicationId *application_id) |
Unregister an applet. More... | |
Result | capscGetApplicationIdFromAruid (CapsApplicationId *application_id, u64 aruid) |
Get an ApplicationId that corresponds to an AppletResourceUserId. More... | |
Result | capscCheckApplicationIdRegistered (u64 application_id) |
Checks whether an ApplicationId is registered. More... | |
Result | capscGenerateCurrentAlbumFileId (const CapsApplicationId *application_id, CapsAlbumFileContents contents, CapsAlbumFileId *file_id) |
Generate an AlbumFileId based on parameters and current time. More... | |
Result | capscGenerateApplicationAlbumEntry (CapsApplicationAlbumEntry *appEntry, const CapsAlbumEntry *entry, u64 application_id) |
Generate an ApplicationAlbumEntry based on parameters. More... | |
Result | capscSaveAlbumScreenShotFile (const CapsAlbumFileId *file_id, const void *buffer, u64 buffer_size) |
Save a jpeg image. More... | |
Result | capscSaveAlbumScreenShotFileEx (const CapsAlbumFileId *file_id, u64 version, u64 makernote_offset, u64 makernote_size, const void *buffer, u64 buffer_size) |
Save a jpeg image. More... | |
Result | capscSetOverlayScreenShotThumbnailData (const CapsAlbumFileId *file_id, const void *image, u64 image_size) |
Sets thumbnail data for the last taken screenshot. More... | |
Result | capscSetOverlayMovieThumbnailData (const CapsAlbumFileId *file_id, const void *image, u64 image_size) |
Sets thumbnail data for the last recorded movie. More... | |
Result | capscOpenAlbumMovieReadStream (u64 *stream, const CapsAlbumFileId *file_id) |
Opens an AlbumMovieReadStream. More... | |
Result | capscCloseAlbumMovieStream (u64 stream) |
Closes an AlbumMovieReadStream. More... | |
Result | capscGetAlbumMovieStreamSize (u64 stream, u64 *size) |
Gets the data size of an AlbumMovieReadStream. More... | |
Result | capscReadMovieDataFromAlbumMovieReadStream (u64 stream, u64 offset, void *buffer, size_t size, u64 *actual_size) |
Reads data from an AlbumMovieReadStream. More... | |
Result | capscGetAlbumMovieReadStreamBrokenReason (u64 stream) |
Gets the BrokenReason for an AlbumMovieReadStream. More... | |
Result | capscGetAlbumMovieReadStreamImageDataSize (u64 stream, u64 *size) |
Gets the data size of an Image taken from an AlbumMovieReadStream. More... | |
Result | capscReadImageDataFromAlbumMovieReadStream (u64 stream, u64 offset, void *buffer, size_t size, u64 *actual_size) |
Reads data of an Image taken from an AlbumMovieReadStream. More... | |
Result | capscReadFileAttributeFromAlbumMovieReadStream (u64 stream, CapsScreenShotAttribute *attribute) |
Gets the file attribute of an AlbumMovieReadStream. More... | |
Result | capscOpenAlbumMovieWriteStream (u64 *stream, const CapsAlbumFileId *file_id) |
Opens an AlbumMovieWriteStream. More... | |
Result | capscFinishAlbumMovieWriteStream (u64 stream) |
Finish write to AlbumMovieWriteStream. More... | |
Result | capscCommitAlbumMovieWriteStream (u64 stream) |
Closes a finished AlbumMovieWriteStream. More... | |
Result | capscDiscardAlbumMovieWriteStream (u64 stream) |
Closes an AlbumMovieWriteStream in any state. More... | |
Result | capscDiscardAlbumMovieWriteStreamNoDelete (u64 stream) |
Closes an AlbumMovieWriteStream in any state without deleting the temporary file. More... | |
Result | capscCommitAlbumMovieWriteStreamEx (u64 stream, CapsAlbumEntry *entry) |
Closes a finished AlbumMovieWriteStream. More... | |
Result | capscStartAlbumMovieWriteStreamDataSection (u64 stream) |
Start AlbumMovieWriteStream data section. More... | |
Result | capscEndAlbumMovieWriteStreamDataSection (u64 stream) |
End AlbumMovieWriteStream data section. More... | |
Result | capscStartAlbumMovieWriteStreamMetaSection (u64 stream) |
Start AlbumMovieWriteStream meta section. More... | |
Result | capscEndAlbumMovieWriteStreamMetaSection (u64 stream) |
End AlbumMovieWriteStream meta section. More... | |
Result | capscReadDataFromAlbumMovieWriteStream (u64 stream, u64 offset, void *buffer, u64 size, u64 *actual_size) |
Reads data from an AlbumMovieWriteStream. More... | |
Result | capscWriteDataToAlbumMovieWriteStream (u64 stream, u64 offset, const void *buffer, u64 size) |
Write data to an AlbumMovieWriteStream. More... | |
Result | capscWriteMetaToAlbumMovieWriteStream (u64 stream, u64 offset, const void *buffer, u64 size) |
Write meta data to an AlbumMovieWriteStream. More... | |
Result | capscGetAlbumMovieWriteStreamBrokenReason (u64 stream) |
Gets the BrokenReason for an AlbumMovieWriteStream. More... | |
Result | capscGetAlbumMovieWriteStreamDataSize (u64 stream, u64 *size) |
Gets the data size of an AlbumMovieWriteStream. More... | |
Result | capscSetAlbumMovieWriteStreamDataSize (u64 stream, u64 size) |
Sets the data size of an AlbumMovieWriteStream. More... | |
Album Control (caps:c) service IPC wrapper.
Checks whether an ApplicationId is registered.
[in] | application_id | ApplicationId. |
Closes an AlbumMovieReadStream.
[in] | stream | Stream handle. |
Closes a finished AlbumMovieWriteStream.
[in] | stream | Stream handle. |
Result capscCommitAlbumMovieWriteStreamEx | ( | u64 | stream, |
CapsAlbumEntry * | entry | ||
) |
Closes a finished AlbumMovieWriteStream.
[in] | stream | Stream handle. |
[out] | entry | CapsAlbumEntry |
Closes an AlbumMovieWriteStream in any state.
[in] | stream | Stream handle. |
Closes an AlbumMovieWriteStream in any state without deleting the temporary file.
[in] | stream | Stream handle. |
End AlbumMovieWriteStream data section.
[in] | stream | Stream handle. |
End AlbumMovieWriteStream meta section.
[in] | stream | Stream handle. |
Finish write to AlbumMovieWriteStream.
[in] | stream | Stream handle. |
Result capscGenerateApplicationAlbumEntry | ( | CapsApplicationAlbumEntry * | appEntry, |
const CapsAlbumEntry * | entry, | ||
u64 | application_id | ||
) |
Generate an ApplicationAlbumEntry based on parameters.
[out] | appEntry | CapsApplicationAlbumEntry |
[in] | entry | CapsAlbumEntry |
[in] | application_id | ApplicationId. |
Result capscGenerateCurrentAlbumFileId | ( | const CapsApplicationId * | application_id, |
CapsAlbumFileContents | contents, | ||
CapsAlbumFileId * | file_id | ||
) |
Generate an AlbumFileId based on parameters and current time.
[in] | application_id | ApplicationId. |
[in] | contents | CapsAlbumFileContents |
[out] | file_id | CapsAlbumFileId |
Gets the BrokenReason for an AlbumMovieReadStream.
[in] | stream | Stream handle. |
Gets the data size of an Image taken from an AlbumMovieReadStream.
[in] | stream | Stream handle. |
[out] | size | Expected size of an Image. |
Gets the data size of an AlbumMovieReadStream.
[in] | stream | Stream handle. |
[out] | size | Size of the actual MP4, without the JPEG at the end. |
Gets the BrokenReason for an AlbumMovieWriteStream.
[in] | stream | Stream handle. |
Gets the data size of an AlbumMovieWriteStream.
[in] | stream | Stream handle. |
[out] | size | Size of the data section. |
Result capscGetApplicationIdFromAruid | ( | CapsApplicationId * | application_id, |
u64 | aruid | ||
) |
Get an ApplicationId that corresponds to an AppletResourceUserId.
[out] | application_id | ApplicationId. |
[in] | appletResourceUserId | AppletResourceUserId. |
Result capscNotifyAlbumStorageIsAvailable | ( | CapsAlbumStorage | storage | ) |
Notify the service that a storage is now available.
[in] | storage | CapsAlbumStorage |
Result capscNotifyAlbumStorageIsUnAvailable | ( | CapsAlbumStorage | storage | ) |
Notify the service that a storage is now unavailable.
[in] | storage | CapsAlbumStorage |
Result capscOpenAlbumMovieReadStream | ( | u64 * | stream, |
const CapsAlbumFileId * | file_id | ||
) |
Opens an AlbumMovieReadStream.
[out] | stream | Stream handle. |
[in] | entry | CapsAlbumFileId |
Result capscOpenAlbumMovieWriteStream | ( | u64 * | stream, |
const CapsAlbumFileId * | file_id | ||
) |
Opens an AlbumMovieWriteStream.
[out] | stream | Stream handle. |
[in] | entry | CapsAlbumFileId |
Result capscReadDataFromAlbumMovieWriteStream | ( | u64 | stream, |
u64 | offset, | ||
void * | buffer, | ||
u64 | size, | ||
u64 * | actual_size | ||
) |
Reads data from an AlbumMovieWriteStream.
[in] | stream | Stream handle. |
[in] | offset | Offset. |
[out] | buffer | Output data buffer. |
[in] | size | Data buffer size. |
[out] | actual_size | Actual read size. |
Result capscReadFileAttributeFromAlbumMovieReadStream | ( | u64 | stream, |
CapsScreenShotAttribute * | attribute | ||
) |
Gets the file attribute of an AlbumMovieReadStream.
[in] | stream | Stream handle. |
[out] | attr | CapsScreenShotAttribute |
Result capscReadImageDataFromAlbumMovieReadStream | ( | u64 | stream, |
u64 | offset, | ||
void * | buffer, | ||
size_t | size, | ||
u64 * | actual_size | ||
) |
Reads data of an Image taken from an AlbumMovieReadStream.
[in] | stream | Stream handle. |
[in] | offset | Offset. |
[out] | buffer | Output data buffer. |
[in] | size | Data buffer size. |
[out] | actual_size | Actual read size. |
Result capscReadMovieDataFromAlbumMovieReadStream | ( | u64 | stream, |
u64 | offset, | ||
void * | buffer, | ||
size_t | size, | ||
u64 * | actual_size | ||
) |
Reads data from an AlbumMovieReadStream.
[in] | stream | Stream handle. |
[in] | offset | Offset. |
[out] | Output | data buffer. |
[in] | size | Data buffer size. |
[out] | actual_size | Actual read size. |
Result capscRegisterAppletResourceUserId | ( | u64 | appletResourceUserId, |
const CapsApplicationId * | application_id | ||
) |
Register an applet for later usage.
[in] | appletResourceUserId | AppletResourceUserId. |
[in] | application_id | ApplicationId. |
Result capscSaveAlbumScreenShotFile | ( | const CapsAlbumFileId * | file_id, |
const void * | buffer, | ||
u64 | buffer_size | ||
) |
Save a jpeg image.
[in] | file_id | CapsAlbumFileId |
[in] | buffer | JPEG image buffer. |
[in] | buffer_size | Size of the JPEG image. |
Result capscSaveAlbumScreenShotFileEx | ( | const CapsAlbumFileId * | file_id, |
u64 | version, | ||
u64 | makernote_offset, | ||
u64 | makernote_size, | ||
const void * | buffer, | ||
u64 | buffer_size | ||
) |
Save a jpeg image.
[in] | file_id | CapsAlbumFileId |
[in] | version | Revision number. |
[in] | makernote_offset | Offset to makernote in JPEG buffer. |
[in] | makernote_size | Size of the makernote in JPEG buffer. |
[in] | buffer | JPEG image buffer. |
[in] | buffer_size | Size of the JPEG image. |
Sets the data size of an AlbumMovieWriteStream.
[in] | stream | Stream handle. |
[out] | size | Size of the data section. |
Result capscSetOverlayMovieThumbnailData | ( | const CapsAlbumFileId * | file_id, |
const void * | image, | ||
u64 | image_size | ||
) |
Sets thumbnail data for the last recorded movie.
[in] | file_id | CapsAlbumFileId |
[in] | image | RGBA8 image buffer. |
[in] | image_size | size of the RGBA8 image buffer. |
Result capscSetOverlayScreenShotThumbnailData | ( | const CapsAlbumFileId * | file_id, |
const void * | image, | ||
u64 | image_size | ||
) |
Sets thumbnail data for the last taken screenshot.
[in] | file_id | CapsAlbumFileId |
[in] | image | RGBA8 image buffer. |
[in] | image_size | size of the RGBA8 image buffer. |
Start AlbumMovieWriteStream data section.
[in] | stream | Stream handle. |
Start AlbumMovieWriteStream meta section.
[in] | stream | Stream handle. |
Result capscUnregisterAppletResourceUserId | ( | u64 | appletResourceUserId, |
const CapsApplicationId * | application_id | ||
) |
Unregister an applet.
[in] | appletResourceUserId | AppletResourceUserId. |
[in] | application_id | ApplicationId. |
Result capscWriteDataToAlbumMovieWriteStream | ( | u64 | stream, |
u64 | offset, | ||
const void * | buffer, | ||
u64 | size | ||
) |
Write data to an AlbumMovieWriteStream.
[in] | stream | Stream handle. |
[in] | offset | Offset. |
[in] | buffer | Input data buffer. |
[in] | size | Data buffer size. |