#include "modules/desktop_capture/blank_detector_desktop_capturer_wrapper.h"
#include <stdint.h>
#include <utility>
#include "modules/desktop_capture/desktop_geometry.h"
#include "modules/desktop_capture/desktop_region.h"
#include "rtc_base/checks.h"
#include "system_wrappers/include/metrics.h"
namespace webrtc {
BlankDetectorDesktopCapturerWrapper::BlankDetectorDesktopCapturerWrapper(
std::unique_ptr<DesktopCapturer> capturer,
RgbaColor blank_pixel,
bool check_per_capture)
: … { … }
BlankDetectorDesktopCapturerWrapper::~BlankDetectorDesktopCapturerWrapper() =
default;
void BlankDetectorDesktopCapturerWrapper::Start(
DesktopCapturer::Callback* callback) { … }
void BlankDetectorDesktopCapturerWrapper::SetSharedMemoryFactory(
std::unique_ptr<SharedMemoryFactory> shared_memory_factory) { … }
void BlankDetectorDesktopCapturerWrapper::CaptureFrame() { … }
void BlankDetectorDesktopCapturerWrapper::SetExcludedWindow(WindowId window) { … }
bool BlankDetectorDesktopCapturerWrapper::GetSourceList(SourceList* sources) { … }
bool BlankDetectorDesktopCapturerWrapper::SelectSource(SourceId id) { … }
bool BlankDetectorDesktopCapturerWrapper::FocusOnSelectedSource() { … }
bool BlankDetectorDesktopCapturerWrapper::IsOccluded(const DesktopVector& pos) { … }
void BlankDetectorDesktopCapturerWrapper::OnCaptureResult(
Result result,
std::unique_ptr<DesktopFrame> frame) { … }
bool BlankDetectorDesktopCapturerWrapper::IsBlankFrame(
const DesktopFrame& frame) const { … }
bool BlankDetectorDesktopCapturerWrapper::IsBlankPixel(
const DesktopFrame& frame,
int x,
int y) const { … }
}