OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 | 10 |
11 #include "test/test_vectors.h" | 11 #include "test/test_vectors.h" |
12 | 12 |
13 namespace libvpx_test { | 13 namespace libvpx_test { |
14 | 14 |
| 15 #define NELEMENTS(x) static_cast<int>(sizeof(x) / sizeof(x[0])) |
| 16 |
15 #if CONFIG_VP8_DECODER | 17 #if CONFIG_VP8_DECODER |
16 const char *kVP8TestVectors[kNumVp8TestVectors] = { | 18 const char *const kVP8TestVectors[] = { |
17 "vp80-00-comprehensive-001.ivf", | 19 "vp80-00-comprehensive-001.ivf", |
18 "vp80-00-comprehensive-002.ivf", "vp80-00-comprehensive-003.ivf", | 20 "vp80-00-comprehensive-002.ivf", "vp80-00-comprehensive-003.ivf", |
19 "vp80-00-comprehensive-004.ivf", "vp80-00-comprehensive-005.ivf", | 21 "vp80-00-comprehensive-004.ivf", "vp80-00-comprehensive-005.ivf", |
20 "vp80-00-comprehensive-006.ivf", "vp80-00-comprehensive-007.ivf", | 22 "vp80-00-comprehensive-006.ivf", "vp80-00-comprehensive-007.ivf", |
21 "vp80-00-comprehensive-008.ivf", "vp80-00-comprehensive-009.ivf", | 23 "vp80-00-comprehensive-008.ivf", "vp80-00-comprehensive-009.ivf", |
22 "vp80-00-comprehensive-010.ivf", "vp80-00-comprehensive-011.ivf", | 24 "vp80-00-comprehensive-010.ivf", "vp80-00-comprehensive-011.ivf", |
23 "vp80-00-comprehensive-012.ivf", "vp80-00-comprehensive-013.ivf", | 25 "vp80-00-comprehensive-012.ivf", "vp80-00-comprehensive-013.ivf", |
24 "vp80-00-comprehensive-014.ivf", "vp80-00-comprehensive-015.ivf", | 26 "vp80-00-comprehensive-014.ivf", "vp80-00-comprehensive-015.ivf", |
25 "vp80-00-comprehensive-016.ivf", "vp80-00-comprehensive-017.ivf", | 27 "vp80-00-comprehensive-016.ivf", "vp80-00-comprehensive-017.ivf", |
26 "vp80-00-comprehensive-018.ivf", "vp80-01-intra-1400.ivf", | 28 "vp80-00-comprehensive-018.ivf", "vp80-01-intra-1400.ivf", |
(...skipping 13 matching lines...) Expand all Loading... |
40 "vp80-03-segmentation-1437.ivf", "vp80-03-segmentation-1441.ivf", | 42 "vp80-03-segmentation-1437.ivf", "vp80-03-segmentation-1441.ivf", |
41 "vp80-03-segmentation-1442.ivf", "vp80-04-partitions-1404.ivf", | 43 "vp80-03-segmentation-1442.ivf", "vp80-04-partitions-1404.ivf", |
42 "vp80-04-partitions-1405.ivf", "vp80-04-partitions-1406.ivf", | 44 "vp80-04-partitions-1405.ivf", "vp80-04-partitions-1406.ivf", |
43 "vp80-05-sharpness-1428.ivf", "vp80-05-sharpness-1429.ivf", | 45 "vp80-05-sharpness-1428.ivf", "vp80-05-sharpness-1429.ivf", |
44 "vp80-05-sharpness-1430.ivf", "vp80-05-sharpness-1431.ivf", | 46 "vp80-05-sharpness-1430.ivf", "vp80-05-sharpness-1431.ivf", |
45 "vp80-05-sharpness-1433.ivf", "vp80-05-sharpness-1434.ivf", | 47 "vp80-05-sharpness-1433.ivf", "vp80-05-sharpness-1434.ivf", |
46 "vp80-05-sharpness-1438.ivf", "vp80-05-sharpness-1439.ivf", | 48 "vp80-05-sharpness-1438.ivf", "vp80-05-sharpness-1439.ivf", |
47 "vp80-05-sharpness-1440.ivf", "vp80-05-sharpness-1443.ivf", | 49 "vp80-05-sharpness-1440.ivf", "vp80-05-sharpness-1443.ivf", |
48 "vp80-06-smallsize.ivf" | 50 "vp80-06-smallsize.ivf" |
49 }; | 51 }; |
| 52 const int kNumVP8TestVectors = NELEMENTS(kVP8TestVectors); |
50 #endif // CONFIG_VP8_DECODER | 53 #endif // CONFIG_VP8_DECODER |
51 #if CONFIG_VP9_DECODER | 54 #if CONFIG_VP9_DECODER |
52 const char *kVP9TestVectors[kNumVp9TestVectors] = { | 55 const char *const kVP9TestVectors[] = { |
53 "vp90-2-00-quantizer-00.webm", "vp90-2-00-quantizer-01.webm", | 56 "vp90-2-00-quantizer-00.webm", "vp90-2-00-quantizer-01.webm", |
54 "vp90-2-00-quantizer-02.webm", "vp90-2-00-quantizer-03.webm", | 57 "vp90-2-00-quantizer-02.webm", "vp90-2-00-quantizer-03.webm", |
55 "vp90-2-00-quantizer-04.webm", "vp90-2-00-quantizer-05.webm", | 58 "vp90-2-00-quantizer-04.webm", "vp90-2-00-quantizer-05.webm", |
56 "vp90-2-00-quantizer-06.webm", "vp90-2-00-quantizer-07.webm", | 59 "vp90-2-00-quantizer-06.webm", "vp90-2-00-quantizer-07.webm", |
57 "vp90-2-00-quantizer-08.webm", "vp90-2-00-quantizer-09.webm", | 60 "vp90-2-00-quantizer-08.webm", "vp90-2-00-quantizer-09.webm", |
58 "vp90-2-00-quantizer-10.webm", "vp90-2-00-quantizer-11.webm", | 61 "vp90-2-00-quantizer-10.webm", "vp90-2-00-quantizer-11.webm", |
59 "vp90-2-00-quantizer-12.webm", "vp90-2-00-quantizer-13.webm", | 62 "vp90-2-00-quantizer-12.webm", "vp90-2-00-quantizer-13.webm", |
60 "vp90-2-00-quantizer-14.webm", "vp90-2-00-quantizer-15.webm", | 63 "vp90-2-00-quantizer-14.webm", "vp90-2-00-quantizer-15.webm", |
61 "vp90-2-00-quantizer-16.webm", "vp90-2-00-quantizer-17.webm", | 64 "vp90-2-00-quantizer-16.webm", "vp90-2-00-quantizer-17.webm", |
62 "vp90-2-00-quantizer-18.webm", "vp90-2-00-quantizer-19.webm", | 65 "vp90-2-00-quantizer-18.webm", "vp90-2-00-quantizer-19.webm", |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 "vp90-2-07-frame_parallel.webm", "vp90-2-08-tile_1x2_frame_parallel.webm", | 157 "vp90-2-07-frame_parallel.webm", "vp90-2-08-tile_1x2_frame_parallel.webm", |
155 "vp90-2-08-tile_1x2.webm", "vp90-2-08-tile_1x4_frame_parallel.webm", | 158 "vp90-2-08-tile_1x2.webm", "vp90-2-08-tile_1x4_frame_parallel.webm", |
156 "vp90-2-08-tile_1x4.webm", "vp90-2-08-tile_1x8_frame_parallel.webm", | 159 "vp90-2-08-tile_1x4.webm", "vp90-2-08-tile_1x8_frame_parallel.webm", |
157 "vp90-2-08-tile_1x8.webm", "vp90-2-08-tile-4x4.webm", | 160 "vp90-2-08-tile_1x8.webm", "vp90-2-08-tile-4x4.webm", |
158 "vp90-2-08-tile-4x1.webm", "vp90-2-09-subpixel-00.ivf", | 161 "vp90-2-08-tile-4x1.webm", "vp90-2-09-subpixel-00.ivf", |
159 "vp90-2-02-size-lf-1920x1080.webm", "vp90-2-09-aq2.webm", | 162 "vp90-2-02-size-lf-1920x1080.webm", "vp90-2-09-aq2.webm", |
160 "vp90-2-09-lf_deltas.webm", "vp90-2-10-show-existing-frame.webm", | 163 "vp90-2-09-lf_deltas.webm", "vp90-2-10-show-existing-frame.webm", |
161 "vp90-2-11-size-351x287.webm", "vp90-2-11-size-351x288.webm", | 164 "vp90-2-11-size-351x287.webm", "vp90-2-11-size-351x288.webm", |
162 "vp90-2-11-size-352x287.webm", "vp90-2-12-droppable_1.ivf", | 165 "vp90-2-11-size-352x287.webm", "vp90-2-12-droppable_1.ivf", |
163 "vp90-2-12-droppable_2.ivf", "vp90-2-12-droppable_3.ivf", | 166 "vp90-2-12-droppable_2.ivf", "vp90-2-12-droppable_3.ivf", |
164 "vp91-2-04-yv444.webm" | 167 "vp90-2-13-largescaling.webm", "vp91-2-04-yv444.webm", |
| 168 "vp90-2-14-resize-fp-tiles-1-16.webm", |
| 169 "vp90-2-14-resize-fp-tiles-1-2-4-8-16.webm", |
| 170 "vp90-2-14-resize-fp-tiles-1-2.webm", "vp90-2-14-resize-fp-tiles-1-4.webm", |
| 171 "vp90-2-14-resize-fp-tiles-16-1.webm", "vp90-2-14-resize-fp-tiles-16-2.webm", |
| 172 "vp90-2-14-resize-fp-tiles-16-4.webm", |
| 173 "vp90-2-14-resize-fp-tiles-16-8-4-2-1.webm", |
| 174 "vp90-2-14-resize-fp-tiles-16-8.webm", "vp90-2-14-resize-fp-tiles-1-8.webm", |
| 175 "vp90-2-14-resize-fp-tiles-2-16.webm", "vp90-2-14-resize-fp-tiles-2-1.webm", |
| 176 "vp90-2-14-resize-fp-tiles-2-4.webm", "vp90-2-14-resize-fp-tiles-2-8.webm", |
| 177 "vp90-2-14-resize-fp-tiles-4-16.webm", "vp90-2-14-resize-fp-tiles-4-1.webm", |
| 178 "vp90-2-14-resize-fp-tiles-4-2.webm", "vp90-2-14-resize-fp-tiles-4-8.webm", |
| 179 "vp90-2-14-resize-fp-tiles-8-16.webm", "vp90-2-14-resize-fp-tiles-8-1.webm", |
| 180 "vp90-2-14-resize-fp-tiles-8-2.webm", "vp90-2-14-resize-fp-tiles-8-4.webm" |
165 }; | 181 }; |
| 182 const int kNumVP9TestVectors = NELEMENTS(kVP9TestVectors); |
166 #endif // CONFIG_VP9_DECODER | 183 #endif // CONFIG_VP9_DECODER |
167 | 184 |
168 } // namespace libvpx_test | 185 } // namespace libvpx_test |
OLD | NEW |