Remove usage of webrtc trace in video processing modules.
BUG=3153 R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/11089005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5880 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -10,7 +10,6 @@
|
||||
|
||||
#include "webrtc/modules/video_processing/main/interface/video_processing.h"
|
||||
#include "webrtc/modules/video_processing/main/source/brightness_detection.h"
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
@ -37,16 +36,12 @@ int32_t VPMBrightnessDetection::ProcessFrame(
|
||||
const I420VideoFrame& frame,
|
||||
const VideoProcessingModule::FrameStats& stats) {
|
||||
if (frame.IsZeroSize()) {
|
||||
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoPreocessing, id_,
|
||||
"Null frame pointer");
|
||||
return VPM_PARAMETER_ERROR;
|
||||
}
|
||||
int width = frame.width();
|
||||
int height = frame.height();
|
||||
|
||||
if (!VideoProcessingModule::ValidFrameStats(stats)) {
|
||||
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoPreocessing, id_,
|
||||
"Invalid frame stats");
|
||||
return VPM_PARAMETER_ERROR;
|
||||
}
|
||||
|
||||
@ -58,7 +53,7 @@ int32_t VPMBrightnessDetection::ProcessFrame(
|
||||
for (uint32_t i = 0; i < low_th; i++) {
|
||||
prop_low += stats.hist[i];
|
||||
}
|
||||
prop_low /= stats.num_pixels;
|
||||
prop_low /= stats.num_pixels;
|
||||
|
||||
// Get proportion in highest bins.
|
||||
unsigned char high_th = 230;
|
||||
|
||||
Reference in New Issue
Block a user