![]() |
libElysianVMU 1.6.0
Full-featured, accurate, cross-platform library emulating the Dreamcast's Visual Memory Unit
|
#include <evmu_vms.h>
Data Fields | |
char | vmuDesc [16] |
char | dcDesc [32] |
char | creatorApp [16] |
uint16_t | iconCount |
uint16_t | animSpeed |
uint16_t | eyecatchType |
uint16_t | crc |
uint32_t | dataBytes |
char | reserved [20] |
uint16_t | palette [16] |
Related Symbols | |
(Note that these are not member symbols.) | |
Read Accessors | |
Reading/calculating fields | |
GblBool | EvmuVms_isValid (const EvmuVms *pSelf) |
size_t | EvmuVms_headerBytes (const EvmuVms *pSelf) |
size_t | EvmuVms_totalBytes (const EvmuVms *pSelf) |
uint16_t | EvmuVms_computeCrc (const EvmuVms *pSelf) |
const void * | EvmuVms_icon (const EvmuVms *pSelf, size_t index) |
const void * | EvmuVms_eyecatch (const EvmuVms *pSelf) |
const char * | EvmuVms_vmuDescription (const EvmuVms *pSelf, GblStringBuffer *pBuffer) |
const char * | EvmuVms_dcDescription (const EvmuVms *pSelf, GblStringBuffer *pBuffer) |
const char * | EvmuVms_creatorApp (const EvmuVms *pSelf, GblStringBuffer *pBuffer) |
const char * | EvmuVms_eyecatchTypeStr (const EvmuVms *pSelf) |
EVMU_FILE_TYPE | EvmuVms_guessFileType (const EvmuVms *pSelf) |
Write Accessors | |
Writing to fields | |
size_t | EvmuVms_setVmuDescription (EvmuVms *pSelf, const char *pStr) |
size_t | EvmuVms_setDcDescription (EvmuVms *pSelf, const char *pStr) |
size_t | EvmuVms_setCreatorApp (EvmuVms *pSelf, const char *pStr) |
Utilities | |
Miscellaneous methods | |
void | EvmuVms_log (const EvmuVms *pSelf) |
GblRingList * | EvmuVms_createIconsArgb4444 (const EvmuVms *pSelf) |
GblByteArray * | EvmuVms_createEyecatchArgb4444 (const EvmuVms *pSelf) |
const char * | EvmuVms_findVmiPath (const char *pPath, GblStringBuffer *pBuffer) |
Structure of the .VMS file header.
EvmuVms offers a struct and object-oriented API around the .VMS file format. This strucure only represents the header; however, the API expects that there is additional data beyond this header.
Definition at line 107 of file evmu_vms.h.
|
related |
Computes the expected CRC for the entire VMS file.
|
related |
Creates a GblByteArray containing an ARG444 encoded bitmap for the eyecatch.
|
related |
Creates a GblRingList of GblByteArray instances containing ARGB444-encoded bitmaps for each icon.
|
related |
Copies EvmuVms::creatorApp to the given buffer.
|
related |
Copies EvmuVms::dcDesc to the given buffer.
|
related |
Returns a pointer to the raw eyecatch image data.
|
related |
Returns a string representation of the EvmuVms::eyecatchType.
|
related |
Tries to find a valid path for the VMI file corresponding to the given VMS file, returning the path or NULL if not found.
|
related |
Attempts to autodetect the type of file represented by the VMS, usually for when no VMI is present.
|
related |
Returns the number of bytes of the VMS header, including graphics.
|
related |
Returns a pointer to the raw icon image data for the given index
.
Determine whether the given VMS header appears sane based on expected field values.
|
related |
Logs the properties of the VMS file to the libGimbal log system.
|
related |
Sets the EvmuVms::creatorApp field to the given string, returning the number of bytes copied.
|
related |
Sets the EvmuVms::dcDesc field to the given string, returning the number of bytes copied.
|
related |
Sets the EvmuVms::vmuDesc field to the given string, returning the number of bytes copied.
|
related |
Retruns the total calculated size of the VMS file, including header, icons, and eyecatch.
|
related |
Copies EvmuVms::vmuDesc to the given buffer.
uint16_t EvmuVms::animSpeed |
Number of frames to wait before advancing icon animation.
Definition at line 112 of file evmu_vms.h.
uint16_t EvmuVms::crc |
CRC for whole file.
Definition at line 114 of file evmu_vms.h.
char EvmuVms::creatorApp[16] |
App used to create VMS file.
Definition at line 110 of file evmu_vms.h.
uint32_t EvmuVms::dataBytes |
Size of actual file data, without header, icons, and eyecatch (ignored for GAME files)
Definition at line 115 of file evmu_vms.h.
char EvmuVms::dcDesc[32] |
File description in DC BIOS.
Definition at line 109 of file evmu_vms.h.
uint16_t EvmuVms::eyecatchType |
Type of eyecatch graphic.
Definition at line 113 of file evmu_vms.h.
uint16_t EvmuVms::iconCount |
Number of icons in animation.
Definition at line 111 of file evmu_vms.h.
uint16_t EvmuVms::palette[16] |
Palette color entries.
Definition at line 117 of file evmu_vms.h.
char EvmuVms::reserved[20] |
char EvmuVms::vmuDesc[16] |
File description in VMU BIOS.
Definition at line 108 of file evmu_vms.h.