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 "media/cast/sender/external_video_encoder.h" | 5 #include "media/cast/sender/external_video_encoder.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "media/base/video_frame.h" | 9 #include "media/base/video_frame.h" |
8 #include "media/base/video_types.h" | 10 #include "media/base/video_types.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
10 | 12 |
11 namespace media { | 13 namespace media { |
12 namespace cast { | 14 namespace cast { |
13 | 15 |
14 namespace { | 16 namespace { |
15 | 17 |
16 scoped_refptr<VideoFrame> CreateFrame(const uint8_t* y_plane_data, | 18 scoped_refptr<VideoFrame> CreateFrame(const uint8_t* y_plane_data, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 random_frame_data.get()[j] = static_cast<uint8_t>(rand_seed & 0xff); | 75 random_frame_data.get()[j] = static_cast<uint8_t>(rand_seed & 0xff); |
74 } | 76 } |
75 const scoped_refptr<VideoFrame> random_frame = | 77 const scoped_refptr<VideoFrame> random_frame = |
76 CreateFrame(random_frame_data.get(), frame_size); | 78 CreateFrame(random_frame_data.get(), frame_size); |
77 EXPECT_LE(50.0, qe.EstimateForDeltaFrame(*random_frame)); | 79 EXPECT_LE(50.0, qe.EstimateForDeltaFrame(*random_frame)); |
78 } | 80 } |
79 } | 81 } |
80 | 82 |
81 } // namespace cast | 83 } // namespace cast |
82 } // namespace media | 84 } // namespace media |
OLD | NEW |