OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 "test/codec_factory.h" | 10 #include "test/codec_factory.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 DecompressedFrameHook(*img, video->frame_number()); | 103 DecompressedFrameHook(*img, video->frame_number()); |
104 } | 104 } |
105 delete decoder; | 105 delete decoder; |
106 } | 106 } |
107 | 107 |
108 void DecoderTest::RunLoop(CompressedVideoSource *video) { | 108 void DecoderTest::RunLoop(CompressedVideoSource *video) { |
109 vpx_codec_dec_cfg_t dec_cfg = vpx_codec_dec_cfg_t(); | 109 vpx_codec_dec_cfg_t dec_cfg = vpx_codec_dec_cfg_t(); |
110 RunLoop(video, dec_cfg); | 110 RunLoop(video, dec_cfg); |
111 } | 111 } |
112 | 112 |
| 113 void DecoderTest::set_cfg(const vpx_codec_dec_cfg_t &dec_cfg) { |
| 114 memcpy(&cfg_, &dec_cfg, sizeof(cfg_)); |
| 115 } |
| 116 |
| 117 void DecoderTest::set_flags(const vpx_codec_flags_t flags) { |
| 118 flags_ = flags; |
| 119 } |
| 120 |
113 } // namespace libvpx_test | 121 } // namespace libvpx_test |
OLD | NEW |