| OLD | NEW | 
|     1 /* |     1 /* | 
|     2  *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |     2  *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 
|     3  * |     3  * | 
|     4  *  Use of this source code is governed by a BSD-style license |     4  *  Use of this source code is governed by a BSD-style license | 
|     5  *  that can be found in the LICENSE file in the root of the source |     5  *  that can be found in the LICENSE file in the root of the source | 
|     6  *  tree. An additional intellectual property rights grant can be found |     6  *  tree. An additional intellectual property rights grant can be found | 
|     7  *  in the file PATENTS.  All contributing project authors may |     7  *  in the file PATENTS.  All contributing project authors may | 
|     8  *  be found in the AUTHORS file in the root of the source tree. |     8  *  be found in the AUTHORS file in the root of the source tree. | 
|     9  */ |     9  */ | 
|    10 #include <algorithm>  // max |    10 #include <algorithm>  // max | 
| (...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1800    public: |  1800    public: | 
|  1801     ScreencastTargetBitrateTest() |  1801     ScreencastTargetBitrateTest() | 
|  1802         : SendTest(kDefaultTimeoutMs), |  1802         : SendTest(kDefaultTimeoutMs), | 
|  1803           test::FakeEncoder(Clock::GetRealTimeClock()) {} |  1803           test::FakeEncoder(Clock::GetRealTimeClock()) {} | 
|  1804  |  1804  | 
|  1805    private: |  1805    private: | 
|  1806     int32_t Encode(const VideoFrame& input_image, |  1806     int32_t Encode(const VideoFrame& input_image, | 
|  1807                    const CodecSpecificInfo* codecSpecificInfo, |  1807                    const CodecSpecificInfo* codecSpecificInfo, | 
|  1808                    const std::vector<FrameType>* frame_types) override { |  1808                    const std::vector<FrameType>* frame_types) override { | 
|  1809       CodecSpecificInfo specifics; |  1809       CodecSpecificInfo specifics; | 
 |  1810       memset(&specifics, 0, sizeof(specifics)); | 
|  1810       specifics.codecType = kVideoCodecGeneric; |  1811       specifics.codecType = kVideoCodecGeneric; | 
|  1811  |  1812  | 
|  1812       uint8_t buffer[16] = {0}; |  1813       uint8_t buffer[16] = {0}; | 
|  1813       EncodedImage encoded(buffer, sizeof(buffer), sizeof(buffer)); |  1814       EncodedImage encoded(buffer, sizeof(buffer), sizeof(buffer)); | 
|  1814       encoded._timeStamp = input_image.timestamp(); |  1815       encoded._timeStamp = input_image.timestamp(); | 
|  1815       encoded.capture_time_ms_ = input_image.render_time_ms(); |  1816       encoded.capture_time_ms_ = input_image.render_time_ms(); | 
|  1816  |  1817  | 
|  1817       for (size_t i = 0; i < kNumStreams; ++i) { |  1818       for (size_t i = 0; i < kNumStreams; ++i) { | 
|  1818         specifics.codecSpecific.generic.simulcast_idx = static_cast<uint8_t>(i); |  1819         specifics.codecSpecific.generic.simulcast_idx = static_cast<uint8_t>(i); | 
|  1819         encoded._frameType = (*frame_types)[i]; |  1820         encoded._frameType = (*frame_types)[i]; | 
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2272         observation_complete_.Set(); |  2273         observation_complete_.Set(); | 
|  2273       } |  2274       } | 
|  2274     } |  2275     } | 
|  2275   } test; |  2276   } test; | 
|  2276  |  2277  | 
|  2277   RunBaseTest(&test); |  2278   RunBaseTest(&test); | 
|  2278 } |  2279 } | 
|  2279 #endif |  2280 #endif | 
|  2280  |  2281  | 
|  2281 }  // namespace webrtc |  2282 }  // namespace webrtc | 
| OLD | NEW |