mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-07-15 10:57:23 +00:00
Fix some linker errors...
This commit is contained in:
parent
1b30efe488
commit
08c919d965
|
@ -1477,7 +1477,8 @@ namespace BC7C
|
||||||
// implementation has an 4:1 compression ratio.
|
// implementation has an 4:1 compression ratio.
|
||||||
void CompressImageBC7(const unsigned char *inBuf, unsigned char *outBuf, unsigned int width, unsigned int height)
|
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)
|
for(uint32 j = 0; j < height; j += 4)
|
||||||
{
|
{
|
||||||
|
@ -1519,7 +1520,8 @@ namespace BC7C
|
||||||
unsigned int height,
|
unsigned int height,
|
||||||
BlockStatManager &statManager
|
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)
|
for(uint32 j = 0; j < height; j += 4)
|
||||||
{
|
{
|
||||||
|
|
|
@ -420,6 +420,6 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
extern uint8 QuantizeChannel(const uint8 val, const uint8 mask, const int pBit = -1);
|
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__
|
#endif //__RGBA_ENDPOINTS_H__
|
||||||
|
|
Loading…
Reference in a new issue