Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tim-Philipp Müller
Opus
Commits
9c3dc6b4
Commit
9c3dc6b4
authored
Apr 21, 2011
by
Jean-Marc Valin
Browse files
s/intra_decision()/loss_distortion()/
parent
eda2dee8
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/quant_bands.c
View file @
9c3dc6b4
...
...
@@ -139,7 +139,7 @@ static const unsigned char e_prob_model[4][2][42] = {
static
const
unsigned
char
small_energy_icdf
[
3
]
=
{
2
,
1
,
0
};
static
celt_word32
intra_decis
ion
(
const
celt_word16
*
eBands
,
celt_word16
*
oldEBands
,
int
start
,
int
end
,
int
len
,
int
C
)
static
celt_word32
loss_distort
ion
(
const
celt_word16
*
eBands
,
celt_word16
*
oldEBands
,
int
start
,
int
end
,
int
len
,
int
C
)
{
int
c
,
i
;
celt_word32
dist
=
0
;
...
...
@@ -275,7 +275,7 @@ void quant_coarse_energy(const CELTMode *m, int start, int end, int effEnd,
intra
=
force_intra
||
(
!
two_pass
&&
*
delayedIntra
>
2
*
C
*
(
end
-
start
)
&&
nbAvailableBytes
>
(
end
-
start
)
*
C
);
intra_bias
=
((
budget
**
delayedIntra
*
loss_rate
)
/
(
C
*
512
));
*
delayedIntra
=
intra_decis
ion
(
eBands
,
oldEBands
,
start
,
effEnd
,
m
->
nbEBands
,
C
);
*
delayedIntra
=
loss_distort
ion
(
eBands
,
oldEBands
,
start
,
effEnd
,
m
->
nbEBands
,
C
);
tell
=
ec_tell
(
enc
);
if
(
tell
+
3
>
budget
)
...
...
Write
Preview
Supports
Markdown
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