Fix some linker errors...

This commit is contained in:
Pavel Krajcevski 2013-01-28 17:04:58 -05:00
parent 1b30efe488
commit 08c919d965
2 changed files with 5 additions and 3 deletions

View file

@ -1477,7 +1477,8 @@ namespace BC7C
// implementation has an 4:1 compression ratio.
void CompressImageBC7(const unsigned char *inBuf, unsigned char *outBuf, unsigned int width, unsigned int height)
{
BC7CompressionMode::MaxAnnealingIterations = min(BC7CompressionMode::kMaxAnnealingIterations, GetQualityLevel());
const int kMaxIters = BC7CompressionMode::kMaxAnnealingIterations;
BC7CompressionMode::MaxAnnealingIterations = min(kMaxIters, GetQualityLevel());
for(uint32 j = 0; j < height; j += 4)
{
@ -1519,7 +1520,8 @@ namespace BC7C
unsigned int height,
BlockStatManager &statManager
) {
BC7CompressionMode::MaxAnnealingIterations = min(BC7CompressionMode::kMaxAnnealingIterations, GetQualityLevel());
const int kMaxIters = BC7CompressionMode::kMaxAnnealingIterations;
BC7CompressionMode::MaxAnnealingIterations = min(kMaxIters, GetQualityLevel());
for(uint32 j = 0; j < height; j += 4)
{

View file

@ -420,6 +420,6 @@ private:
};
extern uint8 QuantizeChannel(const uint8 val, const uint8 mask, const int pBit = -1);
extern uint32 GetPrincipalAxis(int nPts, const RGBAVector *pts, RGBADir &axis, double &eigOne, double *eigTwo);
extern uint32 GetPrincipalAxis(uint32 nPts, const RGBAVector *pts, RGBADir &axis, double &eigOne, double *eigTwo);
#endif //__RGBA_ENDPOINTS_H__