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
f81b6df7
Commit
f81b6df7
authored
Feb 04, 2005
by
Josh Coalson
Browse files
minor comments
parent
16eded53
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/stream_encoder.c
View file @
f81b6df7
...
...
@@ -2956,7 +2956,14 @@ FLAC__bool set_partitioned_rice_(
mean
>>=
1
;
}
#else
/* calc rice_parameter ala LOCO-I */
/* we are basically calculating the size in bits of the
* average residual magnitude in the partition:
* rice_parameter = floor(log2(mean/partition_samples))
* 'mean' is not a good name for the variable, it is
* actually the sum of magnitudes of all residual values
* in the partition, so the actual mean is
* mean/partition_samples
*/
for
(
rice_parameter
=
0
,
k
=
partition_samples
;
k
<
mean
;
rice_parameter
++
,
k
<<=
1
)
;
#endif
...
...
@@ -3162,7 +3169,14 @@ FLAC__bool set_partitioned_rice_with_precompute_(
mean
>>=
1
;
}
#else
/* calc rice_parameter ala LOCO-I */
/* we are basically calculating the size in bits of the
* average residual magnitude in the partition:
* rice_parameter = floor(log2(mean/partition_samples))
* 'mean' is not a good name for the variable, it is
* actually the sum of magnitudes of all residual values
* in the partition, so the actual mean is
* mean/partition_samples
*/
for
(
rice_parameter
=
0
,
k
=
partition_samples
;
k
<
mean
;
rice_parameter
++
,
k
<<=
1
)
;
#endif
...
...
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