John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 1 | /* |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 2 | * Copyright (c) 2016, Alliance for Open Media. All rights reserved |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 3 | * |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 4 | * This source code is subject to the terms of the BSD 2 Clause License and |
| 5 | * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
| 6 | * was not distributed with this source code in the LICENSE file, you can |
| 7 | * obtain it at www.aomedia.org/license/software. If the Alliance for Open |
| 8 | * Media Patent License 1.0 was not distributed with this source code in the |
| 9 | * PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 10 | */ |
| 11 | #ifndef TEST_ENCODE_TEST_DRIVER_H_ |
| 12 | #define TEST_ENCODE_TEST_DRIVER_H_ |
Deb Mukherjee | 01cafaa | 2013-01-15 06:43:35 -0800 | [diff] [blame] | 13 | |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 14 | #include <string> |
| 15 | #include <vector> |
James Zern | 51b7fd0 | 2013-05-03 19:08:08 -0700 | [diff] [blame] | 16 | |
Tom Finegan | 7a07ece | 2017-02-07 17:14:05 -0800 | [diff] [blame] | 17 | #include "third_party/googletest/src/googletest/include/gtest/gtest.h" |
Jingning Han | 097d59c | 2015-07-29 14:51:36 -0700 | [diff] [blame] | 18 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 19 | #include "./aom_config.h" |
| 20 | #if CONFIG_AV1_ENCODER |
| 21 | #include "aom/aomcx.h" |
Alex Converse | a565469 | 2014-03-11 16:40:57 -0700 | [diff] [blame] | 22 | #endif |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 23 | #include "aom/aom_encoder.h" |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 24 | |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 25 | namespace libaom_test { |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 26 | |
John Koleszar | 706cafe | 2013-01-18 11:51:12 -0800 | [diff] [blame] | 27 | class CodecFactory; |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 28 | class VideoSource; |
| 29 | |
| 30 | enum TestMode { |
| 31 | kRealTime, |
| 32 | kOnePassGood, |
| 33 | kOnePassBest, |
| 34 | kTwoPassGood, |
| 35 | kTwoPassBest |
| 36 | }; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 37 | #define ALL_TEST_MODES \ |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 38 | ::testing::Values(::libaom_test::kRealTime, ::libaom_test::kOnePassGood, \ |
| 39 | ::libaom_test::kOnePassBest, ::libaom_test::kTwoPassGood, \ |
| 40 | ::libaom_test::kTwoPassBest) |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 41 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 42 | #define ONE_PASS_TEST_MODES \ |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 43 | ::testing::Values(::libaom_test::kRealTime, ::libaom_test::kOnePassGood, \ |
| 44 | ::libaom_test::kOnePassBest) |
John Koleszar | 2fb29ff | 2012-05-23 12:55:27 -0700 | [diff] [blame] | 45 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 46 | #define TWO_PASS_TEST_MODES \ |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 47 | ::testing::Values(::libaom_test::kTwoPassGood, ::libaom_test::kTwoPassBest) |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 48 | |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 49 | // Provides an object to handle the libaom get_cx_data() iteration pattern |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 50 | class CxDataIterator { |
| 51 | public: |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 52 | explicit CxDataIterator(aom_codec_ctx_t *encoder) |
James Zern | 51b7fd0 | 2013-05-03 19:08:08 -0700 | [diff] [blame] | 53 | : encoder_(encoder), iter_(NULL) {} |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 54 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 55 | const aom_codec_cx_pkt_t *Next() { |
| 56 | return aom_codec_get_cx_data(encoder_, &iter_); |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | private: |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 60 | aom_codec_ctx_t *encoder_; |
| 61 | aom_codec_iter_t iter_; |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 62 | }; |
| 63 | |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 64 | // Implements an in-memory store for libaom twopass statistics |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 65 | class TwopassStatsStore { |
| 66 | public: |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 67 | void Append(const aom_codec_cx_pkt_t &pkt) { |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 68 | buffer_.append(reinterpret_cast<char *>(pkt.data.twopass_stats.buf), |
| 69 | pkt.data.twopass_stats.sz); |
| 70 | } |
| 71 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 72 | aom_fixed_buf_t buf() { |
| 73 | const aom_fixed_buf_t buf = { &buffer_[0], buffer_.size() }; |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 74 | return buf; |
| 75 | } |
| 76 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 77 | void Reset() { buffer_.clear(); } |
Adrian Grange | 30f58b5 | 2012-10-02 09:36:41 -0700 | [diff] [blame] | 78 | |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 79 | protected: |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 80 | std::string buffer_; |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 81 | }; |
| 82 | |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 83 | // Provides a simplified interface to manage one video encoding pass, given |
| 84 | // a configuration and video source. |
| 85 | // |
| 86 | // TODO(jkoleszar): The exact services it provides and the appropriate |
| 87 | // level of abstraction will be fleshed out as more tests are written. |
| 88 | class Encoder { |
| 89 | public: |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 90 | Encoder(aom_codec_enc_cfg_t cfg, unsigned long deadline, |
Adrian Grange | 4206c6d | 2012-10-02 11:03:09 -0700 | [diff] [blame] | 91 | const unsigned long init_flags, TwopassStatsStore *stats) |
John Koleszar | 706cafe | 2013-01-18 11:51:12 -0800 | [diff] [blame] | 92 | : cfg_(cfg), deadline_(deadline), init_flags_(init_flags), stats_(stats) { |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 93 | memset(&encoder_, 0, sizeof(encoder_)); |
| 94 | } |
| 95 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 96 | virtual ~Encoder() { aom_codec_destroy(&encoder_); } |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 97 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 98 | CxDataIterator GetCxData() { return CxDataIterator(&encoder_); } |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 99 | |
Yunqing Wang | 3666478 | 2014-12-12 14:34:30 -0800 | [diff] [blame] | 100 | void InitEncoder(VideoSource *video); |
| 101 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 102 | const aom_image_t *GetPreviewFrame() { |
| 103 | return aom_codec_get_preview_frame(&encoder_); |
Yaowu Xu | c953aea | 2012-08-30 13:43:15 -0700 | [diff] [blame] | 104 | } |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 105 | // This is a thin wrapper around aom_codec_encode(), so refer to |
| 106 | // aom_encoder.h for its semantics. |
Adrian Grange | 4206c6d | 2012-10-02 11:03:09 -0700 | [diff] [blame] | 107 | void EncodeFrame(VideoSource *video, const unsigned long frame_flags); |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 108 | |
| 109 | // Convenience wrapper for EncodeFrame() |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 110 | void EncodeFrame(VideoSource *video) { EncodeFrame(video, 0); } |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 111 | |
John Koleszar | 606ac45 | 2012-07-10 15:43:44 -0700 | [diff] [blame] | 112 | void Control(int ctrl_id, int arg) { |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 113 | const aom_codec_err_t res = aom_codec_control_(&encoder_, ctrl_id, arg); |
| 114 | ASSERT_EQ(AOM_CODEC_OK, res) << EncoderError(); |
John Koleszar | 606ac45 | 2012-07-10 15:43:44 -0700 | [diff] [blame] | 115 | } |
| 116 | |
Yaowu Xu | 7c514e2 | 2015-09-28 15:55:46 -0700 | [diff] [blame] | 117 | void Control(int ctrl_id, int *arg) { |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 118 | const aom_codec_err_t res = aom_codec_control_(&encoder_, ctrl_id, arg); |
| 119 | ASSERT_EQ(AOM_CODEC_OK, res) << EncoderError(); |
Yaowu Xu | 7c514e2 | 2015-09-28 15:55:46 -0700 | [diff] [blame] | 120 | } |
| 121 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 122 | void Control(int ctrl_id, struct aom_scaling_mode *arg) { |
| 123 | const aom_codec_err_t res = aom_codec_control_(&encoder_, ctrl_id, arg); |
| 124 | ASSERT_EQ(AOM_CODEC_OK, res) << EncoderError(); |
John Koleszar | 88f99f4 | 2013-02-06 12:44:20 -0800 | [diff] [blame] | 125 | } |
| 126 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 127 | #if CONFIG_AV1_ENCODER |
| 128 | void Control(int ctrl_id, aom_active_map_t *arg) { |
| 129 | const aom_codec_err_t res = aom_codec_control_(&encoder_, ctrl_id, arg); |
| 130 | ASSERT_EQ(AOM_CODEC_OK, res) << EncoderError(); |
Alex Converse | a565469 | 2014-03-11 16:40:57 -0700 | [diff] [blame] | 131 | } |
| 132 | #endif |
| 133 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 134 | void Config(const aom_codec_enc_cfg_t *cfg) { |
| 135 | const aom_codec_err_t res = aom_codec_enc_config_set(&encoder_, cfg); |
| 136 | ASSERT_EQ(AOM_CODEC_OK, res) << EncoderError(); |
Alex Converse | 797a255 | 2015-01-15 13:56:55 -0800 | [diff] [blame] | 137 | cfg_ = *cfg; |
| 138 | } |
| 139 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 140 | void set_deadline(unsigned long deadline) { deadline_ = deadline; } |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 141 | |
| 142 | protected: |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 143 | virtual aom_codec_iface_t *CodecInterface() const = 0; |
John Koleszar | 706cafe | 2013-01-18 11:51:12 -0800 | [diff] [blame] | 144 | |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 145 | const char *EncoderError() { |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 146 | const char *detail = aom_codec_error_detail(&encoder_); |
| 147 | return detail ? detail : aom_codec_error(&encoder_); |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 148 | } |
| 149 | |
| 150 | // Encode an image |
Adrian Grange | 4206c6d | 2012-10-02 11:03:09 -0700 | [diff] [blame] | 151 | void EncodeFrameInternal(const VideoSource &video, |
| 152 | const unsigned long frame_flags); |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 153 | |
| 154 | // Flush the encoder on EOS |
| 155 | void Flush(); |
| 156 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 157 | aom_codec_ctx_t encoder_; |
| 158 | aom_codec_enc_cfg_t cfg_; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 159 | unsigned long deadline_; |
| 160 | unsigned long init_flags_; |
| 161 | TwopassStatsStore *stats_; |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 162 | }; |
| 163 | |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 164 | // Common test functionality for all Encoder tests. |
| 165 | // |
| 166 | // This class is a mixin which provides the main loop common to all |
| 167 | // encoder tests. It provides hooks which can be overridden by subclasses |
| 168 | // to implement each test's specific behavior, while centralizing the bulk |
| 169 | // of the boilerplate. Note that it doesn't inherit the gtest testing |
| 170 | // classes directly, so that tests can be parameterized differently. |
| 171 | class EncoderTest { |
| 172 | protected: |
John Koleszar | 706cafe | 2013-01-18 11:51:12 -0800 | [diff] [blame] | 173 | explicit EncoderTest(const CodecFactory *codec) |
| 174 | : codec_(codec), abort_(false), init_flags_(0), frame_flags_(0), |
Frank Galligan | 45f9ee2 | 2015-04-14 15:01:56 -0700 | [diff] [blame] | 175 | last_pts_(0) { |
| 176 | // Default to 1 thread. |
| 177 | cfg_.g_threads = 1; |
| 178 | } |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 179 | |
| 180 | virtual ~EncoderTest() {} |
| 181 | |
| 182 | // Initialize the cfg_ member with the default configuration. |
John Koleszar | 706cafe | 2013-01-18 11:51:12 -0800 | [diff] [blame] | 183 | void InitializeConfig(); |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 184 | |
| 185 | // Map the TestMode enum to the deadline_ and passes_ variables. |
| 186 | void SetMode(TestMode mode); |
| 187 | |
hkuang | 9353607 | 2014-11-20 15:39:56 -0800 | [diff] [blame] | 188 | // Set encoder flag. |
| 189 | void set_init_flags(unsigned long flag) { // NOLINT(runtime/int) |
| 190 | init_flags_ = flag; |
| 191 | } |
| 192 | |
Deb Mukherjee | 01cafaa | 2013-01-15 06:43:35 -0800 | [diff] [blame] | 193 | // Main loop |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 194 | virtual void RunLoop(VideoSource *video); |
| 195 | |
| 196 | // Hook to be called at the beginning of a pass. |
James Zern | cae810a | 2014-08-22 11:58:48 -0700 | [diff] [blame] | 197 | virtual void BeginPassHook(unsigned int /*pass*/) {} |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 198 | |
| 199 | // Hook to be called at the end of a pass. |
| 200 | virtual void EndPassHook() {} |
| 201 | |
| 202 | // Hook to be called before encoding a frame. |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 203 | virtual void PreEncodeFrameHook(VideoSource * /*video*/) {} |
| 204 | virtual void PreEncodeFrameHook(VideoSource * /*video*/, |
| 205 | Encoder * /*encoder*/) {} |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 206 | |
| 207 | // Hook to be called on every compressed data packet. |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 208 | virtual void FramePktHook(const aom_codec_cx_pkt_t * /*pkt*/) {} |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 209 | |
Adrian Grange | e6109db | 2012-10-02 11:27:29 -0700 | [diff] [blame] | 210 | // Hook to be called on every PSNR packet. |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 211 | virtual void PSNRPktHook(const aom_codec_cx_pkt_t * /*pkt*/) {} |
Adrian Grange | e6109db | 2012-10-02 11:27:29 -0700 | [diff] [blame] | 212 | |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 213 | // Hook to determine whether the encode loop should continue. |
James Zern | 1c05e9d | 2013-06-25 17:53:20 -0700 | [diff] [blame] | 214 | virtual bool Continue() const { |
| 215 | return !(::testing::Test::HasFatalFailure() || abort_); |
| 216 | } |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 217 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 218 | const CodecFactory *codec_; |
Deb Mukherjee | 01cafaa | 2013-01-15 06:43:35 -0800 | [diff] [blame] | 219 | // Hook to determine whether to decode frame after encoding |
| 220 | virtual bool DoDecode() const { return 1; } |
| 221 | |
| 222 | // Hook to handle encode/decode mismatch |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 223 | virtual void MismatchHook(const aom_image_t *img1, const aom_image_t *img2); |
Deb Mukherjee | 01cafaa | 2013-01-15 06:43:35 -0800 | [diff] [blame] | 224 | |
John Koleszar | 88f99f4 | 2013-02-06 12:44:20 -0800 | [diff] [blame] | 225 | // Hook to be called on every decompressed frame. |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 226 | virtual void DecompressedFrameHook(const aom_image_t & /*img*/, |
| 227 | aom_codec_pts_t /*pts*/) {} |
John Koleszar | 88f99f4 | 2013-02-06 12:44:20 -0800 | [diff] [blame] | 228 | |
Jim Bankoski | 943e432 | 2014-07-17 06:31:50 -0700 | [diff] [blame] | 229 | // Hook to be called to handle decode result. Return true to continue. |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 230 | virtual bool HandleDecodeResult(const aom_codec_err_t res_dec, |
Jim Bankoski | 943e432 | 2014-07-17 06:31:50 -0700 | [diff] [blame] | 231 | Decoder *decoder) { |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 232 | EXPECT_EQ(AOM_CODEC_OK, res_dec) << decoder->DecodeError(); |
| 233 | return AOM_CODEC_OK == res_dec; |
Jim Bankoski | 943e432 | 2014-07-17 06:31:50 -0700 | [diff] [blame] | 234 | } |
| 235 | |
John Koleszar | 522d4bf | 2013-03-05 12:23:34 -0800 | [diff] [blame] | 236 | // Hook that can modify the encoder's output data |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 237 | virtual const aom_codec_cx_pkt_t *MutateEncoderOutputHook( |
| 238 | const aom_codec_cx_pkt_t *pkt) { |
John Koleszar | 522d4bf | 2013-03-05 12:23:34 -0800 | [diff] [blame] | 239 | return pkt; |
| 240 | } |
| 241 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 242 | bool abort_; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 243 | aom_codec_enc_cfg_t cfg_; |
| 244 | aom_codec_dec_cfg_t dec_cfg_; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 245 | unsigned int passes_; |
| 246 | unsigned long deadline_; |
| 247 | TwopassStatsStore stats_; |
| 248 | unsigned long init_flags_; |
| 249 | unsigned long frame_flags_; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 250 | aom_codec_pts_t last_pts_; |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 251 | }; |
| 252 | |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 253 | } // namespace libaom_test |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 254 | |
John Koleszar | b9180fc | 2012-05-16 15:27:00 -0700 | [diff] [blame] | 255 | #endif // TEST_ENCODE_TEST_DRIVER_H_ |