Rename u24 to u24_be.

This commit is contained in:
shenweip 2013-10-05 02:52:33 +08:00
parent d8f1ddd6fa
commit 54492732b5
2 changed files with 3 additions and 3 deletions

View File

@ -28,13 +28,13 @@
#endif
#endif
typedef struct u24 {
struct u24_be {
unsigned char value[3];
operator unsigned int(){
return 0x00000000 | (value[0] << 16) | (value[1] << 8) | (value[2] << 0);
}
} u24;
};
#ifdef _WIN32

View File

@ -230,7 +230,7 @@ u32 convertRGBToYCbCr(u32 rgb) {
}
int __JpegDecodeMJpegYCbCr(const void *data, u32 bufferOutputAddr, int width, int height) {
u24 *imageBuffer = (u24*)data;
u24_be *imageBuffer = (u24_be*)data;
int sizeY = width * height;
int sizeCb = sizeY >> 2;
u8 *Y = (u8*)Memory::GetPointer(bufferOutputAddr);