gs

Family of src/nx/nn/hooks.hook. The hooks_off setting turns a family off by its name.

nn::gs's image reads of the Ounce's SDK (gs.c): a video image's rectangle into the caller's buffers, which a movie player calls for every picture. The rectangle's four 16-bit numbers come on the stack: the handler reads them there

nn::gs::sdk::ReadUserImageNv12(void*, unsigned long, unsigned long, void*, unsigned long, unsigned long, nn::gsv::CpuUserImageDescriptor const&, void const*, unsigned short, unsigned short, unsigned short, unsigned short) source

_ZN2nn2gs3sdk17ReadUserImageNv12EPvmmS2_mmRKNS_3gsv22CpuUserImageDescriptorEPKvtttt
As C: u32 (addr dst_y, u64 size_y, u64 pitch_y, addr dst_uv, u64 size_uv, u64 pitch_uv, addr descriptor, addr src)
Handler: gs_read_user_image_nv12 (gs.c)


Made from ScarletNX's Sail at 166ad3910f80. The hooks' and the SVCs' declarations and their handlers are ScarletNX's (GPL-3.0-or-later); the SVCs' declarations are Eden's, as hos.svc says.