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
48104f0d
Commit
48104f0d
authored
11 years ago
by
Yaowu Xu
Browse files
Options
Download
Patches
Plain Diff
define a specific neighborhood for SB64 mv search
Change-Id: Ifda91d697c5970c65ce3ec1feac5562124f91782
parent
66eff0aa
v1.14.0-linphone
1.4.X
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/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
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
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/common/vp9_mvref_common.c
+16
-1
vp9/common/vp9_mvref_common.c
with
16 additions
and
1 deletion
vp9/common/vp9_mvref_common.c
+
16
−
1
View file @
48104f0d
...
...
@@ -28,6 +28,18 @@ static int sb_mv_ref_search[MVREF_NEIGHBOURS][2] = {
static
int
sb_ref_distance_weight
[
MVREF_NEIGHBOURS
]
=
{
3
,
3
,
2
,
2
,
2
,
1
,
1
,
1
};
static
int
sb64_mv_ref_search
[
MVREF_NEIGHBOURS
][
2
]
=
{
{
0
,
-
1
},
{
-
1
,
0
},
{
1
,
-
1
},
{
-
1
,
1
},
{
2
,
-
1
},
{
-
1
,
2
},
{
3
,
-
1
},
{
-
1
,
-
1
}
};
static
int
sb64_ref_distance_weight
[
MVREF_NEIGHBOURS
]
=
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
};
// clamp_mv_ref
#define MV_BORDER (16 << 3) // Allow 16 pels in 1/8th pel units
...
...
@@ -275,7 +287,10 @@ void vp9_find_mv_refs(
vpx_memset
(
candidate_mvs
,
0
,
sizeof
(
int_mv
)
*
MAX_MV_REF_CANDIDATES
);
vpx_memset
(
candidate_scores
,
0
,
sizeof
(
candidate_scores
));
if
(
mbmi
->
sb_type
)
{
if
(
mbmi
->
sb_type
==
BLOCK_SIZE_SB64X64
)
{
mv_ref_search
=
sb64_mv_ref_search
;
ref_distance_weight
=
sb64_ref_distance_weight
;
}
else
if
(
mbmi
->
sb_type
==
BLOCK_SIZE_SB32X32
)
{
mv_ref_search
=
sb_mv_ref_search
;
ref_distance_weight
=
sb_ref_distance_weight
;
}
else
{
...
...
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