| 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 #ifndef TEST_ENCODE_TEST_DRIVER_H_ | 10 #ifndef TEST_ENCODE_TEST_DRIVER_H_ |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 void Control(int ctrl_id, struct vpx_scaling_mode *arg) { | 126 void Control(int ctrl_id, struct vpx_scaling_mode *arg) { |
| 127 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); | 127 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); |
| 128 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); | 128 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 void Control(int ctrl_id, struct vpx_svc_layer_id *arg) { | 131 void Control(int ctrl_id, struct vpx_svc_layer_id *arg) { |
| 132 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); | 132 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); |
| 133 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); | 133 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); |
| 134 } | 134 } |
| 135 | 135 |
| 136 void Control(int ctrl_id, struct vpx_svc_parameters *arg) { |
| 137 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); |
| 138 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); |
| 139 } |
| 136 #if CONFIG_VP8_ENCODER || CONFIG_VP9_ENCODER | 140 #if CONFIG_VP8_ENCODER || CONFIG_VP9_ENCODER |
| 137 void Control(int ctrl_id, vpx_active_map_t *arg) { | 141 void Control(int ctrl_id, vpx_active_map_t *arg) { |
| 138 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); | 142 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); |
| 139 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); | 143 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); |
| 140 } | 144 } |
| 141 #endif | 145 #endif |
| 142 | 146 |
| 143 void Config(const vpx_codec_enc_cfg_t *cfg) { | 147 void Config(const vpx_codec_enc_cfg_t *cfg) { |
| 144 const vpx_codec_err_t res = vpx_codec_enc_config_set(&encoder_, cfg); | 148 const vpx_codec_err_t res = vpx_codec_enc_config_set(&encoder_, cfg); |
| 145 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); | 149 ASSERT_EQ(VPX_CODEC_OK, res) << EncoderError(); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 unsigned long deadline_; | 263 unsigned long deadline_; |
| 260 TwopassStatsStore stats_; | 264 TwopassStatsStore stats_; |
| 261 unsigned long init_flags_; | 265 unsigned long init_flags_; |
| 262 unsigned long frame_flags_; | 266 unsigned long frame_flags_; |
| 263 vpx_codec_pts_t last_pts_; | 267 vpx_codec_pts_t last_pts_; |
| 264 }; | 268 }; |
| 265 | 269 |
| 266 } // namespace libvpx_test | 270 } // namespace libvpx_test |
| 267 | 271 |
| 268 #endif // TEST_ENCODE_TEST_DRIVER_H_ | 272 #endif // TEST_ENCODE_TEST_DRIVER_H_ |
| OLD | NEW |