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

Side by Side Diff: media/video/capture/screen/differ.cc

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.h ('k') | media/video/capture/screen/differ_block.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "remoting/capturer/differ.h" 5 #include "media/video/capture/screen/differ.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "remoting/capturer/differ_block.h" 8 #include "media/video/capture/screen/differ_block.h"
9 9
10 namespace remoting { 10 namespace media {
11 11
12 Differ::Differ(int width, int height, int bpp, int stride) { 12 Differ::Differ(int width, int height, int bpp, int stride) {
13 // Dimensions of screen. 13 // Dimensions of screen.
14 width_ = width; 14 width_ = width;
15 height_ = height; 15 height_ = height;
16 bytes_per_pixel_ = bpp; 16 bytes_per_pixel_ = bpp;
17 bytes_per_row_ = stride; 17 bytes_per_row_ = stride;
18 18
19 // Calc number of blocks (full and partial) required to cover entire image. 19 // Calc number of blocks (full and partial) required to cover entire image.
20 // One additional row/column is added as a boundary on the right & bottom. 20 // One additional row/column is added as a boundary on the right & bottom.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 // Increment to next block in this row. 202 // Increment to next block in this row.
203 diff_info++; 203 diff_info++;
204 } 204 }
205 205
206 // Go to start of next row. 206 // Go to start of next row.
207 diff_info_row_start += diff_info_stride; 207 diff_info_row_start += diff_info_stride;
208 } 208 }
209 } 209 }
210 210
211 } // namespace remoting 211 } // namespace media
OLDNEW
« no previous file with comments | « media/video/capture/screen/differ.h ('k') | media/video/capture/screen/differ_block.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698