Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Unified Diff: media/video/capture/screen/differ_block.h

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: 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 0000000000000000000000000000000000000000..11dbf0b86a9b546aef591d529539699464b2b6a9
--- /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 REMOTING_HOST_DIFFER_BLOCK_H_
scherkus (not reviewing) 2013/01/25 05:03:40 wrong header guard
+#define REMOTING_HOST_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 // REMOTING_HOST_DIFFER_BLOCK_H_

Powered by Google App Engine
This is Rietveld 408576698