diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2025-07-30 23:15:12 +0200 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2025-07-31 23:40:11 +0200 |
commit | e8400f35fa8f9bff628cca0c9d5ed9184b6d4bd9 (patch) | |
tree | a8c30dbf6fa366dfb9ef256e8b81ca6532064b81 /src/lib/bs_encode/encode.h | |
parent | 61045345fa43e54fb4fc3eee0e05b25451af9ca5 (diff) | |
download | atracdenc-new_psy.tar.gz |
Use common bit allocation engine for AT1 modenew_psy
This commit also removes handling "bfuidxconst" option
and mark it as deprecated. This option actually does not
affect encoding speed significantly.
Diffstat (limited to 'src/lib/bs_encode/encode.h')
-rw-r--r-- | src/lib/bs_encode/encode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/bs_encode/encode.h b/src/lib/bs_encode/encode.h index 3302d10..17cde57 100644 --- a/src/lib/bs_encode/encode.h +++ b/src/lib/bs_encode/encode.h @@ -33,7 +33,8 @@ public: void Start(size_t targetBits, float minLambda, float maxLambda) noexcept; float Continue() noexcept; bool Check(size_t gitBits) const noexcept; - void Submit(size_t gotBits) noexcept; + // returns true if binsearch for this allocation finished + bool Submit(size_t gotBits) noexcept; // Returns consumption of all previous encoded parts (except part from this method called) uint32_t GetCurGlobalConsumption() const noexcept; |