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

Side by Side Diff: remoting/host/differ_block.h

Issue 6501005: Resubmit - Use SSE2 block differ for chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/differ.cc ('k') | remoting/host/differ_block.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_DIFFER_BLOCK_H_ 5 #ifndef REMOTING_HOST_DIFFER_BLOCK_H_
6 #define REMOTING_HOST_DIFFER_BLOCK_H_ 6 #define REMOTING_HOST_DIFFER_BLOCK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 // Block size and format (BGRA 32 bit) are fixed. 12 // Block size and format (BGRA 32 bit) are fixed.
13 static const int kBlockWidth = 32; 13 static const int kBlockWidth = 32;
14 static const int kBlockHeight = 32; 14 static const int kBlockHeight = 32;
15 static const int kBytesPerPixel = 4; 15 static const int kBytesPerPixel = 4;
16 16
17 // Low level functions to compare 2 blocks of pixels. 17 // Low level functions to compare 2 blocks of pixels.
18 // zero means the blocks are identical. 18 // zero means the blocks are identical.
19 // one means the blocks are different. 19 // one means the blocks are different.
20
21 int BlockDifference(const uint8* image1, const uint8* image2, int stride); 20 int BlockDifference(const uint8* image1, const uint8* image2, int stride);
22 21
23 } // namespace remoting 22 } // namespace remoting
24 23
25 #endif // REMOTING_HOST_DIFFER_BLOCK_H_ 24 #endif // REMOTING_HOST_DIFFER_BLOCK_H_
OLDNEW
« no previous file with comments | « remoting/host/differ.cc ('k') | remoting/host/differ_block.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698