Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
add7e3c1
Commit
add7e3c1
authored
Sep 04, 2017
by
Jingning Han
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Localize variable definitions in update_stats
Change-Id: I2faf5d43db1e5726a08b24a19d8fb7ae1b86ad0a
parent
59f92319
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
av1/encoder/encodeframe.c
av1/encoder/encodeframe.c
+2
-2
No files found.
av1/encoder/encodeframe.c
View file @
add7e3c1
...
...
@@ -591,8 +591,6 @@ static void update_state(const AV1_COMP *const cpi, ThreadData *td,
const
struct
segmentation
*
const
seg
=
&
cm
->
seg
;
const
int
bw
=
mi_size_wide
[
mi
->
mbmi
.
sb_type
];
const
int
bh
=
mi_size_high
[
mi
->
mbmi
.
sb_type
];
int
x_mis
=
AOMMIN
(
bw
,
cm
->
mi_cols
-
mi_col
);
int
y_mis
=
AOMMIN
(
bh
,
cm
->
mi_rows
-
mi_row
);
int
w
,
h
;
const
int
mis
=
cm
->
mi_stride
;
...
...
@@ -758,6 +756,8 @@ static void update_state(const AV1_COMP *const cpi, ThreadData *td,
MV_REF
*
const
frame_mvs
=
cm
->
cur_frame
->
mvs
+
(
mi_row
&
0xfffe
)
*
cm
->
mi_cols
+
(
mi_col
&
0xfffe
);
int
x_mis
=
AOMMIN
(
bw
,
cm
->
mi_cols
-
mi_col
);
int
y_mis
=
AOMMIN
(
bh
,
cm
->
mi_rows
-
mi_row
);
x_mis
=
AOMMAX
(
2
,
x_mis
);
y_mis
=
AOMMAX
(
2
,
y_mis
);
for
(
h
=
0
;
h
<
y_mis
;
++
h
)
{
...
...
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