Line 343: |
Line 343: |
| === OpenAlbumMovieReadStream === | | === OpenAlbumMovieReadStream === |
| Takes a PID, an input [[#ApplicationAlbumFileEntry]], an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], and returns an output u64 [[#AlbumMovieReadStreamHandle]]. | | Takes a PID, an input [[#ApplicationAlbumFileEntry]], an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], and returns an output u64 [[#AlbumMovieReadStreamHandle]]. |
| + | |
| + | Up to 4 streams can be open at the same time. Multiple streams can be open at the same time for the same [[#ApplicationAlbumFileEntry]]. |
| | | |
| === CloseAlbumMovieReadStream === | | === CloseAlbumMovieReadStream === |
Line 349: |
Line 351: |
| === GetAlbumMovieReadStreamMovieDataSize === | | === GetAlbumMovieReadStreamMovieDataSize === |
| Takes an input u64 [[#AlbumMovieReadStreamHandle]], returns an output u64. | | Takes an input u64 [[#AlbumMovieReadStreamHandle]], returns an output u64. |
| + | |
| + | This gets the size of the actual MP4, without the JPEG at the end. |
| | | |
| === ReadMovieDataFromAlbumMovieReadStream === | | === ReadMovieDataFromAlbumMovieReadStream === |
− | Takes a type-0x6 output buffer, an input u64 [[#AlbumMovieReadStreamHandle]], an input s64, and returns an output u64. | + | Takes a type-0x6 output buffer, an input u64 [[#AlbumMovieReadStreamHandle]], an input s64 offset, and returns an output u64 actual_size. |
| + | |
| + | offset(+size) must not be negative. offset and size must be aligned to 0x40000-bytes. When offset(+size) goes beyond the size from [[#GetAlbumMovieReadStreamMovieDataSize]], the regions of the buffer which goes beyond that are cleared to 0, and actual_size is still set to the input size. |
| | | |
| === GetAlbumMovieReadStreamBrokenReason === | | === GetAlbumMovieReadStreamBrokenReason === |