summaryrefslogtreecommitdiffstats
path: root/remoting/host/differ_block_internal.h
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 06:13:17 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 06:13:17 +0000
commitf6688b97a3839cff0e98e2cc841b17d6a78b72e1 (patch)
tree2d9a4e5c22e48e676345ab39d1422b2d31b20a8a /remoting/host/differ_block_internal.h
parent5b5e40ee98303198899ebb73463dfe3508ba3a25 (diff)
downloadchromium_src-f6688b97a3839cff0e98e2cc841b17d6a78b72e1.zip
chromium_src-f6688b97a3839cff0e98e2cc841b17d6a78b72e1.tar.gz
chromium_src-f6688b97a3839cff0e98e2cc841b17d6a78b72e1.tar.bz2
Use SSE2 block differ for chromoting
We have the SSE2 lying around in the tree just never being used. This will allow us to use it. BUG=None TEST=Chromoting to a host machine and the diff will work correctly Review URL: http://codereview.chromium.org/6469022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74571 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/differ_block_internal.h')
-rw-r--r--remoting/host/differ_block_internal.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/remoting/host/differ_block_internal.h b/remoting/host/differ_block_internal.h
new file mode 100644
index 0000000..d0ddce0
--- /dev/null
+++ b/remoting/host/differ_block_internal.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2010 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.
+
+// This header file is used only differ_block.h. It defines the SSE2 rountines
+// for finding block difference.
+
+#ifndef REMOTING_HOST_DIFFER_BLOCK_INTERNAL_H_
+#define REMOTING_HOST_DIFFER_BLOCK_INTERNAL_H_
+
+#include "base/basictypes.h"
+
+namespace remoting {
+
+// Find block difference of dimension 16x16.
+extern int BlockDifference_SSE2_W16(const uint8* image1, const uint8* image2,
+ int stride);
+
+// Find block difference of dimension 32x32.
+extern int BlockDifference_SSE2_W32(const uint8* image1, const uint8* image2,
+ int stride);
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_DIFFER_BLOCK_INTERNAL_H_