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 #ifndef TEST_CODEC_FACTORY_H_ | 10 #ifndef TEST_CODEC_FACTORY_H_ |
11 #define TEST_CODEC_FACTORY_H_ | 11 #define TEST_CODEC_FACTORY_H_ |
12 | 12 |
13 extern "C" { | 13 extern "C" { |
14 #include "./vpx_config.h" | 14 #include "./vpx_config.h" |
15 #include "vpx/vpx_decoder.h" | 15 #include "vpx/vpx_decoder.h" |
16 #include "vpx/vpx_encoder.h" | 16 #include "vpx/vpx_encoder.h" |
17 #if CONFIG_VP8_ENCODER || CONFIG_VP9_ENCODER | 17 #if CONFIG_VP8_ENCODER || CONFIG_VP9_ENCODER |
18 #include "vpx/vp8cx.h" | 18 #include "vpx/vp8cx.h" |
19 #endif | 19 #endif |
20 #if CONFIG_VP8_DECODER || CONFIG_VP9_DECODER | 20 #if CONFIG_VP8_DECODER || CONFIG_VP9_DECODER |
21 #include "vpx/vp8dx.h" | 21 #include "vpx/vp8dx.h" |
22 #endif | 22 #endif |
23 } | 23 } |
24 | 24 |
25 #include "test/decode_test_driver.h" | 25 #include "test/decode_test_driver.h" |
26 #include "test/encode_test_driver.h" | 26 #include "test/encode_test_driver.h" |
27 namespace libvpx_test { | 27 namespace libvpx_test { |
28 | 28 |
| 29 const int kCodecFactoryParam = 0; |
| 30 |
29 class CodecFactory { | 31 class CodecFactory { |
30 public: | 32 public: |
31 CodecFactory() {} | 33 CodecFactory() {} |
32 | 34 |
33 virtual ~CodecFactory() {} | 35 virtual ~CodecFactory() {} |
34 | 36 |
35 virtual Decoder* CreateDecoder(vpx_codec_dec_cfg_t cfg, | 37 virtual Decoder* CreateDecoder(vpx_codec_dec_cfg_t cfg, |
36 unsigned long deadline) const = 0; | 38 unsigned long deadline) const = 0; |
37 | 39 |
38 virtual Encoder* CreateEncoder(vpx_codec_enc_cfg_t cfg, | 40 virtual Encoder* CreateEncoder(vpx_codec_enc_cfg_t cfg, |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 &libvpx_test::kVP9)), \ | 225 &libvpx_test::kVP9)), \ |
224 __VA_ARGS__)) | 226 __VA_ARGS__)) |
225 #else | 227 #else |
226 #define VP9_INSTANTIATE_TEST_CASE(test, ...) | 228 #define VP9_INSTANTIATE_TEST_CASE(test, ...) |
227 #endif // CONFIG_VP9 | 229 #endif // CONFIG_VP9 |
228 | 230 |
229 | 231 |
230 } // namespace libvpx_test | 232 } // namespace libvpx_test |
231 | 233 |
232 #endif // TEST_CODEC_FACTORY_H_ | 234 #endif // TEST_CODEC_FACTORY_H_ |
OLD | NEW |