MVDSTD:CalculateImageSize

MVDSTD:CalculateImageSize

Request #

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

Response #

Index WordDescription
0Header code
1Resultcode
2u32 output size.

Types #

ValuePixel_size
2 or 62
0x10064

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

Description #

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).