diff --git a/src/BC1/BC1Encoder.cpp b/src/BC1/BC1Encoder.cpp index 875924a..b45bbb6 100644 --- a/src/BC1/BC1Encoder.cpp +++ b/src/BC1/BC1Encoder.cpp @@ -667,6 +667,7 @@ void BC1Encoder::RefineBlockLS(Color4x4 &pixels, EncodeResults &block, BlockMetr } } } + template void BC1Encoder::RefineBlockCF(Color4x4 &pixels, EncodeResults &block, BlockMetrics &metrics, ErrorMode error_mode, unsigned orderings) const { const int color_count = (unsigned)M & 0x0F; diff --git a/src/BlockView.h b/src/BlockView.h index feffc86..19236c3 100644 --- a/src/BlockView.h +++ b/src/BlockView.h @@ -131,7 +131,7 @@ template class ColorBlockView : public BlockView class ColorBlockView : public BlockView 0) metrics.avg = (metrics.sum + Vector4Int(total / 2)) / total; // half-total added for better rounding return metrics; } diff --git a/src/Vector4Int.h b/src/Vector4Int.h index 186bebe..809652d 100644 --- a/src/Vector4Int.h +++ b/src/Vector4Int.h @@ -29,7 +29,7 @@ namespace rgbcx { class Vector4Int { public: - Vector4Int(int x = 0, int y = 0, int z = 0, int w = 0) { + Vector4Int(int x, int y, int z = 0, int w = 0) { _c[0] = x; _c[1] = y; _c[2] = z;