9 #include "../kernel/event.h"
10 #include "../sf/service.h"
25 u32 igbp_binder_obj_id;
31 ViServiceType_Default = -1,
32 ViServiceType_Application = 0,
33 ViServiceType_System = 1,
34 ViServiceType_Manager = 2,
39 ViLayerFlags_Default = 0x1,
44 ViScalingMode_None = 0x0,
45 ViScalingMode_FitToLayer = 0x2,
46 ViScalingMode_PreserveAspectRatio = 0x4,
48 ViScalingMode_Default = ViScalingMode_FitToLayer,
74 typedef u32 ViColorRgba8888;
76 Result viInitialize(ViServiceType service_type);
79 Service* viGetSession_IApplicationDisplayService(
void);
80 Service* viGetSession_IHOSBinderDriverRelay(
void);
81 Service* viGetSession_ISystemDisplayService(
void);
82 Service* viGetSession_IManagerDisplayService(
void);
83 Service* viGetSession_IHOSBinderDriverIndirect(
void);
86 Result viSetContentVisibility(
bool v);
95 return viOpenDisplay(
"Default", display);
122 Result viGetIndirectLayerImageMap(
void* buffer,
size_t size,
s32 width,
s32 height,
u64 IndirectLayerConsumerHandle,
u64 *out_size,
u64 *out_stride);
123 Result viGetIndirectLayerImageRequiredMemoryInfo(
s32 width,
s32 height,
u64 *out_size,
u64 *out_alignment);
129 Result viManagerDrawFatalText32(
s32 *out_advance,
s32 x,
s32 y,
const u32 *utf32_codepoints,
size_t num_codepoints,
float scale_x,
float scale_y,
PlSharedFontType font_type, ViColorRgba8888 bg_color, ViColorRgba8888 fg_color,
s32 initial_advance);
pl:u service IPC wrapper.
PlSharedFontType
SharedFontType.
Definition: pl.h:17
Kernel-mode event structure.
Definition: event.h:13
Service object structure.
Definition: service.h:14
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
uint16_t u16
16-bit unsigned integer.
Definition: types.h:20
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21
Result viManagerPrepareFatal(void)
[16.0.0+]
ViLayerFlags
Used by viCreateLayer when CreateStrayLayer is used internally.
Definition: vi.h:38
ViScalingMode
Used with viSetLayerScalingMode.
Definition: vi.h:43
Result viManagerShowFatal(void)
[16.0.0+]
Result viSetDisplayMagnification(ViDisplay *display, s32 x, s32 y, s32 width, s32 height)
Only available on [3.0.0+].
u16 ViColorRgba4444
Used as argument for certain drawing commands.
Definition: vi.h:73
Result viManagerDrawFatalText32(s32 *out_advance, s32 x, s32 y, const u32 *utf32_codepoints, size_t num_codepoints, float scale_x, float scale_y, PlSharedFontType font_type, ViColorRgba8888 bg_color, ViColorRgba8888 fg_color, s32 initial_advance)
[16.0.0+]
ViLayerStack
Used as argument to many capture functions.
Definition: vi.h:61
@ ViLayerStack_Recording
Includes only layers for recording videos.
Definition: vi.h:65
@ ViLayerStack_Default
Default layer stack, includes all layers.
Definition: vi.h:62
@ ViLayerStack_Lcd
Includes only layers for the LCD.
Definition: vi.h:63
@ ViLayerStack_Screenshot
Includes only layers for user screenshots.
Definition: vi.h:64
@ ViLayerStack_Arbitrary
Captures some arbitrary layer. This is normally only for am.
Definition: vi.h:67
@ ViLayerStack_Null
Layer stack for the empty display.
Definition: vi.h:69
@ ViLayerStack_ApplicationForDebug
Captures layers for the current application. This is normally used by creport/debugging tools.
Definition: vi.h:68
@ ViLayerStack_LastFrame
Includes only layers for the last applet-transition frame.
Definition: vi.h:66
ViPowerState
Used with viSetDisplayPowerState.
Definition: vi.h:52
@ ViPowerState_On_Deprecated
[1.0.0 - 2.3.0] Screen is on.
Definition: vi.h:57
@ ViPowerState_Off
Screen is off.
Definition: vi.h:53
@ ViPowerState_On
[3.0.0+] Screen is on.
Definition: vi.h:55
@ ViPowerState_NotScanning
[3.0.0+] Screen is on, but not scanning content.
Definition: vi.h:54
Result viManagerDrawFatalRectangle(s32 x, s32 y, s32 end_x, s32 end_y, ViColorRgba4444 color)
[16.0.0+]