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
9cc16115
Commit
9cc16115
authored
13 years ago
by
John Koleszar
Browse files
Options
Download
Plain Diff
Merge v0.9.7-p1 release int 'origin/master'
Change-Id: I93388d2f8846615ad1e26b975308c5e96b9b1918
parents
20307c70
ff356497
v1.14.0-linphone
1.4.X
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
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp8/encoder/mcomp.c
+14
-64
vp8/encoder/mcomp.c
with
14 additions
and
64 deletions
vp8/encoder/mcomp.c
+
14
−
64
View file @
9cc16115
...
...
@@ -661,6 +661,7 @@ int vp8_find_best_half_pixel_step(MACROBLOCK *x, BLOCK *b, BLOCKD *d,
unsigned
char
*
z
=
(
*
(
b
->
base_src
)
+
b
->
src
);
int
left
,
right
,
up
,
down
,
diag
;
unsigned
int
sse
;
int
whichdir
;
int
thismse
;
int
y_stride
;
...
...
@@ -740,8 +741,6 @@ int vp8_find_best_half_pixel_step(MACROBLOCK *x, BLOCK *b, BLOCKD *d,
*
sse1
=
sse
;
}
// somewhat strangely not doing all the diagonals for half pel is slower than doing them.
#if 0
// now check 1 more diagonal -
whichdir
=
(
left
<
right
?
0
:
1
)
+
(
up
<
down
?
0
:
2
);
this_mv
=
startmv
;
...
...
@@ -749,39 +748,28 @@ int vp8_find_best_half_pixel_step(MACROBLOCK *x, BLOCK *b, BLOCKD *d,
switch
(
whichdir
)
{
case
0
:
this_mv.col = (this_mv.col - 8) | 4;
this_mv.row = (this_mv.row - 8) | 4;
diag
= vfp->svf(y - 1 - y_stride, y_stride,
4, 4,
z, b->src_stride, &sse);
this_mv
.
as_mv
.
col
=
(
this_mv
.
as_mv
.
col
-
8
)
|
4
;
this_mv
.
as_mv
.
row
=
(
this_mv
.
as_mv
.
row
-
8
)
|
4
;
thismse
=
vfp
->
svf
_halfpix_hv
(
y
-
1
-
y_stride
,
y_stride
,
z
,
b
->
src_stride
,
&
sse
);
break
;
case
1
:
this_mv.col += 4;
this_mv.row = (this_mv.row - 8) | 4;
diag
= vfp->svf(y - y_stride, y_stride,
4, 4,
z, b->src_stride, &sse);
this_mv
.
as_mv
.
col
+=
4
;
this_mv
.
as_mv
.
row
=
(
this_mv
.
as_mv
.
row
-
8
)
|
4
;
thismse
=
vfp
->
svf
_halfpix_hv
(
y
-
y_stride
,
y_stride
,
z
,
b
->
src_stride
,
&
sse
);
break
;
case
2
:
this_mv.col = (this_mv.col - 8) | 4;
this_mv.row += 4;
diag
= vfp->svf(y - 1, y_stride,
4, 4,
z, b->src_stride, &sse);
this_mv
.
as_mv
.
col
=
(
this_mv
.
as_mv
.
col
-
8
)
|
4
;
this_mv
.
as_mv
.
row
+=
4
;
thismse
=
vfp
->
svf
_halfpix_hv
(
y
-
1
,
y_stride
,
z
,
b
->
src_stride
,
&
sse
);
break
;
case
3
:
this_mv.col += 4;
this_mv.row += 4;
diag = vfp->svf(y, y_stride, 4, 4, z, b->src_stride, &sse);
default:
this_mv
.
as_mv
.
col
+=
4
;
this_mv
.
as_mv
.
row
+=
4
;
thismse
=
vfp
->
svf_halfpix_hv
(
y
,
y_stride
,
z
,
b
->
src_stride
,
&
sse
);
break
;
}
diag += mv_err_cost(&this_mv, ref_mv, mvcost, error_per_bit);
if (diag < bestmse)
{
*bestmv = this_mv;
bestmse = diag;
}
#else
this_mv
.
as_mv
.
col
=
(
this_mv
.
as_mv
.
col
-
8
)
|
4
;
this_mv
.
as_mv
.
row
=
(
this_mv
.
as_mv
.
row
-
8
)
|
4
;
thismse
=
vfp
->
svf_halfpix_hv
(
y
-
1
-
y_stride
,
y_stride
,
z
,
b
->
src_stride
,
&
sse
);
diag
=
thismse
+
mv_err_cost
(
&
this_mv
,
ref_mv
,
mvcost
,
error_per_bit
);
if
(
diag
<
bestmse
)
...
...
@@ -792,44 +780,6 @@ int vp8_find_best_half_pixel_step(MACROBLOCK *x, BLOCK *b, BLOCKD *d,
*
sse1
=
sse
;
}
this_mv
.
as_mv
.
col
+=
8
;
thismse
=
vfp
->
svf_halfpix_hv
(
y
-
y_stride
,
y_stride
,
z
,
b
->
src_stride
,
&
sse
);
diag
=
thismse
+
mv_err_cost
(
&
this_mv
,
ref_mv
,
mvcost
,
error_per_bit
);
if
(
diag
<
bestmse
)
{
*
bestmv
=
this_mv
;
bestmse
=
diag
;
*
distortion
=
thismse
;
*
sse1
=
sse
;
}
this_mv
.
as_mv
.
col
=
(
this_mv
.
as_mv
.
col
-
8
)
|
4
;
this_mv
.
as_mv
.
row
=
startmv
.
as_mv
.
row
+
4
;
thismse
=
vfp
->
svf_halfpix_hv
(
y
-
1
,
y_stride
,
z
,
b
->
src_stride
,
&
sse
);
diag
=
thismse
+
mv_err_cost
(
&
this_mv
,
ref_mv
,
mvcost
,
error_per_bit
);
if
(
diag
<
bestmse
)
{
*
bestmv
=
this_mv
;
bestmse
=
diag
;
*
distortion
=
thismse
;
*
sse1
=
sse
;
}
this_mv
.
as_mv
.
col
+=
8
;
thismse
=
vfp
->
svf_halfpix_hv
(
y
,
y_stride
,
z
,
b
->
src_stride
,
&
sse
);
diag
=
thismse
+
mv_err_cost
(
&
this_mv
,
ref_mv
,
mvcost
,
error_per_bit
);
if
(
diag
<
bestmse
)
{
*
bestmv
=
this_mv
;
bestmse
=
diag
;
*
distortion
=
thismse
;
*
sse1
=
sse
;
}
#endif
return
bestmse
;
}
...
...
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