Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
a64c05b5
Commit
a64c05b5
authored
Feb 01, 2018
by
Yaowu Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align allocated buffers
BUG=aomedia:1306 Change-Id: I5a8bdbd472213ded2de706c5b044a1bf24823670
parent
1e79d90e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/comp_mask_variance_test.cc
test/comp_mask_variance_test.cc
+4
-4
No files found.
test/comp_mask_variance_test.cc
View file @
a64c05b5
...
...
@@ -64,10 +64,10 @@ AV1CompMaskVarianceTest::~AV1CompMaskVarianceTest() { ; }
void
AV1CompMaskVarianceTest
::
SetUp
()
{
rnd_
.
Reset
(
libaom_test
::
ACMRandom
::
DeterministicSeed
());
av1_init_wedge_masks
();
comp_pred1_
=
(
uint8_t
*
)
aom_
calloc
(
MAX_SB_SQUARE
,
1
);
comp_pred2_
=
(
uint8_t
*
)
aom_
calloc
(
MAX_SB_SQUARE
,
1
);
pred_
=
(
uint8_t
*
)
aom_m
alloc
(
MAX_SB_SQUARE
);
ref_buffer_
=
(
uint8_t
*
)
aom_m
alloc
(
MAX_SB_SQUARE
+
(
8
*
MAX_SB_SIZE
));
comp_pred1_
=
(
uint8_t
*
)
aom_
memalign
(
16
,
MAX_SB_SQUARE
);
comp_pred2_
=
(
uint8_t
*
)
aom_
memalign
(
16
,
MAX_SB_SQUARE
);
pred_
=
(
uint8_t
*
)
aom_m
emalign
(
16
,
MAX_SB_SQUARE
);
ref_buffer_
=
(
uint8_t
*
)
aom_m
emalign
(
16
,
MAX_SB_SQUARE
+
(
8
*
MAX_SB_SIZE
));
ref_
=
ref_buffer_
+
(
8
*
MAX_SB_SIZE
);
for
(
int
i
=
0
;
i
<
MAX_SB_SQUARE
;
++
i
)
{
pred_
[
i
]
=
rnd_
.
Rand8
();
...
...
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