Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
92f4198d
Commit
92f4198d
authored
Jul 18, 2013
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Jul 18, 2013
Browse files
Merge "Using VP9_REF_NO_SCALE instead of (1 << VP9_REF_SCALE_SHIFT)."
parents
cf8988bd
0b562b2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_blockd.h
View file @
92f4198d
...
...
@@ -169,7 +169,7 @@ enum mv_precision {
};
#define VP9_REF_SCALE_SHIFT 14
#define VP9_REF_NO_SCALE
16384
#define VP9_REF_NO_SCALE
(1 << VP9_REF_SCALE_SHIFT)
struct
scale_factors
{
int
x_scale_fp
;
// horizontal fixed point scale factor
...
...
vp9/encoder/vp9_rdopt.c
View file @
92f4198d
...
...
@@ -2346,8 +2346,8 @@ static void setup_buffer_inter(VP9_COMP *cpi, MACROBLOCK *x,
// Further refinement that is encode side only to test the top few candidates
// in full and choose the best as the centre point for subsequent searches.
// The current implementation doesn't support scaling.
if
(
scale
[
frame_type
].
x_scale_fp
==
(
1
<<
VP9_REF_SCALE
_SHIFT
)
&&
scale
[
frame_type
].
y_scale_fp
==
(
1
<<
VP9_REF_SCALE
_SHIFT
)
)
if
(
scale
[
frame_type
].
x_scale_fp
==
VP9_REF_
NO_
SCALE
&&
scale
[
frame_type
].
y_scale_fp
==
VP9_REF_
NO_
SCALE
)
mv_pred
(
cpi
,
x
,
yv12_mb
[
frame_type
][
0
].
buf
,
yv12
->
y_stride
,
frame_type
,
block_size
);
}
...
...
@@ -3340,18 +3340,14 @@ int64_t vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
// TODO(jingning, jkoleszar): scaling reference frame not supported for
// SPLITMV.
if
(
mbmi
->
ref_frame
[
0
]
>
0
&&
(
scale_factor
[
mbmi
->
ref_frame
[
0
]].
x_scale_fp
!=
(
1
<<
VP9_REF_SCALE_SHIFT
)
||
scale_factor
[
mbmi
->
ref_frame
[
0
]].
y_scale_fp
!=
(
1
<<
VP9_REF_SCALE_SHIFT
))
&&
(
scale_factor
[
mbmi
->
ref_frame
[
0
]].
x_scale_fp
!=
VP9_REF_NO_SCALE
||
scale_factor
[
mbmi
->
ref_frame
[
0
]].
y_scale_fp
!=
VP9_REF_NO_SCALE
)
&&
this_mode
==
SPLITMV
)
continue
;
if
(
mbmi
->
ref_frame
[
1
]
>
0
&&
(
scale_factor
[
mbmi
->
ref_frame
[
1
]].
x_scale_fp
!=
(
1
<<
VP9_REF_SCALE_SHIFT
)
||
scale_factor
[
mbmi
->
ref_frame
[
1
]].
y_scale_fp
!=
(
1
<<
VP9_REF_SCALE_SHIFT
))
&&
(
scale_factor
[
mbmi
->
ref_frame
[
1
]].
x_scale_fp
!=
VP9_REF_NO_SCALE
||
scale_factor
[
mbmi
->
ref_frame
[
1
]].
y_scale_fp
!=
VP9_REF_NO_SCALE
)
&&
this_mode
==
SPLITMV
)
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment