Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Timothy B. Terriberry
rav1e
Commits
7e2f72d2
Commit
7e2f72d2
authored
6 years ago
by
Frank Bossen
Committed by
fbossen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Double the ME search range and increase step size in initial ME
parent
8544574d
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
src/me.rs
+4
-4
4 additions, 4 deletions
src/me.rs
with
4 additions
and
4 deletions
src/me.rs
+
4
−
4
View file @
7e2f72d2
...
...
@@ -44,7 +44,7 @@ pub fn motion_estimation(fi: &FrameInvariants, fs: &mut FrameState, bsize: Block
match
fi
.rec_buffer.frames
[
fi
.ref_frames
[
ref_frame
-
LAST_FRAME
]]
{
Some
(
ref
rec
)
=>
{
let
po
=
PlaneOffset
{
x
:
(
bo
.x
as
isize
)
<<
BLOCK_TO_PLANE_SHIFT
,
y
:
(
bo
.y
as
isize
)
<<
BLOCK_TO_PLANE_SHIFT
};
let
range
=
16
as
isize
;
let
range
=
32
as
isize
;
let
blk_w
=
bsize
.width
();
let
blk_h
=
bsize
.height
();
let
x_lo
=
po
.x
-
range
;
...
...
@@ -55,8 +55,8 @@ pub fn motion_estimation(fi: &FrameInvariants, fs: &mut FrameState, bsize: Block
let
mut
lowest_sad
=
128
*
128
*
4096
as
u32
;
let
mut
best_mv
=
MotionVector
{
row
:
0
,
col
:
0
};
for
y
in
(
y_lo
..
y_hi
)
.step_by
(
1
)
{
for
x
in
(
x_lo
..
x_hi
)
.step_by
(
1
)
{
for
y
in
(
y_lo
..
y_hi
)
.step_by
(
2
)
{
for
x
in
(
x_lo
..
x_hi
)
.step_by
(
2
)
{
let
mut
plane_org
=
fs
.input.planes
[
0
]
.slice
(
&
po
);
let
mut
plane_ref
=
rec
.frame.planes
[
0
]
.slice
(
&
PlaneOffset
{
x
:
x
,
y
:
y
});
...
...
@@ -73,7 +73,7 @@ pub fn motion_estimation(fi: &FrameInvariants, fs: &mut FrameState, bsize: Block
let
mode
=
PredictionMode
::
NEWMV
;
let
mut
tmp_plane
=
Plane
::
new
(
blk_w
,
blk_h
,
0
,
0
,
0
,
0
);
let
mut
steps
=
vec!
[
4
,
2
];
let
mut
steps
=
vec!
[
8
,
4
,
2
];
if
fi
.allow_high_precision_mv
{
steps
.push
(
1
);
}
...
...
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