2011-07-07 08:21:25 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2015-11-18 22:31:24 +01:00
|
|
|
#ifndef WEBRTC_MODULES_VIDEO_PROCESSING_BRIGHTNESS_DETECTION_H_
|
|
|
|
|
#define WEBRTC_MODULES_VIDEO_PROCESSING_BRIGHTNESS_DETECTION_H_
|
|
|
|
|
|
|
|
|
|
#include "webrtc/modules/video_processing/include/video_processing.h"
|
2013-05-27 14:12:16 +00:00
|
|
|
#include "webrtc/typedefs.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2013-10-03 16:42:41 +00:00
|
|
|
class VPMBrightnessDetection {
|
|
|
|
|
public:
|
|
|
|
|
VPMBrightnessDetection();
|
|
|
|
|
~VPMBrightnessDetection();
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2013-10-03 16:42:41 +00:00
|
|
|
void Reset();
|
2015-05-29 17:21:40 -07:00
|
|
|
int32_t ProcessFrame(const VideoFrame& frame,
|
2013-10-03 16:42:41 +00:00
|
|
|
const VideoProcessingModule::FrameStats& stats);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2013-10-03 16:42:41 +00:00
|
|
|
private:
|
|
|
|
|
uint32_t frame_cnt_bright_;
|
|
|
|
|
uint32_t frame_cnt_dark_;
|
2011-07-07 08:21:25 +00:00
|
|
|
};
|
|
|
|
|
|
2013-10-03 16:42:41 +00:00
|
|
|
} // namespace webrtc
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-11-18 22:31:24 +01:00
|
|
|
#endif // WEBRTC_MODULES_VIDEO_PROCESSING_BRIGHTNESS_DETECTION_H_
|