Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
4e7cd38f
Commit
4e7cd38f
authored
10 years ago
by
Jim Bankoski
Browse files
Options
Download
Patches
Plain Diff
vp9_rd.c: cleanup ugly expression
Change-Id: I066763c2e3ae69ab772bb986da97af9b504f0329
parent
854acfbb
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
nextgen
nextgenv2
sandbox/Jingning/experimental
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/encoder/vp9_rd.c
+2
-4
vp9/encoder/vp9_rd.c
with
2 additions
and
4 deletions
vp9/encoder/vp9_rd.c
+
2
−
4
View file @
4e7cd38f
...
...
@@ -220,8 +220,6 @@ void vp9_initialize_rd_consts(VP9_COMP *cpi) {
}
}
static
const
int
MAX_XSQ_Q10
=
245727
;
static
void
model_rd_norm
(
int
xsq_q10
,
int
*
r_q10
,
int
*
d_q10
)
{
// NOTE: The tables below must be of the same size.
...
...
@@ -311,10 +309,10 @@ void vp9_model_rd_from_var_lapndz(unsigned int var, unsigned int n,
*
dist
=
0
;
}
else
{
int
d_q10
,
r_q10
;
static
const
uint32_t
MAX_XSQ_Q10
=
245727
;
const
uint64_t
xsq_q10_64
=
((((
uint64_t
)
qstep
*
qstep
*
n
)
<<
10
)
+
(
var
>>
1
))
/
var
;
const
int
xsq_q10
=
xsq_q10_64
>
(
uint64_t
)
MAX_XSQ_Q10
?
(
int
)
MAX_XSQ_Q10
:
(
int
)
xsq_q10_64
;
const
int
xsq_q10
=
(
int
)
MIN
(
xsq_q10_64
,
MAX_XSQ_Q10
);
model_rd_norm
(
xsq_q10
,
&
r_q10
,
&
d_q10
);
*
rate
=
(
n
*
r_q10
+
2
)
>>
2
;
*
dist
=
(
var
*
(
int64_t
)
d_q10
+
512
)
>>
10
;
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets