MVDSTD:CalculateImageSize

From 3dbrew
Revision as of 01:03, 27 April 2016 by Yellows8 (talk | contribs) (Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x000400C0] |- | 1 | u32 type |- | 2 | u32 width |- | 3 | u32 height |} =Respo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request[edit]

Index Word Description
0 Header code [0x000400C0]
1 u32 type
2 u32 width
3 u32 height

Response[edit]

Index Word Description
0 Header code
1 Resultcode
2 u32 output size.

Types[edit]

Value Pixel_size
2 or 6 2
0x1006 4

If any other input value is used that's not listed above, MVD-sysmodule will run svcBreak.

Description[edit]

This calculates the byte-size of an image buffer. Size = width*height*pixel_size(due to this the input width and height are interchangeable). See above for pixel_size. If the input width is higher than 1920, 1920 is used internally instead(likewise for height).