Added struct AlbumFileEntry, which grcMovieMakerFinish now uses. Updated CapsApplicationAlbumEntry.

This commit is contained in:
yellows8 2019-08-28 22:56:20 -04:00
parent b269f58f8f
commit 6d7d96a751
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
3 changed files with 10 additions and 5 deletions

View File

@ -39,9 +39,14 @@ typedef struct {
CapsAlbumEntryId id; CapsAlbumEntryId id;
} CapsAlbumEntry; } CapsAlbumEntry;
/// ApplicationAlbumEntry /// AlbumFileEntry
typedef struct { typedef struct {
u8 unk_x0[0x20]; u8 unk_x0[0x20];
} AlbumFileEntry;
/// ApplicationAlbumEntry
typedef struct {
u8 data[0x20];
} CapsApplicationAlbumEntry; } CapsApplicationAlbumEntry;
/// ImageOrientation /// ImageOrientation

View File

@ -144,9 +144,9 @@ Result grcMovieMakerAbort(GrcMovieMaker *m);
* @param[in] appdata_size Size of the UserData input buffer. Optional, can be 0. Must be <=0x400. * @param[in] appdata_size Size of the UserData input buffer. Optional, can be 0. Must be <=0x400.
* @param[in] thumbnail RGBA8 image buffer containing the thumbnail. Optional, can be NULL. * @param[in] thumbnail RGBA8 image buffer containing the thumbnail. Optional, can be NULL.
* @param[in] thumbnail_size Size of the thumbnail buffer. Optional, can be 0. * @param[in] thumbnail_size Size of the thumbnail buffer. Optional, can be 0.
* @param[out] entry Output \ref CapsApplicationAlbumEntry for the recorded video. Optional, can be NULL. Only available on [7.0.0+], if this is not NULL on pre-7.0.0 an error is thrown. * @param[out] entry Output \ref AlbumFileEntry for the recorded video. Optional, can be NULL. Only available on [7.0.0+], if this is not NULL on pre-7.0.0 an error is thrown.
*/ */
Result grcMovieMakerFinish(GrcMovieMaker *m, s32 width, s32 height, const void* appdata, size_t appdata_size, const void* thumbnail, size_t thumbnail_size, CapsApplicationAlbumEntry *entry); Result grcMovieMakerFinish(GrcMovieMaker *m, s32 width, s32 height, const void* appdata, size_t appdata_size, const void* thumbnail, size_t thumbnail_size, AlbumFileEntry *entry);
/** /**
* @brief Gets the recording error with the specified MovieMaker. * @brief Gets the recording error with the specified MovieMaker.

View File

@ -666,7 +666,7 @@ static Result _grcMovieMakerCompleteOffscreenRecordingFinishEx1(GrcMovieMaker *m
return rc; return rc;
} }
Result grcMovieMakerFinish(GrcMovieMaker *m, s32 width, s32 height, const void* buffer0, size_t size0, const void* buffer1, size_t size1, CapsApplicationAlbumEntry *entry) { Result grcMovieMakerFinish(GrcMovieMaker *m, s32 width, s32 height, const void* buffer0, size_t size0, const void* buffer1, size_t size1, AlbumFileEntry *entry) {
Result rc=0; Result rc=0;
if (!serviceIsActive(&m->s)) if (!serviceIsActive(&m->s))
@ -679,7 +679,7 @@ Result grcMovieMakerFinish(GrcMovieMaker *m, s32 width, s32 height, const void*
if (R_SUCCEEDED(rc)) rc = eventWait(&m->recording_event, U64_MAX); if (R_SUCCEEDED(rc)) rc = eventWait(&m->recording_event, U64_MAX);
if (hosversionAtLeast(7,0,0)) if (hosversionAtLeast(7,0,0))
rc = _grcMovieMakerCompleteOffscreenRecordingFinishEx1(m, width, height, buffer0, size0, buffer1, size1, entry); rc = _grcMovieMakerCompleteOffscreenRecordingFinishEx1(m, width, height, buffer0, size0, buffer1, size1, (CapsApplicationAlbumEntry*)entry);
else else
rc = _grcMovieMakerCompleteOffscreenRecordingFinishEx0(m, width, height, buffer0, size0, buffer1, size1); rc = _grcMovieMakerCompleteOffscreenRecordingFinishEx0(m, width, height, buffer0, size0, buffer1, size1);