Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
62de07c8
Commit
62de07c8
authored
Dec 04, 2014
by
hkuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge set_prev_mi function into encoder function.
Change-Id: Ifcf2efbb232ea4cabcdebbe77e0820d121e4a6da
parent
4f860dba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
vp9/common/vp9_onyxc_int.h
vp9/common/vp9_onyxc_int.h
+0
-11
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_encodeframe.c
+4
-1
No files found.
vp9/common/vp9_onyxc_int.h
View file @
62de07c8
...
...
@@ -311,17 +311,6 @@ static INLINE void set_mi_row_col(MACROBLOCKD *xd, const TileInfo *const tile,
xd
->
left_available
=
(
mi_col
>
tile
->
mi_col_start
);
}
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.
cm
->
prev_mi
=
use_prev_in_find_mv_refs
?
cm
->
prev_mip
+
cm
->
mi_stride
+
1
:
NULL
;
}
static
INLINE
void
update_partition_context
(
MACROBLOCKD
*
xd
,
int
mi_row
,
int
mi_col
,
BLOCK_SIZE
subsize
,
...
...
vp9/encoder/vp9_encodeframe.c
View file @
62de07c8
...
...
@@ -3627,12 +3627,15 @@ static void encode_frame_internal(VP9_COMP *cpi) {
vp9_initialize_rd_consts
(
cpi
);
vp9_initialize_me_consts
(
cpi
,
cm
->
base_qindex
);
init_encode_frame_mb_context
(
cpi
);
set_prev_mi
(
cm
);
cm
->
use_prev_frame_mvs
=
!
cm
->
error_resilient_mode
&&
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.
cm
->
prev_mi
=
cm
->
use_prev_frame_mvs
?
cm
->
prev_mip
+
cm
->
mi_stride
+
1
:
NULL
;
x
->
quant_fp
=
cpi
->
sf
.
use_quant_fp
;
vp9_zero
(
x
->
skip_txfm
);
...
...
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