Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
5981e4f7
Commit
5981e4f7
authored
Mar 06, 2007
by
Josh Coalson
Browse files
minor comments
parent
1ca3a445
Changes
1
Hide whitespace changes
Inline
Sidebyside
src/libFLAC/stream_encoder.c
View file @
5981e4f7
...
...
@@ 4099,7 +4099,7 @@ static __inline unsigned count_rice_bits_in_partition_(
)

(
partition_samples
>>
1
)
/* (partition_samples>>1) to subtract out extra contributions to the abs_residual_partition_sum.
* The actual number of bits used is closer to the sum
for all i in the partition of abs(residual[i])>>(rice_parameter1)
* The actual number of bits used is closer to the sum
(
for all i in the partition
)
of abs(residual[i])>>(rice_parameter1)
* By using the abs_residual_partition sum, we also add in bits in the LSBs that would normally be shifted out.
* So the subtraction term tries to guess how many extra bits were contributed.
* If the LSBs are randomly distributed, this should average to 0.5 extra bits per sample.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment