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
79fa2f6e
Commit
79fa2f6e
authored
Aug 12, 2016
by
James Zern
Committed by
Gerrit Code Review
Aug 12, 2016
Browse files
Merge "reconintra_predictors_test: use new[] operator" into nextgenv2
parents
4dc5bd7b
712e66da
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/reconintra_predictors_test.cc
View file @
79fa2f6e
...
...
@@ -67,10 +67,9 @@ class VP10IntraPredOptimzTest : public ::testing::TestWithParam<PredParams> {
mode_
=
std
::
tr1
::
get
<
2
>
(
funcMode
);
blockSize_
=
GET_PARAM
(
1
);
alloc_
=
(
uint8_t
*
)
malloc
((
3
*
MaxBlkSize
+
2
)
*
sizeof
(
alloc_
[
0
]));
predRef_
=
(
uint8_t
*
)
malloc
(
MaxBlkSize
*
MaxBlkSize
*
sizeof
(
predRef_
[
0
]));
pred_
=
(
uint8_t
*
)
malloc
(
MaxBlkSize
*
MaxBlkSize
*
sizeof
(
pred_
[
0
]));
alloc_
=
new
uint8_t
[
3
*
MaxBlkSize
+
2
];
predRef_
=
new
uint8_t
[
MaxBlkSize
*
MaxBlkSize
];
pred_
=
new
uint8_t
[
MaxBlkSize
*
MaxBlkSize
];
}
virtual
void
TearDown
()
{
...
...
@@ -163,10 +162,9 @@ class VP10HbdIntraPredOptimzTest :
blockSize_
=
GET_PARAM
(
1
);
bd_
=
GET_PARAM
(
2
);
alloc_
=
(
uint16_t
*
)
malloc
((
3
*
MaxBlkSize
+
2
)
*
sizeof
(
alloc_
[
0
]));
predRef_
=
(
uint16_t
*
)
malloc
(
MaxBlkSize
*
MaxBlkSize
*
sizeof
(
predRef_
[
0
]));
pred_
=
(
uint16_t
*
)
malloc
(
MaxBlkSize
*
MaxBlkSize
*
sizeof
(
pred_
[
0
]));
alloc_
=
new
uint16_t
[
3
*
MaxBlkSize
+
2
];
predRef_
=
new
uint16_t
[
MaxBlkSize
*
MaxBlkSize
];
pred_
=
new
uint16_t
[
MaxBlkSize
*
MaxBlkSize
];
}
virtual
void
TearDown
()
{
...
...
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