libnx  v4.6.0
Data Structures | Functions
miiimg.h File Reference

Mii image (miiimg) service IPC wrapper. More...

#include "../types.h"
#include "../sf/service.h"
#include "../services/mii.h"

Go to the source code of this file.

Data Structures

struct  MiiimgImageId
 Image ID. More...
 
struct  MiiimgImageAttribute
 Image attribute. More...
 

Functions

Result miiimgInitialize (void)
 Initialize miiimg.
 
void miiimgExit (void)
 Exit miiimg.
 
ServicemiiimgGetServiceSession (void)
 Gets the Service object for the actual miiimg service session.
 
Result miiimgReload (void)
 Reloads the image database.
 
Result miiimgGetCount (s32 *out_count)
 Gets the number of mii images in the database. More...
 
Result miiimgIsEmpty (bool *out_empty)
 Gets whether the image database is empty. More...
 
Result miiimgIsFull (bool *out_full)
 Gets whether the image database is full. More...
 
Result miiimgGetAttribute (s32 index, MiiimgImageAttribute *out_attr)
 Gets the image attribute for the specified image index. More...
 
Result miiimgLoadImage (MiiimgImageId id, void *out_image, size_t out_image_size)
 Loads the image data (raw RGBA8) for the specified image ID. More...
 

Detailed Description

Mii image (miiimg) service IPC wrapper.

Author
XorTroll

Function Documentation

◆ miiimgGetAttribute()

Result miiimgGetAttribute ( s32  index,
MiiimgImageAttribute out_attr 
)

Gets the image attribute for the specified image index.

Parameters
[in]indexImage index.
[out]out_attrOut image attribute.

◆ miiimgGetCount()

Result miiimgGetCount ( s32 out_count)

Gets the number of mii images in the database.

Parameters
[out]out_countMii image count.

◆ miiimgIsEmpty()

Result miiimgIsEmpty ( bool *  out_empty)

Gets whether the image database is empty.

Parameters
[out]out_emptyWhether the database is empty.

◆ miiimgIsFull()

Result miiimgIsFull ( bool *  out_full)

Gets whether the image database is full.

Parameters
[out]out_emptyWhether the database is full.

◆ miiimgLoadImage()

Result miiimgLoadImage ( MiiimgImageId  id,
void *  out_image,
size_t  out_image_size 
)

Loads the image data (raw RGBA8) for the specified image ID.

Note
Server doesn't seem to check the image buffer size, but 0x40000 is the optimal size.
Parameters
[in]idInput image ID.
[out]out_imageOut iamge buffer.
[in]out_image_sizeOut image buffer size.