OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 11 matching lines...) Expand all Loading... |
22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #include <sstream> | 28 #include <sstream> |
29 | 29 |
30 #include "libyuv/cpu_id.h" | 30 #include "libyuv/cpu_id.h" |
31 #include "libyuv/scale.h" | 31 #include "libyuv/scale.h" |
32 #include "talk/media/base/testutils.h" | |
33 #include "webrtc/base/basictypes.h" | 32 #include "webrtc/base/basictypes.h" |
34 #include "webrtc/base/flags.h" | 33 #include "webrtc/base/flags.h" |
35 #include "webrtc/base/gunit.h" | 34 #include "webrtc/base/gunit.h" |
36 #include "webrtc/base/scoped_ptr.h" | 35 #include "webrtc/base/scoped_ptr.h" |
| 36 #include "webrtc/media/base/testutils.h" |
37 | 37 |
38 #if defined(_MSC_VER) | 38 #if defined(_MSC_VER) |
39 #define ALIGN16(var) __declspec(align(16)) var | 39 #define ALIGN16(var) __declspec(align(16)) var |
40 #else | 40 #else |
41 #define ALIGN16(var) var __attribute__((aligned(16))) | 41 #define ALIGN16(var) var __attribute__((aligned(16))) |
42 #endif | 42 #endif |
43 | 43 |
44 using cricket::LoadPlanarYuvTestImage; | 44 using cricket::LoadPlanarYuvTestImage; |
45 using cricket::DumpPlanarYuvTestImage; | 45 using cricket::DumpPlanarYuvTestImage; |
46 using rtc::scoped_ptr; | 46 using rtc::scoped_ptr; |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 TEST_H(TestScaleDown8xHDOptInt, 1280, 720, 1280 / 8, 720 / 8, true, ALLFLAGS, | 609 TEST_H(TestScaleDown8xHDOptInt, 1280, 720, 1280 / 8, 720 / 8, true, ALLFLAGS, |
610 true, 1) | 610 true, 1) |
611 | 611 |
612 // Tests interpolated 1/8x scale down, using optimized algorithm. | 612 // Tests interpolated 1/8x scale down, using optimized algorithm. |
613 TEST_H(TestScaleDown9xHDOptInt, 1280, 720, 1280 / 9, 720 / 9, true, ALLFLAGS, | 613 TEST_H(TestScaleDown9xHDOptInt, 1280, 720, 1280 / 9, 720 / 9, true, ALLFLAGS, |
614 true, 1) | 614 true, 1) |
615 | 615 |
616 // Tests interpolated 1/8x scale down, using optimized algorithm. | 616 // Tests interpolated 1/8x scale down, using optimized algorithm. |
617 TEST_H(TestScaleDown10xHDOptInt, 1280, 720, 1280 / 10, 720 / 10, true, ALLFLAGS, | 617 TEST_H(TestScaleDown10xHDOptInt, 1280, 720, 1280 / 10, 720 / 10, true, ALLFLAGS, |
618 true, 1) | 618 true, 1) |
OLD | NEW |