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
Xiph.Org
aom-rav1e
Commits
91ad0e8b
Commit
91ad0e8b
authored
Dec 07, 2016
by
Jingning Han
Browse files
Retain mb_rows/cols/ as 16x16 block count
Change-Id: I3d0605a314fbd469133c96c76340396810242ada
parent
ff17e16c
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/alloccommon.c
View file @
91ad0e8b
...
...
@@ -26,8 +26,13 @@ void av1_set_mb_mi(AV1_COMMON *cm, int width, int height) {
cm
->
mi_rows
=
aligned_height
>>
MI_SIZE_LOG2
;
cm
->
mi_stride
=
calc_mi_size
(
cm
->
mi_cols
);
#if CONFIG_CB4X4
cm
->
mb_cols
=
(
cm
->
mi_cols
+
2
)
>>
2
;
cm
->
mb_rows
=
(
cm
->
mi_rows
+
2
)
>>
2
;
#else
cm
->
mb_cols
=
(
cm
->
mi_cols
+
1
)
>>
1
;
cm
->
mb_rows
=
(
cm
->
mi_rows
+
1
)
>>
1
;
#endif
cm
->
MBs
=
cm
->
mb_rows
*
cm
->
mb_cols
;
}
...
...
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