Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
93d44fb3
Commit
93d44fb3
authored
Mar 13, 2017
by
Yaowu Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce size in FrameSizeTests for 32-bit arch
BUG=aomedia:394 Change-Id: I7d9e413dcd0fe832aaec570bc6c1f0d2b644de09
parent
63234547
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
test/frame_size_tests.cc
test/frame_size_tests.cc
+12
-12
No files found.
test/frame_size_tests.cc
View file @
93d44fb3
...
...
@@ -66,18 +66,18 @@ TEST_F(AV1FrameSizeTests, LargeValidSizes) {
expected_res_
=
AOM_CODEC_OK
;
ASSERT_NO_FATAL_FAILURE
(
RunLoop
(
&
video
));
#else
// This test produces a pretty large single frame allocation, (roughly
// 25 megabits). The encoder allocates a good number of these frames
// one for each lag in frames (for 2 pass), and then one for each possible
// reference buffer (8) - we can end up with up to 30 buffers of roughly this
// size or almost 1 gig of memory.
// In total the allocations will exceed 2GiB which may cause a failure with
// mingw + wine
, use a smaller size in that case.
#if defined(_WIN32) && !defined(_WIN64) || defined(__OS2__
)
video
.
SetSize
(
2560
,
1440
);
#
else
video
.
SetSize
(
4096
,
4096
);
#endif
// This test produces a pretty large single frame allocation, (roughly
// 25 megabits). The encoder allocates a good number of these frames
// one for each lag in frames (for 2 pass), and then one for each possible
// reference buffer (8) - we can end up with up to 30 buffers of roughly this
// size or almost 1 gig of memory.
// In total the allocations will exceed 2GiB which may cause a failure with
// non-64 bit platforms
, use a smaller size in that case.
if
(
sizeof
(
void
*
)
<
8
)
video
.
SetSize
(
2560
,
1440
);
else
video
.
SetSize
(
4096
,
4096
);
video
.
set_limit
(
2
);
expected_res_
=
AOM_CODEC_OK
;
ASSERT_NO_FATAL_FAILURE
(
RunLoop
(
&
video
));
...
...
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