| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 #include <climits> | 10 #include <climits> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 video.SetSize(DECODE_WIDTH_LIMIT, DECODE_HEIGHT_LIMIT); | 82 video.SetSize(DECODE_WIDTH_LIMIT, DECODE_HEIGHT_LIMIT); |
| 83 video.set_limit(2); | 83 video.set_limit(2); |
| 84 expected_res_ = VPX_CODEC_OK; | 84 expected_res_ = VPX_CODEC_OK; |
| 85 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); | 85 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); |
| 86 #else | 86 #else |
| 87 // This test produces a pretty large single frame allocation, (roughly | 87 // This test produces a pretty large single frame allocation, (roughly |
| 88 // 25 megabits). The encoder allocates a good number of these frames | 88 // 25 megabits). The encoder allocates a good number of these frames |
| 89 // one for each lag in frames (for 2 pass), and then one for each possible | 89 // one for each lag in frames (for 2 pass), and then one for each possible |
| 90 // reference buffer (8) - we can end up with up to 30 buffers of roughly this | 90 // reference buffer (8) - we can end up with up to 30 buffers of roughly this |
| 91 // size or almost 1 gig of memory. | 91 // size or almost 1 gig of memory. |
| 92 video.SetSize(4096, 4096); | 92 // TODO(jzern): restore this to at least 4096x4096 after issue #828 is fixed. |
| 93 video.SetSize(4096, 2160); |
| 93 video.set_limit(2); | 94 video.set_limit(2); |
| 94 expected_res_ = VPX_CODEC_OK; | 95 expected_res_ = VPX_CODEC_OK; |
| 95 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); | 96 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); |
| 96 #endif | 97 #endif |
| 97 } | 98 } |
| 98 } // namespace | 99 } // namespace |
| OLD | NEW |