The current code for the dll outputs a 24 bpp for the snapshot function. I also wanted to make it show a 16 bpp form of it but I dont know how to convert the variable color (unsigned short) into the form. I already have the header all setup. I tried this:
line[j*2+1]= color & 0xff;
line[j*2+0]= (color >> 8) & 0xff;
since the variable is already in 16 bits but it juss came out as the regular picture but with different colors. Can anyone help me? Thanxs!
My bad, I thought moves were in 16bpp but they are in 24bpp and the orig snapshots in are in 16bpp not 24. :P And I got the code working too.
// 24 bpp mode
header[0x1c]=0x18; // bpp mode
line[j*3+2]= ((unsigned char *) psxVuw)[i * 2048 + j * 3];
line[j*3+1]= ((unsigned char *) psxVuw)[i * 2048 + j * 3 + 1];
line[j*3+0]= ((unsigned char *) psxVuw)[i * 2048 + j * 3 + 2];
* The above code snippet is thanks to me and Pixel's hard work ^_^ *
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.