| 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 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 match = (memcmp(img1->planes[VPX_PLANE_U] + i * img1->stride[VPX_PLANE_U], | 126 match = (memcmp(img1->planes[VPX_PLANE_U] + i * img1->stride[VPX_PLANE_U], |
| 127 img2->planes[VPX_PLANE_U] + i * img2->stride[VPX_PLANE_U], | 127 img2->planes[VPX_PLANE_U] + i * img2->stride[VPX_PLANE_U], |
| 128 width_uv) == 0) && match; | 128 width_uv) == 0) && match; |
| 129 for (i = 0; i < height_uv; ++i) | 129 for (i = 0; i < height_uv; ++i) |
| 130 match = (memcmp(img1->planes[VPX_PLANE_V] + i * img1->stride[VPX_PLANE_V], | 130 match = (memcmp(img1->planes[VPX_PLANE_V] + i * img1->stride[VPX_PLANE_V], |
| 131 img2->planes[VPX_PLANE_V] + i * img2->stride[VPX_PLANE_V], | 131 img2->planes[VPX_PLANE_V] + i * img2->stride[VPX_PLANE_V], |
| 132 width_uv) == 0) && match; | 132 width_uv) == 0) && match; |
| 133 return match; | 133 return match; |
| 134 } | 134 } |
| 135 | 135 |
| 136 void EncoderTest::MismatchHook(const vpx_image_t *img1, | 136 void EncoderTest::MismatchHook(const vpx_image_t* /*img1*/, |
| 137 const vpx_image_t *img2) { | 137 const vpx_image_t* /*img2*/) { |
| 138 ASSERT_TRUE(0) << "Encode/Decode mismatch found"; | 138 ASSERT_TRUE(0) << "Encode/Decode mismatch found"; |
| 139 } | 139 } |
| 140 | 140 |
| 141 void EncoderTest::RunLoop(VideoSource *video) { | 141 void EncoderTest::RunLoop(VideoSource *video) { |
| 142 vpx_codec_dec_cfg_t dec_cfg = {0}; | 142 vpx_codec_dec_cfg_t dec_cfg = vpx_codec_dec_cfg_t(); |
| 143 | 143 |
| 144 stats_.Reset(); | 144 stats_.Reset(); |
| 145 | 145 |
| 146 ASSERT_TRUE(passes_ == 1 || passes_ == 2); | 146 ASSERT_TRUE(passes_ == 1 || passes_ == 2); |
| 147 for (unsigned int pass = 0; pass < passes_; pass++) { | 147 for (unsigned int pass = 0; pass < passes_; pass++) { |
| 148 last_pts_ = 0; | 148 last_pts_ = 0; |
| 149 | 149 |
| 150 if (passes_ == 1) | 150 if (passes_ == 1) |
| 151 cfg_.g_pass = VPX_RC_ONE_PASS; | 151 cfg_.g_pass = VPX_RC_ONE_PASS; |
| 152 else if (pass == 0) | 152 else if (pass == 0) |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 if (decoder) | 222 if (decoder) |
| 223 delete decoder; | 223 delete decoder; |
| 224 delete encoder; | 224 delete encoder; |
| 225 | 225 |
| 226 if (!Continue()) | 226 if (!Continue()) |
| 227 break; | 227 break; |
| 228 } | 228 } |
| 229 } | 229 } |
| 230 | 230 |
| 231 } // namespace libvpx_test | 231 } // namespace libvpx_test |
| OLD | NEW |