OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/codec/video_decoder_verbatim.h" | 5 #include "remoting/codec/video_decoder_verbatim.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "remoting/base/util.h" | 10 #include "remoting/base/util.h" |
9 #include "remoting/proto/video.pb.h" | 11 #include "remoting/proto/video.pb.h" |
10 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 12 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
11 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 13 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
12 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" | 14 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" |
13 | 15 |
14 namespace remoting { | 16 namespace remoting { |
15 | 17 |
16 static const int kBytesPerPixel = 4; | 18 static const int kBytesPerPixel = 4; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 53 |
52 if (current_data_pos != packet.data().data() + packet.data().size()) { | 54 if (current_data_pos != packet.data().data() + packet.data().size()) { |
53 LOG(ERROR) << "Invalid packet received."; | 55 LOG(ERROR) << "Invalid packet received."; |
54 return false; | 56 return false; |
55 } | 57 } |
56 | 58 |
57 return true; | 59 return true; |
58 } | 60 } |
59 | 61 |
60 } // namespace remoting | 62 } // namespace remoting |
OLD | NEW |