Skip to content

Commit

Permalink
docs(compression): clarify intent
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrechette committed Feb 8, 2024
1 parent a6778e6 commit 27a5186
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/acl/compression/impl/quantize.transform.h
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,7 @@ namespace acl

constexpr uint32_t increment_and_clamp_bit_rate(uint32_t bit_rate, uint32_t increment)
{
// If the bit rate is already above highest (e.g 255 if constant), leave it as is otherwise increment and clamp
return bit_rate >= k_highest_bit_rate ? bit_rate : std::min<uint32_t>(bit_rate + increment, k_highest_bit_rate);
}

Expand Down

0 comments on commit 27a5186

Please sign in to comment.