From 60ed47ab1002b3891b1154b46d74c063f25bb2c5 Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Tue, 9 Mar 2021 01:25:44 -0800 Subject: [PATCH] Bind BC1Encoder.ErrorMode --- src/rgbcx/bindings/BC1.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/rgbcx/bindings/BC1.cpp b/src/rgbcx/bindings/BC1.cpp index a42ec67..caf8b69 100644 --- a/src/rgbcx/bindings/BC1.cpp +++ b/src/rgbcx/bindings/BC1.cpp @@ -19,9 +19,9 @@ #include +#include "../BC1/BC1Encoder.h" #include "../BlockEncoder.h" #include "../bitwiseEnums.h" -#include "../BC1/BC1Encoder.h" #define STRINGIFY(x) #x #define MACRO_STRINGIFY(x) STRINGIFY(x) @@ -71,6 +71,12 @@ void InitBC1(py::module_ &m) { .value("BoundingBox", BC1Encoder::EndpointMode::BoundingBox) .value("BoundingBoxInt", BC1Encoder::EndpointMode::BoundingBoxInt) .value("PCA", BC1Encoder::EndpointMode::PCA); + + py::enum_(bc1_encoder, "ErrorMode") + .value("None", BC1Encoder::ErrorMode::None) + .value("Faster", BC1Encoder::ErrorMode::Faster) + .value("Check2", BC1Encoder::ErrorMode::Check2) + .value("Full", BC1Encoder::ErrorMode::Full); } } // namespace rgbcx::bindings \ No newline at end of file