Refactor prob_diff_update_savings_search_model
[aom.git] / test / i420_video_source.h
blob0a184805c2f5d0bcfed0f871fab8ea744f7c3108
1 /*
2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved.
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10 #ifndef TEST_I420_VIDEO_SOURCE_H_
11 #define TEST_I420_VIDEO_SOURCE_H_
12 #include <cstdio>
13 #include <cstdlib>
14 #include <string>
16 #include "test/yuv_video_source.h"
18 namespace libvpx_test {
20 // This class extends VideoSource to allow parsing of raw yv12
21 // so that we can do actual file encodes.
22 class I420VideoSource : public YUVVideoSource {
23 public:
24 I420VideoSource(const std::string &file_name,
25 unsigned int width, unsigned int height,
26 int rate_numerator, int rate_denominator,
27 unsigned int start, int limit)
28 : YUVVideoSource(file_name, VPX_IMG_FMT_I420,
29 width, height,
30 rate_numerator, rate_denominator,
31 start, limit) {}
34 } // namespace libvpx_test
36 #endif // TEST_I420_VIDEO_SOURCE_H_