Fix some missed stdlib includes

Ran into these when trying a newer libstdc++

Bug: None
Change-Id: Ie3ce0ae1ae1e6da1a15476fbf942b48b37adc9fa
Reviewed-on: https://webrtc-review.googlesource.com/23501
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20701}
This commit is contained in:
Oleh Prypin
2017-11-16 00:17:05 +01:00
committed by Commit Bot
parent 154ee1fd85
commit 6581f21f0e
3 changed files with 6 additions and 2 deletions

View File

@ -8,6 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include <cmath>
#include <limits>
#include <memory>
#include <string>

View File

@ -11,6 +11,7 @@
#ifndef MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTEST_H_
#define MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTEST_H_
#include <cmath>
#include <memory>
#include <string>
#include <vector>
@ -130,10 +131,11 @@ class VideoProcessorIntegrationTest : public testing::Test {
return 100 * sum_delta_framesize_mismatch_layer[i] / num_frames_layer[i];
}
int BitrateMismatchPercent(float target_kbps) const {
return 100 * fabs(kbps - target_kbps) / target_kbps;
return 100 * std::fabs(kbps - target_kbps) / target_kbps;
}
int BitrateMismatchPercent(int i, float target_kbps_layer) const {
return 100 * fabs(kbps_layer[i] - target_kbps_layer) / target_kbps_layer;
return 100 * std::fabs(kbps_layer[i] - target_kbps_layer) /
target_kbps_layer;
}
int num_frames = 0;
int num_frames_layer[kMaxNumTemporalLayers] = {0};

View File

@ -11,6 +11,7 @@
#include "rtc_tools/event_log_visualizer/analyzer.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include <map>
#include <sstream>