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
a1cdb534
Commit
a1cdb534
authored
Oct 01, 2017
by
Pavel Frolov
Browse files
Fix get_tile_size()
BUG=aomedia:850 Change-Id: I24d9487f13809e92239467403bae0c6c9fcb4c39
parent
2408c22d
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/tile_common.c
View file @
a1cdb534
...
...
@@ -226,8 +226,9 @@ int get_tile_size(int mi_frame_size, int log2_tile_num, int *ntiles) {
// the max superblock size. To do this, shift right (and round up) to get the
// tile size in max super-blocks and then shift left again to convert it to
// mi units.
const
int
shift
=
log2_tile_num
+
MAX_MIB_SIZE_LOG2
;
const
int
max_sb_tile_size
=
ROUND
_POWER_OF_TWO
(
mi_frame_size
,
log2_tile_num
+
MAX_MIB_SIZE_LOG2
)
;
ALIGN
_POWER_OF_TWO
(
mi_frame_size
,
shift
)
>>
shift
;
const
int
mi_tile_size
=
max_sb_tile_size
<<
MAX_MIB_SIZE_LOG2
;
// The actual number of tiles is the ceiling of the frame size in mi units
...
...
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