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

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

Issue 11470028: Move screen capturers to remoting/capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_DIFFER_BLOCK_H_
6 #define REMOTING_HOST_DIFFER_BLOCK_H_
7
8 #include "base/basictypes.h"
9
10 namespace remoting {
11
12 // Size (in pixels) of each square block used for diffing.
13 // This must be a multiple of sizeof(uint64)/8.
14 static const int kBlockSize = 32;
15
16 // Format: BGRA 32 bit.
17 static const int kBytesPerPixel = 4;
18
19 // Low level functions to compare 2 blocks of pixels.
20 // zero means the blocks are identical.
21 // one means the blocks are different.
22 int BlockDifference(const uint8* image1, const uint8* image2, int stride);
23
24 } // namespace remoting
25
26 #endif // REMOTING_HOST_DIFFER_BLOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698