OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #include "media/base/media_export.h" | |
9 | 10 |
10 namespace remoting { | 11 namespace media { |
11 | 12 |
12 // Size (in pixels) of each square block used for diffing. | 13 // Size (in pixels) of each square block used for diffing. |
13 // This must be a multiple of sizeof(uint64)/8. | 14 // This must be a multiple of sizeof(uint64)/8. |
14 static const int kBlockSize = 32; | 15 static const int kBlockSize = 32; |
scherkus (not reviewing)
2013/01/25 00:30:36
static ints declared in the .h?
doesn't this end
Sergey Ulanov
2013/01/25 00:49:50
Fixed.
| |
15 | 16 |
16 // Format: BGRA 32 bit. | 17 // Format: BGRA 32 bit. |
17 static const int kBytesPerPixel = 4; | 18 static const int kBytesPerPixel = 4; |
18 | 19 |
19 // Low level functions to compare 2 blocks of pixels. | 20 // Low level functions to compare 2 blocks of pixels. |
20 // zero means the blocks are identical. | 21 // zero means the blocks are identical. |
21 // one means the blocks are different. | 22 // one means the blocks are different. |
22 int BlockDifference(const uint8* image1, const uint8* image2, int stride); | 23 MEDIA_EXPORT int BlockDifference( |
24 const uint8* image1, const uint8* image2, int stride); | |
23 | 25 |
24 } // namespace remoting | 26 } // namespace media |
25 | 27 |
26 #endif // REMOTING_HOST_DIFFER_BLOCK_H_ | 28 #endif // REMOTING_HOST_DIFFER_BLOCK_H_ |
OLD | NEW |