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
Guillaume Martres
aom-rav1e
Commits
431aaefb
Commit
431aaefb
authored
Dec 19, 2013
by
Dmitry Kovalev
Browse files
Replacing 1 << mi_{width, height}_log2() with lookup tables.
Change-Id: Iba91ff1e797a83517e2cd7c3ab86cba39f39415b
parent
c67ee5ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encodeframe.c
View file @
431aaefb
...
...
@@ -368,8 +368,8 @@ static void select_in_frame_q_segment(VP9_COMP *cpi,
int
target_rate
=
cpi
->
rc
.
sb64_target_rate
<<
8
;
// convert to bits << 8
const
int
mi_offset
=
mi_row
*
cm
->
mi_cols
+
mi_col
;
const
int
bw
=
1
<<
mi
_wid
th
_lo
g2
(
BLOCK_64X64
)
;
const
int
bh
=
1
<<
mi
_h
e
igh
t
_lo
g2
(
BLOCK_64X64
)
;
const
int
bw
=
num_8x8_blocks
_wid
e
_lo
okup
[
BLOCK_64X64
]
;
const
int
bh
=
num_8x8_blocks
_high_lo
okup
[
BLOCK_64X64
]
;
const
int
xmis
=
MIN
(
cm
->
mi_cols
-
mi_col
,
bw
);
const
int
ymis
=
MIN
(
cm
->
mi_rows
-
mi_row
,
bh
);
int
complexity_metric
=
64
;
...
...
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