summaryrefslogtreecommitdiffstats
path: root/remoting/host/differ_block.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/differ_block.h')
-rw-r--r--remoting/host/differ_block.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/remoting/host/differ_block.h b/remoting/host/differ_block.h
index 7b319b9..8ca538f 100644
--- a/remoting/host/differ_block.h
+++ b/remoting/host/differ_block.h
@@ -9,12 +9,14 @@
namespace remoting {
-// Low level functions to return the difference between 2 blocks of pixels.
-// The amount of difference is returned as an int.
+// Block size and format (BGRA 32 bit) are fixed.
+static const int kBlockWidth = 32;
+static const int kBlockHeight = 32;
+static const int kBytesPerPixel = 4;
+
+// Low level functions to compare 2 blocks of pixels.
// zero means the blocks are identical.
-// larger values indicate larger changes.
-// Pixel format of the captured screen may be platform specific, but constant.
-// Size of block is constant.
+// one means the blocks are different.
int BlockDifference(const uint8* image1, const uint8* image2, int stride);