Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [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 |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [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. |
Johann | 123e8a6 | 2017-12-28 14:40:49 -0800 | [diff] [blame] | 10 | */ |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 11 | |
| 12 | #include <math.h> |
| 13 | #include <stdlib.h> |
| 14 | #include <new> |
| 15 | |
Tom Finegan | 7a07ece | 2017-02-07 17:14:05 -0800 | [diff] [blame] | 16 | #include "third_party/googletest/src/googletest/include/gtest/gtest.h" |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 17 | #include "test/acm_random.h" |
| 18 | #include "test/util.h" |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 19 | #include "./aom_config.h" |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 20 | #include "aom_dsp/psnr.h" |
| 21 | #include "aom_dsp/ssim.h" |
| 22 | #include "aom_ports/mem.h" |
| 23 | #include "aom_ports/msvc.h" |
| 24 | #include "aom_scale/yv12config.h" |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 25 | |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 26 | using libaom_test::ACMRandom; |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 27 | |
| 28 | namespace { |
| 29 | |
| 30 | typedef double (*LBDMetricFunc)(const YV12_BUFFER_CONFIG *source, |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 31 | const YV12_BUFFER_CONFIG *dest); |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 32 | typedef double (*HBDMetricFunc)(const YV12_BUFFER_CONFIG *source, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 33 | const YV12_BUFFER_CONFIG *dest, uint32_t in_bd, |
| 34 | uint32_t bd); |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 35 | |
Yaowu Xu | 9fb593d | 2016-02-17 12:38:54 -0800 | [diff] [blame] | 36 | double compute_hbd_psnr(const YV12_BUFFER_CONFIG *source, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 37 | const YV12_BUFFER_CONFIG *dest, uint32_t in_bd, |
| 38 | uint32_t bd) { |
Yaowu Xu | 9fb593d | 2016-02-17 12:38:54 -0800 | [diff] [blame] | 39 | PSNR_STATS psnr; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 40 | aom_calc_highbd_psnr(source, dest, &psnr, bd, in_bd); |
Yaowu Xu | 9fb593d | 2016-02-17 12:38:54 -0800 | [diff] [blame] | 41 | return psnr.psnr[0]; |
| 42 | } |
| 43 | |
| 44 | double compute_psnr(const YV12_BUFFER_CONFIG *source, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 45 | const YV12_BUFFER_CONFIG *dest) { |
Yaowu Xu | 9fb593d | 2016-02-17 12:38:54 -0800 | [diff] [blame] | 46 | PSNR_STATS psnr; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 47 | aom_calc_psnr(source, dest, &psnr); |
Yaowu Xu | 9fb593d | 2016-02-17 12:38:54 -0800 | [diff] [blame] | 48 | return psnr.psnr[0]; |
| 49 | } |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 50 | |
| 51 | double compute_hbd_psnrhvs(const YV12_BUFFER_CONFIG *source, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 52 | const YV12_BUFFER_CONFIG *dest, uint32_t in_bd, |
| 53 | uint32_t bd) { |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 54 | double tempy, tempu, tempv; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 55 | return aom_psnrhvs(source, dest, &tempy, &tempu, &tempv, bd, in_bd); |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | double compute_psnrhvs(const YV12_BUFFER_CONFIG *source, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 59 | const YV12_BUFFER_CONFIG *dest) { |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 60 | double tempy, tempu, tempv; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 61 | return aom_psnrhvs(source, dest, &tempy, &tempu, &tempv, 8, 8); |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 62 | } |
| 63 | |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 64 | double compute_hbd_fastssim(const YV12_BUFFER_CONFIG *source, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 65 | const YV12_BUFFER_CONFIG *dest, uint32_t in_bd, |
| 66 | uint32_t bd) { |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 67 | double tempy, tempu, tempv; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 68 | return aom_calc_fastssim(source, dest, &tempy, &tempu, &tempv, bd, in_bd); |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 69 | } |
| 70 | |
| 71 | double compute_fastssim(const YV12_BUFFER_CONFIG *source, |
| 72 | const YV12_BUFFER_CONFIG *dest) { |
| 73 | double tempy, tempu, tempv; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 74 | return aom_calc_fastssim(source, dest, &tempy, &tempu, &tempv, 8, 8); |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 75 | } |
| 76 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 77 | double compute_hbd_aomssim(const YV12_BUFFER_CONFIG *source, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 78 | const YV12_BUFFER_CONFIG *dest, uint32_t in_bd, |
| 79 | uint32_t bd) { |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 80 | double ssim, weight; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 81 | ssim = aom_highbd_calc_ssim(source, dest, &weight, bd, in_bd); |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 82 | return 100 * pow(ssim / weight, 8.0); |
| 83 | } |
| 84 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 85 | double compute_aomssim(const YV12_BUFFER_CONFIG *source, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 86 | const YV12_BUFFER_CONFIG *dest) { |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 87 | double ssim, weight; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 88 | ssim = aom_calc_ssim(source, dest, &weight); |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 89 | return 100 * pow(ssim / weight, 8.0); |
| 90 | } |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 91 | |
| 92 | class HBDMetricsTestBase { |
| 93 | public: |
| 94 | virtual ~HBDMetricsTestBase() {} |
| 95 | |
| 96 | protected: |
| 97 | void RunAccuracyCheck() { |
| 98 | const int width = 1920; |
| 99 | const int height = 1080; |
Yunqing Wang | a722a11 | 2016-08-30 11:48:44 -0700 | [diff] [blame] | 100 | size_t i = 0; |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 101 | const uint8_t kPixFiller = 128; |
| 102 | YV12_BUFFER_CONFIG lbd_src, lbd_dst; |
| 103 | YV12_BUFFER_CONFIG hbd_src, hbd_dst; |
| 104 | ACMRandom rnd(ACMRandom::DeterministicSeed()); |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 105 | double lbd_db, hbd_db; |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 106 | |
| 107 | memset(&lbd_src, 0, sizeof(lbd_src)); |
| 108 | memset(&lbd_dst, 0, sizeof(lbd_dst)); |
| 109 | memset(&hbd_src, 0, sizeof(hbd_src)); |
| 110 | memset(&hbd_dst, 0, sizeof(hbd_dst)); |
| 111 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 112 | aom_alloc_frame_buffer(&lbd_src, width, height, 1, 1, 0, 32, 16); |
| 113 | aom_alloc_frame_buffer(&lbd_dst, width, height, 1, 1, 0, 32, 16); |
| 114 | aom_alloc_frame_buffer(&hbd_src, width, height, 1, 1, 1, 32, 16); |
| 115 | aom_alloc_frame_buffer(&hbd_dst, width, height, 1, 1, 1, 32, 16); |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 116 | |
| 117 | memset(lbd_src.buffer_alloc, kPixFiller, lbd_src.buffer_alloc_sz); |
| 118 | while (i < lbd_src.buffer_alloc_sz) { |
| 119 | uint16_t spel, dpel; |
| 120 | spel = lbd_src.buffer_alloc[i]; |
| 121 | // Create some distortion for dst buffer. |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 122 | dpel = rnd.Rand8(); |
| 123 | lbd_dst.buffer_alloc[i] = (uint8_t)dpel; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 124 | ((uint16_t *)(hbd_src.buffer_alloc))[i] = spel << (bit_depth_ - 8); |
| 125 | ((uint16_t *)(hbd_dst.buffer_alloc))[i] = dpel << (bit_depth_ - 8); |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 126 | i++; |
| 127 | } |
| 128 | |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 129 | lbd_db = lbd_metric_(&lbd_src, &lbd_dst); |
Yaowu Xu | f6a7b17 | 2016-02-20 21:13:11 -0800 | [diff] [blame] | 130 | hbd_db = hbd_metric_(&hbd_src, &hbd_dst, input_bit_depth_, bit_depth_); |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 131 | EXPECT_LE(fabs(lbd_db - hbd_db), threshold_); |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 132 | |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 133 | i = 0; |
| 134 | while (i < lbd_src.buffer_alloc_sz) { |
| 135 | uint16_t dpel; |
| 136 | // Create some small distortion for dst buffer. |
| 137 | dpel = 120 + (rnd.Rand8() >> 4); |
| 138 | lbd_dst.buffer_alloc[i] = (uint8_t)dpel; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 139 | ((uint16_t *)(hbd_dst.buffer_alloc))[i] = dpel << (bit_depth_ - 8); |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 140 | i++; |
| 141 | } |
| 142 | |
| 143 | lbd_db = lbd_metric_(&lbd_src, &lbd_dst); |
Yaowu Xu | f6a7b17 | 2016-02-20 21:13:11 -0800 | [diff] [blame] | 144 | hbd_db = hbd_metric_(&hbd_src, &hbd_dst, input_bit_depth_, bit_depth_); |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 145 | EXPECT_LE(fabs(lbd_db - hbd_db), threshold_); |
| 146 | |
| 147 | i = 0; |
| 148 | while (i < lbd_src.buffer_alloc_sz) { |
| 149 | uint16_t dpel; |
| 150 | // Create some small distortion for dst buffer. |
| 151 | dpel = 126 + (rnd.Rand8() >> 6); |
| 152 | lbd_dst.buffer_alloc[i] = (uint8_t)dpel; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 153 | ((uint16_t *)(hbd_dst.buffer_alloc))[i] = dpel << (bit_depth_ - 8); |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 154 | i++; |
| 155 | } |
| 156 | |
| 157 | lbd_db = lbd_metric_(&lbd_src, &lbd_dst); |
Yaowu Xu | f6a7b17 | 2016-02-20 21:13:11 -0800 | [diff] [blame] | 158 | hbd_db = hbd_metric_(&hbd_src, &hbd_dst, input_bit_depth_, bit_depth_); |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 159 | EXPECT_LE(fabs(lbd_db - hbd_db), threshold_); |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 160 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 161 | aom_free_frame_buffer(&lbd_src); |
| 162 | aom_free_frame_buffer(&lbd_dst); |
| 163 | aom_free_frame_buffer(&hbd_src); |
| 164 | aom_free_frame_buffer(&hbd_dst); |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 165 | } |
| 166 | |
Yaowu Xu | f6a7b17 | 2016-02-20 21:13:11 -0800 | [diff] [blame] | 167 | int input_bit_depth_; |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 168 | int bit_depth_; |
| 169 | double threshold_; |
| 170 | LBDMetricFunc lbd_metric_; |
| 171 | HBDMetricFunc hbd_metric_; |
| 172 | }; |
| 173 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 174 | typedef std::tr1::tuple<LBDMetricFunc, HBDMetricFunc, int, int, double> |
| 175 | MetricTestTParam; |
| 176 | class HBDMetricsTest : public HBDMetricsTestBase, |
| 177 | public ::testing::TestWithParam<MetricTestTParam> { |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 178 | public: |
| 179 | virtual void SetUp() { |
| 180 | lbd_metric_ = GET_PARAM(0); |
| 181 | hbd_metric_ = GET_PARAM(1); |
Yaowu Xu | f6a7b17 | 2016-02-20 21:13:11 -0800 | [diff] [blame] | 182 | input_bit_depth_ = GET_PARAM(2); |
| 183 | bit_depth_ = GET_PARAM(3); |
| 184 | threshold_ = GET_PARAM(4); |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 185 | } |
| 186 | virtual void TearDown() {} |
| 187 | }; |
| 188 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 189 | TEST_P(HBDMetricsTest, RunAccuracyCheck) { RunAccuracyCheck(); } |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 190 | |
| 191 | // Allow small variation due to floating point operations. |
| 192 | static const double kSsim_thresh = 0.001; |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 193 | // Allow some additional errors accumulated in floating point operations. |
| 194 | static const double kFSsim_thresh = 0.03; |
| 195 | // Allow some extra variation due to rounding error accumulated in dct. |
| 196 | static const double kPhvs_thresh = 0.3; |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 197 | |
| 198 | INSTANTIATE_TEST_CASE_P( |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 199 | AOMSSIM, HBDMetricsTest, |
| 200 | ::testing::Values(MetricTestTParam(&compute_aomssim, &compute_hbd_aomssim, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 201 | 8, 10, kSsim_thresh), |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 202 | MetricTestTParam(&compute_aomssim, &compute_hbd_aomssim, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 203 | 10, 10, kPhvs_thresh), |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 204 | MetricTestTParam(&compute_aomssim, &compute_hbd_aomssim, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 205 | 8, 12, kSsim_thresh), |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 206 | MetricTestTParam(&compute_aomssim, &compute_hbd_aomssim, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 207 | 12, 12, kPhvs_thresh))); |
Yaowu Xu | c0874f2 | 2016-02-05 11:30:12 -0800 | [diff] [blame] | 208 | INSTANTIATE_TEST_CASE_P( |
| 209 | FASTSSIM, HBDMetricsTest, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 210 | ::testing::Values(MetricTestTParam(&compute_fastssim, &compute_hbd_fastssim, |
| 211 | 8, 10, kFSsim_thresh), |
| 212 | MetricTestTParam(&compute_fastssim, &compute_hbd_fastssim, |
| 213 | 10, 10, kFSsim_thresh), |
| 214 | MetricTestTParam(&compute_fastssim, &compute_hbd_fastssim, |
| 215 | 8, 12, kFSsim_thresh), |
| 216 | MetricTestTParam(&compute_fastssim, &compute_hbd_fastssim, |
| 217 | 12, 12, kFSsim_thresh))); |
Yaowu Xu | bb8ca08 | 2016-02-05 13:03:47 -0800 | [diff] [blame] | 218 | INSTANTIATE_TEST_CASE_P( |
| 219 | PSNRHVS, HBDMetricsTest, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 220 | ::testing::Values(MetricTestTParam(&compute_psnrhvs, &compute_hbd_psnrhvs, |
| 221 | 8, 10, kPhvs_thresh), |
| 222 | MetricTestTParam(&compute_psnrhvs, &compute_hbd_psnrhvs, |
| 223 | 10, 10, kPhvs_thresh), |
| 224 | MetricTestTParam(&compute_psnrhvs, &compute_hbd_psnrhvs, |
| 225 | 8, 12, kPhvs_thresh), |
| 226 | MetricTestTParam(&compute_psnrhvs, &compute_hbd_psnrhvs, |
| 227 | 12, 12, kPhvs_thresh))); |
Yaowu Xu | 9fb593d | 2016-02-17 12:38:54 -0800 | [diff] [blame] | 228 | INSTANTIATE_TEST_CASE_P( |
| 229 | PSNR, HBDMetricsTest, |
| 230 | ::testing::Values( |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 231 | MetricTestTParam(&compute_psnr, &compute_hbd_psnr, 8, 10, kPhvs_thresh), |
Yaowu Xu | f6a7b17 | 2016-02-20 21:13:11 -0800 | [diff] [blame] | 232 | MetricTestTParam(&compute_psnr, &compute_hbd_psnr, 10, 10, |
| 233 | kPhvs_thresh), |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 234 | MetricTestTParam(&compute_psnr, &compute_hbd_psnr, 8, 12, kPhvs_thresh), |
Yaowu Xu | f6a7b17 | 2016-02-20 21:13:11 -0800 | [diff] [blame] | 235 | MetricTestTParam(&compute_psnr, &compute_hbd_psnr, 12, 12, |
Yaowu Xu | 9fb593d | 2016-02-17 12:38:54 -0800 | [diff] [blame] | 236 | kPhvs_thresh))); |
Yaowu Xu | 988f27b | 2016-02-09 10:35:15 -0800 | [diff] [blame] | 237 | } // namespace |