diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2025-05-03 22:07:17 +0200 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2025-05-03 22:07:17 +0200 |
commit | 98338613d8821f592682928c1096550596cb2550 (patch) | |
tree | abc2318c96ee2a14f06ba1028fb8663f6a6ee35a /src/lib/bs_encode/encode_ut.cpp | |
parent | 177622ee9513784a21d9f10ab0c1e9774c0ddc71 (diff) | |
download | atracdenc-98338613d8821f592682928c1096550596cb2550.tar.gz |
[AT3P] Adjust number of quant units during encoding.
Diffstat (limited to 'src/lib/bs_encode/encode_ut.cpp')
-rw-r--r-- | src/lib/bs_encode/encode_ut.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/bs_encode/encode_ut.cpp b/src/lib/bs_encode/encode_ut.cpp index e9293a2..39f0ff1 100644 --- a/src/lib/bs_encode/encode_ut.cpp +++ b/src/lib/bs_encode/encode_ut.cpp @@ -47,6 +47,10 @@ public: void Dump(NBitStream::TBitStream& bs) override { EXPECT_EQ(EncCalls, ExpCalls); } + + uint32_t GetConsumption() const noexcept override { + return 0; + } private: const size_t ExpCalls; size_t EncCalls = 0; @@ -74,6 +78,10 @@ public: bs.Write(1, 1); } } + + uint32_t GetConsumption() const noexcept override { + return 1 * Bits; + } private: const size_t ExpCalls; size_t EncCalls = 0; @@ -94,6 +102,10 @@ public: void Dump(NBitStream::TBitStream& bs) override { EXPECT_EQ(EncCalls, ExpCalls); } + + uint32_t GetConsumption() const noexcept override { + return 0; + } private: const size_t ExpCalls; size_t EncCalls = 0; @@ -115,6 +127,10 @@ public: void Dump(NBitStream::TBitStream& bs) override { EXPECT_EQ(EncCalls, 1); } + + uint32_t GetConsumption() const noexcept override { + return 0; + } private: size_t EncCalls = 0; }; |