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
c3f5bd1c
Commit
c3f5bd1c
authored
Mar 12, 2017
by
Yaowu Xu
Browse files
Align memory allocation for SIMD operations
Change-Id: I035d4a3b14e6c56a55b06dea57b4a49cd161e69f
parent
66ee4402
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/selfguided_filter_test.cc
View file @
c3f5bd1c
...
...
@@ -46,7 +46,7 @@ class AV1SelfguidedFilterTest
uint8_t
*
input
=
new
uint8_t
[
w
*
h
];
uint8_t
*
output
=
new
uint8_t
[
w
*
h
];
int32_t
*
tmpbuf
=
(
int32_t
*
)
aom_m
alloc
(
RESTORATION_TMPBUF_SIZE
);
int32_t
*
tmpbuf
=
(
int32_t
*
)
aom_m
emalign
(
16
,
RESTORATION_TMPBUF_SIZE
);
memset
(
tmpbuf
,
0
,
RESTORATION_TMPBUF_SIZE
);
ACMRandom
rnd
(
ACMRandom
::
DeterministicSeed
());
...
...
@@ -92,7 +92,7 @@ class AV1SelfguidedFilterTest
uint8_t
*
input
=
new
uint8_t
[
stride
*
max_h
];
uint8_t
*
output
=
new
uint8_t
[
out_stride
*
max_h
];
uint8_t
*
output2
=
new
uint8_t
[
out_stride
*
max_h
];
int32_t
*
tmpbuf
=
(
int32_t
*
)
aom_m
alloc
(
RESTORATION_TMPBUF_SIZE
);
int32_t
*
tmpbuf
=
(
int32_t
*
)
aom_m
emalign
(
16
,
RESTORATION_TMPBUF_SIZE
);
memset
(
tmpbuf
,
0
,
RESTORATION_TMPBUF_SIZE
);
ACMRandom
rnd
(
ACMRandom
::
DeterministicSeed
());
...
...
@@ -163,7 +163,7 @@ class AV1HighbdSelfguidedFilterTest
uint16_t
*
input
=
new
uint16_t
[
w
*
h
];
uint16_t
*
output
=
new
uint16_t
[
w
*
h
];
int32_t
*
tmpbuf
=
(
int32_t
*
)
aom_m
alloc
(
RESTORATION_TMPBUF_SIZE
);
int32_t
*
tmpbuf
=
(
int32_t
*
)
aom_m
emalign
(
16
,
RESTORATION_TMPBUF_SIZE
);
memset
(
tmpbuf
,
0
,
RESTORATION_TMPBUF_SIZE
);
ACMRandom
rnd
(
ACMRandom
::
DeterministicSeed
());
...
...
@@ -212,7 +212,7 @@ class AV1HighbdSelfguidedFilterTest
uint16_t
*
input
=
new
uint16_t
[
stride
*
max_h
];
uint16_t
*
output
=
new
uint16_t
[
out_stride
*
max_h
];
uint16_t
*
output2
=
new
uint16_t
[
out_stride
*
max_h
];
int32_t
*
tmpbuf
=
(
int32_t
*
)
aom_m
alloc
(
RESTORATION_TMPBUF_SIZE
);
int32_t
*
tmpbuf
=
(
int32_t
*
)
aom_m
emalign
(
16
,
RESTORATION_TMPBUF_SIZE
);
memset
(
tmpbuf
,
0
,
RESTORATION_TMPBUF_SIZE
);
ACMRandom
rnd
(
ACMRandom
::
DeterministicSeed
());
...
...
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