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
a60fc419
Commit
a60fc419
authored
13 years ago
by
John Koleszar
Committed by
Code Review
13 years ago
Browse files
Options
Download
Plain Diff
Merge "Use SSE as BPRED distortion metric consistently"
parents
87fd66bb
61599fb5
v1.14.0-linphone
1.4.X
cayuga
eider
experimental
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m29-baseline
m31-baseline
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
pcs-2013
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jkoleszar/cached-multibit
sandbox/jkoleszar/new-rate-control
sandbox/jkoleszar/new-rtcd
sandbox/jkoleszar/reuse-modemv
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
stable-vp9-decoder
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
vp9-preview
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
v1.3.0
v1.2.0
v1.1.0
v1.0.0
v0.9.7
v0.9.7-p1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp8/encoder/pickinter.c
+6
-6
vp8/encoder/pickinter.c
with
6 additions
and
6 deletions
vp8/encoder/pickinter.c
+
6
−
6
View file @
a60fc419
...
@@ -416,7 +416,6 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
...
@@ -416,7 +416,6 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
int_mv
mode_mv
[
MB_MODE_COUNT
];
int_mv
mode_mv
[
MB_MODE_COUNT
];
MB_PREDICTION_MODE
this_mode
;
MB_PREDICTION_MODE
this_mode
;
int
num00
;
int
num00
;
int
mdcounts
[
4
];
int
mdcounts
[
4
];
int
best_rd
=
INT_MAX
;
// 1 << 30;
int
best_rd
=
INT_MAX
;
// 1 << 30;
int
best_intra_rd
=
INT_MAX
;
int
best_intra_rd
=
INT_MAX
;
...
@@ -427,7 +426,7 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
...
@@ -427,7 +426,7 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
int
bestsme
;
int
bestsme
;
//int all_rds[MAX_MODES]; // Experimental debug code.
//int all_rds[MAX_MODES]; // Experimental debug code.
int
best_mode_index
=
0
;
int
best_mode_index
=
0
;
unsigned
int
sse
=
INT_MAX
;
unsigned
int
sse
=
INT_MAX
,
best_sse
=
INT_MAX
;
int_mv
mvp
;
int_mv
mvp
;
int
near_sadidx
[
8
]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
};
int
near_sadidx
[
8
]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
};
...
@@ -599,7 +598,7 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
...
@@ -599,7 +598,7 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
{
{
case
B_PRED
:
case
B_PRED
:
// Pass best so far to pick_intra4x4mby_modes to use as breakout
// Pass best so far to pick_intra4x4mby_modes to use as breakout
distortion2
=
*
returndistortion
;
distortion2
=
best_sse
;
pick_intra4x4mby_modes
(
IF_RTCD
(
&
cpi
->
rtcd
),
x
,
&
rate
,
&
distortion2
);
pick_intra4x4mby_modes
(
IF_RTCD
(
&
cpi
->
rtcd
),
x
,
&
rate
,
&
distortion2
);
if
(
distortion2
==
INT_MAX
)
if
(
distortion2
==
INT_MAX
)
...
@@ -826,6 +825,7 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
...
@@ -826,6 +825,7 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
*
returnrate
=
rate2
;
*
returnrate
=
rate2
;
*
returndistortion
=
distortion2
;
*
returndistortion
=
distortion2
;
best_sse
=
sse
;
best_rd
=
this_rd
;
best_rd
=
this_rd
;
vpx_memcpy
(
&
best_mbmode
,
&
x
->
e_mbd
.
mode_info_context
->
mbmi
,
sizeof
(
MB_MODE_INFO
));
vpx_memcpy
(
&
best_mbmode
,
&
x
->
e_mbd
.
mode_info_context
->
mbmi
,
sizeof
(
MB_MODE_INFO
));
...
@@ -900,7 +900,7 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
...
@@ -900,7 +900,7 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
void
vp8_pick_intra_mode
(
VP8_COMP
*
cpi
,
MACROBLOCK
*
x
,
int
*
rate_
)
void
vp8_pick_intra_mode
(
VP8_COMP
*
cpi
,
MACROBLOCK
*
x
,
int
*
rate_
)
{
{
int
error4x4
,
error16x16
=
INT_MAX
;
int
error4x4
,
error16x16
=
INT_MAX
;
int
rate
,
best_rate
=
0
,
distortion
,
best_
distortion
;
int
rate
,
best_rate
=
0
,
distortion
,
best_
sse
;
MB_PREDICTION_MODE
mode
,
best_mode
=
DC_PRED
;
MB_PREDICTION_MODE
mode
,
best_mode
=
DC_PRED
;
int
this_rd
;
int
this_rd
;
unsigned
int
sse
;
unsigned
int
sse
;
...
@@ -923,14 +923,14 @@ void vp8_pick_intra_mode(VP8_COMP *cpi, MACROBLOCK *x, int *rate_)
...
@@ -923,14 +923,14 @@ void vp8_pick_intra_mode(VP8_COMP *cpi, MACROBLOCK *x, int *rate_)
{
{
error16x16
=
this_rd
;
error16x16
=
this_rd
;
best_mode
=
mode
;
best_mode
=
mode
;
best_
distortion
=
distortion
;
best_
sse
=
sse
;
best_rate
=
rate
;
best_rate
=
rate
;
}
}
}
}
x
->
e_mbd
.
mode_info_context
->
mbmi
.
mode
=
best_mode
;
x
->
e_mbd
.
mode_info_context
->
mbmi
.
mode
=
best_mode
;
error4x4
=
pick_intra4x4mby_modes
(
IF_RTCD
(
&
cpi
->
rtcd
),
x
,
&
rate
,
error4x4
=
pick_intra4x4mby_modes
(
IF_RTCD
(
&
cpi
->
rtcd
),
x
,
&
rate
,
&
best_
distortion
);
&
best_
sse
);
if
(
error4x4
<
error16x16
)
if
(
error4x4
<
error16x16
)
{
{
x
->
e_mbd
.
mode_info_context
->
mbmi
.
mode
=
B_PRED
;
x
->
e_mbd
.
mode_info_context
->
mbmi
.
mode
=
B_PRED
;
...
...
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