Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
45648532
Commit
45648532
authored
10 years ago
by
unknown
Committed by
Yaowu Xu
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
vp9_pickmode.c: fix vs12 compiler warnings
Change-Id: I5042b76a7050c121bf960ecb20c79d35adcc4cd5
parent
95fb9008
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/encoder/vp9_pickmode.c
+5
-4
5 additions, 4 deletions
vp9/encoder/vp9_pickmode.c
with
5 additions
and
4 deletions
vp9/encoder/vp9_pickmode.c
+
5
−
4
View file @
45648532
...
...
@@ -158,15 +158,16 @@ static void model_rd_for_sb_y(VP9_COMP *cpi, BLOCK_SIZE bsize,
int64_t
dist
;
struct
macroblock_plane
*
const
p
=
&
x
->
plane
[
0
];
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
0
];
const
int
quant
=
pd
->
dequant
[
1
];
const
uint32_t
dc_quant
=
pd
->
dequant
[
0
];
const
uint32_t
ac_quant
=
pd
->
dequant
[
1
];
unsigned
int
var
=
cpi
->
fn_ptr
[
bsize
].
vf
(
p
->
src
.
buf
,
p
->
src
.
stride
,
pd
->
dst
.
buf
,
pd
->
dst
.
stride
,
&
sse
);
*
var_y
=
var
;
*
sse_y
=
sse
;
if
(
sse
<
pd
->
dequant
[
0
]
*
pd
->
de
quant
[
0
]
>>
6
)
if
(
sse
<
dc_quant
*
dc_
quant
>>
6
)
x
->
skip_txfm
=
1
;
else
if
(
var
<
quant
*
quant
>>
6
)
else
if
(
var
<
ac_
quant
*
ac_
quant
>>
6
)
x
->
skip_txfm
=
2
;
else
x
->
skip_txfm
=
0
;
...
...
@@ -177,7 +178,7 @@ static void model_rd_for_sb_y(VP9_COMP *cpi, BLOCK_SIZE bsize,
if
((
sse
>>
3
)
>
var
)
sse
=
var
;
vp9_model_rd_from_var_lapndz
(
var
+
sse
,
1
<<
num_pels_log2_lookup
[
bsize
],
quant
>>
3
,
&
rate
,
&
dist
);
ac_
quant
>>
3
,
&
rate
,
&
dist
);
*
out_rate_sum
=
rate
;
*
out_dist_sum
=
dist
<<
3
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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