From 497d8a9857e7383f979b89694aff8dd403c176fe Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Mon, 28 Jan 2013 23:54:03 +0000 Subject: Move screen capturers from remoting/capturer to media/video/capturer/screen Screen capturers will be used in content, and so they have to be moved to avoid dependency on remoting/capturer in content. Beside moving the files this CL also renames classes as follows: remoting::VideoFrameCapturer -> media::ScreenCapturer remoting::VideoFrame -> media::ScreenCaptureFrame remoting::CaptureData -> media::ScreenCaptureData BUG=134249 Review URL: https://codereview.chromium.org/12047101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179218 0039d316-1c4b-4281-b951-d872f2087c98 --- media/video/capture/screen/differ_block.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 media/video/capture/screen/differ_block.h (limited to 'media/video/capture/screen/differ_block.h') diff --git a/media/video/capture/screen/differ_block.h b/media/video/capture/screen/differ_block.h new file mode 100644 index 0000000..8b211e2 --- /dev/null +++ b/media/video/capture/screen/differ_block.h @@ -0,0 +1,28 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef MEDIA_VIDEO_CAPTURE_SCREEN_DIFFER_BLOCK_H_ +#define MEDIA_VIDEO_CAPTURE_SCREEN_DIFFER_BLOCK_H_ + +#include "base/basictypes.h" +#include "media/base/media_export.h" + +namespace media { + +// Size (in pixels) of each square block used for diffing. This must be a +// multiple of sizeof(uint64)/8. +const int kBlockSize = 32; + +// Format: BGRA 32 bit. +const int kBytesPerPixel = 4; + +// Low level functions to compare 2 blocks of pixels. Zero means the blocks +// are identical. One - the blocks are different. +MEDIA_EXPORT int BlockDifference(const uint8* image1, + const uint8* image2, + int stride); + +} // namespace media + +#endif // MEDIA_VIDEO_CAPTURE_SCREEN_DIFFER_BLOCK_H_ -- cgit v1.1