Commit 93d44fb3 authored by Yaowu Xu's avatar Yaowu Xu

Reduce size in FrameSizeTests for 32-bit arch

BUG=aomedia:394

Change-Id: I7d9e413dcd0fe832aaec570bc6c1f0d2b644de09
parent 63234547
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment