diff --git a/include/zdepth.hpp b/include/zdepth.hpp index f4c64ac..fd1faf5 100644 --- a/include/zdepth.hpp +++ b/include/zdepth.hpp @@ -213,14 +213,19 @@ uint16_t AzureKinectDequantizeDepth(uint16_t quantized); enum class EncodeMode { // Quantized within [200, 11840] mm. 12 bit/pixel kAzureKinectQuantized = 0b0000, + // Not quantized within [1, 511] mm. 10 bit/pixel kNotQuantized511mm = 0b0001, + // Not quantized within [1, 1023] mm. 11 bit/pixel kNotQuantized1023mm = 0b0010, + // Not quantized within [1, 2047] mm. 12 bit/pixel kNotQuantized2047mm = 0b0011, + // Not quantized within [1, 4095] mm. 13 bit/pixel kNotQuantized4095mm = 0b0100, + // Not quantized within [1, 8191] mm. 14 bit/pixel kNotQuantized8191mm = 0b0101, }; @@ -353,7 +358,7 @@ class DepthCompressor // Packs the 16-bit overruns into 12-bit values and apply Zstd std::vector Packed; - int gop_ = 30; + int gop_ = 1; EncodeMode encode_mode_ = EncodeMode::kAzureKinectQuantized; void CompressImage( diff --git a/src/zdepth.cpp b/src/zdepth.cpp index 506654b..6b8f49b 100644 --- a/src/zdepth.cpp +++ b/src/zdepth.cpp @@ -356,7 +356,7 @@ void Unpack12( int GetCutoffDepth(EncodeMode mode) { switch (mode) { case EncodeMode::kAzureKinectQuantized: - return 2048; + return 11840; case EncodeMode::kNotQuantized511mm: return 512; case EncodeMode::kNotQuantized1023mm: