| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |