aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/bs_encode/encode.h
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2025-07-30 23:15:12 +0200
committerDaniil Cherednik <dan.cherednik@gmail.com>2025-07-31 23:40:11 +0200
commite8400f35fa8f9bff628cca0c9d5ed9184b6d4bd9 (patch)
treea8c30dbf6fa366dfb9ef256e8b81ca6532064b81 /src/lib/bs_encode/encode.h
parent61045345fa43e54fb4fc3eee0e05b25451af9ca5 (diff)
downloadatracdenc-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.h3
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;