Skip to content
GitLab
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
5a31bc89
Commit
5a31bc89
authored
Jan 04, 2018
by
Hui Su
Browse files
Remove unnecessary memset in build_intra_predictors()
Change-Id: I3064152e2c37ed330adc388e62acc2948a5cea82
parent
16dbfeda
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/reconintra.c
View file @
5a31bc89
...
...
@@ -1723,12 +1723,12 @@ static void build_intra_predictors_high(
#endif // CONFIG_FILTER_INTRA
int
base
=
128
<<
(
xd
->
bd
-
8
);
//
base-1 base-1 base-1 .. base-1 base-1 base-1 base-1 base-1 base-1
// base
+
1
A B .. Y Z
// base+1
C
D
..
W
X
// base+1
E
F
..
U
V
// base+1
G
H
..
S T T T T T
aom_memset16
(
left_data
,
base
+
1
,
sizeof
(
left_data
)
/
sizeof
(
*
left_data
));
//
The default values if ref pixels are not available:
// base
-
1
base-1 base-1 .. base-1 base-1 base-1 base-1 base-1 base-1
// base+1
A
B
..
Y
Z
// base+1
C
D
..
W
X
// base+1
E
F
..
U V
// base+1 G H .. S T T T T T
#if CONFIG_EXT_INTRA
if
(
is_dr_mode
)
{
...
...
@@ -1960,13 +1960,13 @@ static void build_intra_predictors(const MACROBLOCKD *xd, const uint8_t *ref,
xd
->
mi
[
0
]
->
mbmi
.
filter_intra_mode_info
.
filter_intra_mode
;
#endif // CONFIG_FILTER_INTRA
//
127 127 127 .. 127 127 127 127 127 127
// 12
9 A B .. Y Z
// 129
C
D
..
W
X
// 129
E
F
..
U
V
// 129
G
H
..
S T T T T T
// ..
memset
(
left_data
,
129
,
sizeof
(
left_data
));
//
The default values if ref pixels are not available:
// 12
7 127 127 .. 127 127 127 127 127 127
// 129
A
B
..
Y
Z
// 129
C
D
..
W
X
// 129
E
F
..
U V
// 129 G H .. S T T T T T
// ..
#if CONFIG_EXT_INTRA
if
(
is_dr_mode
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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