Display services: Difference between revisions
No edit summary |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 1 || [[# | | 1 || [[#CaptureRawImageRgba32IntoArray]] | ||
|- | |- | ||
| 2 || [[# | | 2 || [[#CaptureRawImageRgba32IntoArrayWithTimeout]] | ||
|- | |- | ||
| 3 || [5.0.0+] [[# | | 3 || [5.0.0+] [[#AttachSharedBufferToCaptureModule]] | ||
|- | |- | ||
| 5 || [5.0.0+] [[#CaptureRawImageToAttachedSharedBuffer]] | | 5 || [5.0.0+] [[#CaptureRawImageToAttachedSharedBuffer]] | ||
|- | |- | ||
| 210 || [6.0.0+] | | 210 || [6.0.0+] [[#SaveScreenShotEx2ViaAm]] | ||
|- | |- | ||
| 1001 || [2.0.0-4.1.0] [[#RequestTakingScreenShot]] | | 1001 || [2.0.0-4.1.0] [[#RequestTakingScreenShot]] | ||
Line 40: | Line 40: | ||
| 1101 || [4.0.0+] [[#SetupOverlayMovieThumbnail]] | | 1101 || [4.0.0+] [[#SetupOverlayMovieThumbnail]] | ||
|- | |- | ||
| 1106 || [4.0.0+] | | 1106 || [4.0.0+] [[#CreateProtoMovieMetaDataNv12Ex2]] | ||
|- | |- | ||
| 1107 || [4.0.0+] | | 1107 || [4.0.0+] [[#CreateProtoMovieMetaDataRgbaEx2]] | ||
|- | |- | ||
| 1108 || [18.0.0+] | | 1108 || [18.0.0+] | ||
Line 64: | Line 64: | ||
| 1203 || [3.0.0+] [[#ReadRawScreenShotReadStream]] | | 1203 || [3.0.0+] [[#ReadRawScreenShotReadStream]] | ||
|- | |- | ||
| 1204 || [9.0.0+] | | 1204 || [9.0.0+] [[#CaptureCrashScreenShot]] | ||
|- | |||
| 9000 || [20.0.0+] | |||
|} | |} | ||
The only caps:sc commands used by [[GRC_services|GRC]] are: 1101, 1106, and 1107. | The only caps:sc commands used by [[GRC_services|GRC]] are: 1101, 1106, and 1107. | ||
== | == CaptureRawImageRgba32IntoArray == | ||
Takes a type-0x46 output buffer, an input u32 '''layer_stack''', two input u64s '''width'''/'''height''', an input s64 '''buffer_count''', and an input s64 '''buffer_index'''. | Takes a type-0x46 output buffer, an input u32 '''layer_stack''', two input u64s '''width'''/'''height''', an input s64 '''buffer_count''', and an input s64 '''buffer_index'''. | ||
Line 82: | Line 84: | ||
Stubbed with [5.0.0+], where it now returns error 0x7FECE. | Stubbed with [5.0.0+], where it now returns error 0x7FECE. | ||
== | == CaptureRawImageRgba32IntoArrayWithTimeout == | ||
Calls the same internal func as [[# | Calls the same internal func as [[#CaptureRawImageRgba32IntoArray]], where the last param is an additional cmd input u64 instead of hard-coded value 0x5f5e100. | ||
Stubbed with [5.0.0+], where it now returns error 0x7FECE. | Stubbed with [5.0.0+], where it now returns error 0x7FECE. | ||
== | == AttachSharedBufferToCaptureModule == | ||
Takes a total of 8-bytes of input. No output. | Takes a total of 8-bytes of input. No output. | ||
Line 93: | Line 95: | ||
Takes a total of 0x10-bytes of input. No output. | Takes a total of 0x10-bytes of input. No output. | ||
== | == SaveScreenShotEx2ViaAm == | ||
Takes a total of 0x50-bytes of input, a type-0x15 input buffer, and a type-0x45 input buffer, returns a total of 0x20-bytes of output. | Takes a total of 0x50-bytes of input, a type-0x15 input buffer, and a type-0x45 input buffer, returns a total of 0x20-bytes of output. | ||
Line 118: | Line 120: | ||
[11.0.0+] Now takes an additional 8-bytes of input. | [11.0.0+] Now takes an additional 8-bytes of input. | ||
[19.0.0+] Now takes another additional 8-bytes of input. | [19.0.0+] Now takes another additional 8-bytes of input. This takes an input 0x40-byte struct, an u32, an u64, a 0x10-byte struct, two u64s, and two type-0x15 input buffers. | ||
[20.1.0+] Takes an input u32, a 0x40-byte struct, an u32, an u64, a 0x10-byte struct, two u64s, and two type-0x15 input buffers. | |||
== CancelTakingScreenShot == | == CancelTakingScreenShot == | ||
Line 141: | Line 145: | ||
The requirements for the second buffer address/size are the same as the first buffer, except the minimum size is ('''width'''*'''height''')/2. | The requirements for the second buffer address/size are the same as the first buffer, except the minimum size is ('''width'''*'''height''')/2. | ||
== | == CreateProtoMovieMetaDataNv12Ex2 == | ||
Takes a 0x40-byte input struct, two input u64s '''width'''/'''height''', a 0x18-byte input struct, two type-0x15 input buffers, a type-0x6 output buffer, and two type-0x46 output buffers, returns 3 output u64s. | Takes a 0x40-byte input struct, two input u64s '''width'''/'''height''', a 0x18-byte input struct, two type-0x15 input buffers, a type-0x6 output buffer, and two type-0x46 output buffers, returns 3 output u64s. | ||
Line 150: | Line 154: | ||
[5.0.0+] Now takes a total of 0x68-bytes of input instead of 0x30. | [5.0.0+] Now takes a total of 0x68-bytes of input instead of 0x30. | ||
== | [19.0.0+] Now takes an additional 0x10-bytes of input. | ||
== CreateProtoMovieMetaDataRgbaEx2 == | |||
Takes a 0x40-byte input struct, two input u64s '''width'''/'''height''', a 0x18-byte input struct, two type-0x15 input buffers, a type-0x6 output buffer, and a type-0x45 input buffer, returns 3 output u64s. | Takes a 0x40-byte input struct, two input u64s '''width'''/'''height''', a 0x18-byte input struct, two type-0x15 input buffers, a type-0x6 output buffer, and a type-0x45 input buffer, returns 3 output u64s. | ||
Line 158: | Line 164: | ||
[5.0.0+] Now takes a total of 0x68-bytes of input instead of 0x30. | [5.0.0+] Now takes a total of 0x68-bytes of input instead of 0x30. | ||
[19.0.0+] Now takes an additional 0x10-bytes of input. | |||
== Cmd1108 == | |||
Takes a total of 0x70-bytes of input, three type-0x15 input buffers, a type-0x6 output buffer. Returns a total of 0x18-bytes of output. | |||
[19.0.0+] Now takes an additional 0x10-bytes of input. | |||
== OpenRawScreenShotReadStream == | == OpenRawScreenShotReadStream == | ||
Line 174: | Line 187: | ||
Only usable when the previously loaded value from [[Settings_services|set:sys GetDebugModeFlag]] is set. | Only usable when the previously loaded value from [[Settings_services|set:sys GetDebugModeFlag]] is set. | ||
== | == CaptureCrashScreenShot == | ||
Takes a total of 0x10-bytes of input and a type-0x46 output buffer. Returns a total of 8-bytes of output. | Takes a total of 0x10-bytes of input and a type-0x46 output buffer. Returns a total of 8-bytes of output. | ||
Line 196: | Line 209: | ||
| 204 || [3.0.0+] SaveEditedScreenShotEx0 | | 204 || [3.0.0+] SaveEditedScreenShotEx0 | ||
|- | |- | ||
| 206 || [4.0.0+] | | 206 || [4.0.0+] SaveEditedScreenShotEx1 | ||
|- | |- | ||
| 208 || [5.0.0+] SaveScreenShotOfMovieEx1 | | 208 || [5.0.0+] SaveScreenShotOfMovieEx1 | ||
|- | |- | ||
| 1000 || [13.0.0+] | | 1000 || [13.0.0+] [[#RequestTakingScreenShotForApplet]] | ||
|- | |||
| 2000 || [20.0.0+] | |||
|} | |} | ||
== RequestTakingScreenShotForApplet == | |||
Takes a total of 0x68-bytes of input, two type-0x15 input buffers. Returns a total of 0x20-bytes of output. | |||
[19.0.0+] Now takes an additional 8-bytes of input. | |||
= caps:su = | = caps:su = |