Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yushin Cho
aom-rav1e
Commits
65e650e0
Commit
65e650e0
authored
Apr 09, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Apr 09, 2014
Browse files
Merge "Revert "Converting set_prev_mi() to get_prev_mi().""
parents
3dff8aa3
60def47f
Changes
4
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_mvref_common.c
View file @
65e650e0
...
...
@@ -195,7 +195,7 @@ static void find_mv_refs_idx(const VP9_COMMON *cm, const MACROBLOCKD *xd,
int
block
,
int
mi_row
,
int
mi_col
)
{
const
int
*
ref_sign_bias
=
cm
->
ref_frame_sign_bias
;
int
i
,
refmv_count
=
0
;
const
MODE_INFO
*
prev_mi
=
cm
->
prev_mi
const
MODE_INFO
*
prev_mi
=
cm
->
coding_use_prev_mi
&&
cm
->
prev_mi
?
cm
->
prev_mi_grid_visible
[
mi_row
*
xd
->
mi_stride
+
mi_col
]
:
NULL
;
const
MB_MODE_INFO
*
const
prev_mbmi
=
prev_mi
?
&
prev_mi
->
mbmi
:
NULL
;
...
...
vp9/common/vp9_onyxc_int.h
View file @
65e650e0
...
...
@@ -284,15 +284,15 @@ static INLINE void set_mi_row_col(MACROBLOCKD *xd, const TileInfo *const tile,
xd
->
left_available
=
(
mi_col
>
tile
->
mi_col_start
);
}
static
INLINE
MODE_INFO
*
get_prev_mi
(
VP9_COMMON
*
cm
)
{
const
int
use_prev_mi
=
cm
->
coding_use_prev_mi
&&
cm
->
width
==
cm
->
last_width
&&
cm
->
height
==
cm
->
last_height
&&
!
cm
->
intra_only
&&
cm
->
last_show_frame
;
static
INLINE
void
set_prev_mi
(
VP9_COMMON
*
cm
)
{
const
int
use_prev_in_find_mv_refs
=
cm
->
width
==
cm
->
last_width
&&
cm
->
height
==
cm
->
last_height
&&
!
cm
->
intra_only
&&
cm
->
last_show_frame
;
// Special case: set prev_mi to NULL when the previous mode info
// context cannot be used.
return
use_prev_mi
?
&
cm
->
prev_mip
[
cm
->
mi_stride
+
1
]
:
NULL
;
cm
->
prev_mi
=
use_prev_in_find_mv_refs
?
cm
->
prev_mip
+
cm
->
mi_stride
+
1
:
NULL
;
}
static
INLINE
int
frame_is_intra_only
(
const
VP9_COMMON
*
const
cm
)
{
...
...
vp9/decoder/vp9_decodeframe.c
View file @
65e650e0
...
...
@@ -1296,7 +1296,11 @@ int vp9_decode_frame(VP9Decoder *pbi,
}
init_macroblockd
(
cm
,
&
pbi
->
mb
);
cm
->
prev_mi
=
get_prev_mi
(
cm
);
if
(
cm
->
coding_use_prev_mi
)
set_prev_mi
(
cm
);
else
cm
->
prev_mi
=
NULL
;
setup_plane_dequants
(
cm
,
xd
,
cm
->
base_qindex
);
vp9_setup_block_planes
(
xd
,
cm
->
subsampling_x
,
cm
->
subsampling_y
);
...
...
vp9/encoder/vp9_encodeframe.c
View file @
65e650e0
...
...
@@ -3266,7 +3266,7 @@ static void encode_frame_internal(VP9_COMP *cpi) {
if
(
cpi
->
oxcf
.
tuning
==
VP8_TUNE_SSIM
)
build_activity_map
(
cpi
);
cm
->
prev_mi
=
g
et_prev_mi
(
cm
);
s
et_prev_mi
(
cm
);
if
(
sf
->
use_nonrd_pick_mode
)
{
// Initialize internal buffer pointers for rtc coding, where non-RD
...
...
Write
Preview
Supports
Markdown
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