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

Side by Side Diff: media/video/capture/screen/differ_block.h

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « media/video/capture/screen/differ.cc ('k') | media/video/capture/screen/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
(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 MEDIA_VIDEO_CAPTURE_SCREEN_DIFFER_BLOCK_H_
6 #define MEDIA_VIDEO_CAPTURE_SCREEN_DIFFER_BLOCK_H_
7
8 #include "base/basictypes.h"
9 #include "media/base/media_export.h"
10
11 namespace media {
12
13 // Size (in pixels) of each square block used for diffing. This must be a
14 // multiple of sizeof(uint64)/8.
15 const int kBlockSize = 32;
16
17 // Format: BGRA 32 bit.
18 const int kBytesPerPixel = 4;
19
20 // Low level functions to compare 2 blocks of pixels. Zero means the blocks
21 // are identical. One - the blocks are different.
22 MEDIA_EXPORT int BlockDifference(const uint8* image1,
23 const uint8* image2,
24 int stride);
25
26 } // namespace media
27
28 #endif // MEDIA_VIDEO_CAPTURE_SCREEN_DIFFER_BLOCK_H_
OLDNEW
« no previous file with comments | « media/video/capture/screen/differ.cc ('k') | media/video/capture/screen/differ_block.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698