This is easy to do yourself if you're able to write some code. There are two parts:
1) Create a RGB565 rectangular PVR
2) Create a VMI / VMS pair with PVR file (with GBIX header) embedded in the VMS
Creating the PVR is super easy. Here is some C code I put together. You just need to feed it an array of RGB888 data (8-bits per pixel)
Code:
/* Simple RGB888 -> PVR RGB565 (RECTANGLE) | <BR> 2019 */
enum ImgDimension {
DIM_16X16 = 0x10,
DIM_32X32 = 0x20,
DIM_64X64 = 0x40,
DIM_128X128 = 0x80
};
void RGB888ToRGB565(enum ImgDimension eImgDimension, uint8_t *pRGB888, uint8_t **pRGB565, int *nRGB565Size) {
uint8_t GBIX_HEADER[] = {'G', 'B', 'I', 'X', 0x08, 0x00, 0x00, 0x00, 0x9A, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
uint8_t PVRT_HEADER[] = {'P', 'V', 'R', 'T', 0x00, 0x00, 0x00, 0x00, 0x01, 0x09, 0x00, 0x00, eImgDimension, 0x00, eImgDimension, 0x00};
uint32_t nHdrSz = (sizeof(GBIX_HEADER) + sizeof(PVRT_HEADER));
uint32_t nImgSz = (2 * (eImgDimension * eImgDimension));
uint32_t nTmpSz = (nHdrSz + nImgSz);
uint8_t *pTmp = malloc(nTmpSz);
uint8_t *p = pTmp;
int i;
// set the size of the image data
PVRT_HEADER[4] = (nImgSz & 0xFF);
PVRT_HEADER[5] = ((nImgSz >> 0x08) & 0xFF);
PVRT_HEADER[6] = ((nImgSz >> 0x10) & 0xFF);
PVRT_HEADER[7] = ((nImgSz >> 0x18) & 0xFF);
// copy the GBIX header
memmove(p, GBIX_HEADER, sizeof(GBIX_HEADER));
p += sizeof(GBIX_HEADER);
// copy the PVRT header
memmove(p, PVRT_HEADER, sizeof(PVRT_HEADER));
p += sizeof(PVRT_HEADER);
// do the conversion
for(i = 0; i < (eImgDimension * eImgDimension); i++) {
uint16_t nR = (((*pRGB888++ >> 3) & 0x1F) << 11);
uint16_t nG = (((*pRGB888++ >> 2) & 0x3F) << 5);
uint16_t nB = ((*pRGB888++ >> 3) & 0x1F);
uint16_t nRGB565 = (nR | nG | nB);
*p++ = (nRGB565 & 0xFF);
*p++ = ((nRGB565 >> 8) & 0xFF);
}
*nRGB565Size = nTmpSz;
*pRGB565 = pTmp;
}
The PVR created above can then be swapped out with the PVR data from a VMS that's already a BG replacement file. Be sure to recalculate the checksum and pad accordingly to 512 bytes so the block sizes are correct.