OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_encoder_vpx.h" | 5 #include "remoting/codec/video_encoder_vpx.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <limits> | 9 #include <limits> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
12 #include "remoting/codec/codec_test.h" | 15 #include "remoting/codec/codec_test.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 17 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
15 | 18 |
16 using webrtc::DesktopSize; | 19 using webrtc::DesktopSize; |
17 | 20 |
18 namespace remoting { | 21 namespace remoting { |
19 | 22 |
20 // Measure the performance of the VP8 encoder. | 23 // Measure the performance of the VP8 encoder. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 MeasureVideoEncoderFpsWithSize(encoder.get(), kFrameSizes[i]); | 55 MeasureVideoEncoderFpsWithSize(encoder.get(), kFrameSizes[i]); |
53 LOG(ERROR) << kFrameSizes[i].width() << "x" << kFrameSizes[i].height() | 56 LOG(ERROR) << kFrameSizes[i].width() << "x" << kFrameSizes[i].height() |
54 << "(" << (lossless_encode ? "lossless" : "lossy ") << ")" | 57 << "(" << (lossless_encode ? "lossless" : "lossy ") << ")" |
55 << "(" << (lossless_color ? "I444" : "I420") << ")" | 58 << "(" << (lossless_color ? "I444" : "I420") << ")" |
56 << ": " << fps << "fps"; | 59 << ": " << fps << "fps"; |
57 } | 60 } |
58 } | 61 } |
59 } | 62 } |
60 | 63 |
61 } // namespace remoting | 64 } // namespace remoting |
OLD | NEW |