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

Side by Side Diff: remoting/test/video_frame_writer.cc

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 4 years, 12 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
« no previous file with comments | « remoting/test/video_frame_writer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/test/video_frame_writer.h" 5 #include "remoting/test/video_frame_writer.h"
6 6
7 #include <stdint.h>
8
7 #include <vector> 9 #include <vector>
8 10
9 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
11 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
12 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" 14 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
13 #include "ui/gfx/codec/png_codec.h" 15 #include "ui/gfx/codec/png_codec.h"
14 #include "ui/gfx/geometry/size.h" 16 #include "ui/gfx/geometry/size.h"
15 17
16 namespace { 18 namespace {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 int shift_amount) { 145 int shift_amount) {
144 uint8_t* frame_pos = frame->data() + y * frame->stride() + 146 uint8_t* frame_pos = frame->data() + y * frame->stride() +
145 x * webrtc::DesktopFrame::kBytesPerPixel; 147 x * webrtc::DesktopFrame::kBytesPerPixel;
146 frame_pos[2] = frame_pos[2] + shift_amount; 148 frame_pos[2] = frame_pos[2] + shift_amount;
147 frame_pos[1] = frame_pos[1] + shift_amount; 149 frame_pos[1] = frame_pos[1] + shift_amount;
148 frame_pos[0] = frame_pos[0] + shift_amount; 150 frame_pos[0] = frame_pos[0] + shift_amount;
149 } 151 }
150 152
151 } // namespace test 153 } // namespace test
152 } // namespace remoting 154 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/test/video_frame_writer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698