Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: webrtc/video/video_send_stream_tests.cc

Issue 1897233002: Deprecate VCMPacketizationCallback::SendData and use EncodedImageCallback instead. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed pbos nits. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/video/vie_encoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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));
1811 specifics.codecType = kVideoCodecGeneric; 1810 specifics.codecType = kVideoCodecGeneric;
1812 1811
1813 uint8_t buffer[16] = {0}; 1812 uint8_t buffer[16] = {0};
1814 EncodedImage encoded(buffer, sizeof(buffer), sizeof(buffer)); 1813 EncodedImage encoded(buffer, sizeof(buffer), sizeof(buffer));
1815 encoded._timeStamp = input_image.timestamp(); 1814 encoded._timeStamp = input_image.timestamp();
1816 encoded.capture_time_ms_ = input_image.render_time_ms(); 1815 encoded.capture_time_ms_ = input_image.render_time_ms();
1817 1816
1818 for (size_t i = 0; i < kNumStreams; ++i) { 1817 for (size_t i = 0; i < kNumStreams; ++i) {
1819 specifics.codecSpecific.generic.simulcast_idx = static_cast<uint8_t>(i); 1818 specifics.codecSpecific.generic.simulcast_idx = static_cast<uint8_t>(i);
1820 encoded._frameType = (*frame_types)[i]; 1819 encoded._frameType = (*frame_types)[i];
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 observation_complete_.Set(); 2272 observation_complete_.Set();
2274 } 2273 }
2275 } 2274 }
2276 } test; 2275 } test;
2277 2276
2278 RunBaseTest(&test); 2277 RunBaseTest(&test);
2279 } 2278 }
2280 #endif 2279 #endif
2281 2280
2282 } // namespace webrtc 2281 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/video/vie_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698