ColorUtil: Namespace code under the Common namespace

Given this is within Common, it should be in the Common namespace
itself.
This commit is contained in:
Lioncash
2018-05-27 20:55:36 -04:00
parent 686e29f2d3
commit ac474ff1da
5 changed files with 16 additions and 18 deletions

View File

@ -5,7 +5,7 @@
#include "Common/ColorUtil.h"
#include "Common/Swap.h"
namespace ColorUtil
namespace Common
{
static const int s_lut5to8[] = {0x00, 0x08, 0x10, 0x18, 0x20, 0x29, 0x31, 0x39, 0x41, 0x4A, 0x52,
0x5A, 0x62, 0x6A, 0x73, 0x7B, 0x83, 0x8B, 0x94, 0x9C, 0xA4, 0xAC,
@ -70,11 +70,10 @@ void decodeCI8image(u32* dst, const u8* src, const u16* pal, int width, int heig
for (int ix = 0; ix < 8; ix++)
{
// huh, this seems wrong. CI8, not 5A3, no?
tdst[ix] = ColorUtil::Decode5A3(Common::swap16(pal[src[ix]]));
tdst[ix] = Decode5A3(Common::swap16(pal[src[ix]]));
}
}
}
}
}
} // namespace
} // namespace Common

View File

@ -6,9 +6,8 @@
#include "Common/CommonTypes.h"
namespace ColorUtil
namespace Common
{
void decode5A3image(u32* dst, const u16* src, int width, int height);
void decodeCI8image(u32* dst, const u8* src, const u16* pal, int width, int height);
} // namespace
} // namespace Common