blob: 8ca538fb93791907a86acc4c1a7360c1f1b0b9a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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.
#ifndef REMOTING_HOST_DIFFER_BLOCK_H_
#define REMOTING_HOST_DIFFER_BLOCK_H_
#include "base/basictypes.h"
namespace remoting {
// 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.
// one means the blocks are different.
int BlockDifference(const uint8* image1, const uint8* image2, int stride);
} // namespace remoting
#endif // REMOTING_HOST_DIFFER_BLOCK_H_
|