9 #include "../sf/service.h"
12 #define CAPSSC_JPEG_BUFFER_SIZE 0x80000
Result capsscOpenRawScreenShotReadStream(u64 *out_size, u64 *out_width, u64 *out_height, ViLayerStack layer_stack, s64 timeout)
This takes a raw screenshot, with the screenshot being held until capsscCloseRawScreenShotReadStream ...
Service * capsscGetServiceSession(void)
Gets the Service for caps:sc.
Result capsscCloseRawScreenShotReadStream(void)
Discards a stream opened by capsscOpenRawScreenShotReadStream.
Result capsscReadRawScreenShotReadStream(u64 *bytes_read, void *buf, size_t size, u64 offset)
Reads from a stream opened by capsscOpenRawScreenShotReadStream.
Result capsscCaptureJpegScreenShot(u64 *out_jpeg_size, void *jpeg_buf, size_t jpeg_buf_size, ViLayerStack layer_stack, s64 timeout)
This takes a screenshot, with the screenshot being written as jpeg into the output buffer.
Result capsscCaptureRawImageWithTimeout(void *buf, size_t size, ViLayerStack layer_stack, u64 width, u64 height, s64 buffer_count, s64 buffer_index, s64 timeout)
This takes a screenshot, with the screenshot being written into the output buffer.
void capsscExit(void)
Exit caps:sc.
Result capsscInitialize(void)
Initialize caps:sc. Only available on [2.0.0+].
Service object structure.
Definition: service.h:14
int64_t s64
64-bit signed integer.
Definition: types.h:28
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
u32 Result
Function error code result type.
Definition: types.h:44
Display (vi:*) service IPC wrapper.
ViLayerStack
Used as argument to many capture functions.
Definition: vi.h:61