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

Side by Side Diff: webrtc/modules/video_coding/test/rtp_player.h

Issue 1540243002: Lint fix for webrtc/modules/video_coding PART 3! (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 10
11 #ifndef WEBRTC_MODULES_VIDEO_CODING_TEST_RTP_PLAYER_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_TEST_RTP_PLAYER_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_TEST_RTP_PLAYER_H_ 12 #define WEBRTC_MODULES_VIDEO_CODING_TEST_RTP_PLAYER_H_
13 13
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
18 #include "webrtc/modules/video_coding/include/video_coding_defines.h" 18 #include "webrtc/modules/video_coding/include/video_coding_defines.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 class Clock; 21 class Clock;
22 22
23 namespace rtpplayer { 23 namespace rtpplayer {
24 24
25 class PayloadCodecTuple { 25 class PayloadCodecTuple {
26 public: 26 public:
27 PayloadCodecTuple(uint8_t payload_type, const std::string& codec_name, 27 PayloadCodecTuple(uint8_t payload_type,
28 const std::string& codec_name,
28 VideoCodecType codec_type) 29 VideoCodecType codec_type)
29 : name_(codec_name), 30 : name_(codec_name),
30 payload_type_(payload_type), 31 payload_type_(payload_type),
31 codec_type_(codec_type) { 32 codec_type_(codec_type) {}
32 }
33 33
34 const std::string& name() const { return name_; } 34 const std::string& name() const { return name_; }
35 uint8_t payload_type() const { return payload_type_; } 35 uint8_t payload_type() const { return payload_type_; }
36 VideoCodecType codec_type() const { return codec_type_; } 36 VideoCodecType codec_type() const { return codec_type_; }
37 37
38 private: 38 private:
39 std::string name_; 39 std::string name_;
40 uint8_t payload_type_; 40 uint8_t payload_type_;
41 VideoCodecType codec_type_; 41 VideoCodecType codec_type_;
42 }; 42 };
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 class RtpPlayerInterface { 80 class RtpPlayerInterface {
81 public: 81 public:
82 virtual ~RtpPlayerInterface() {} 82 virtual ~RtpPlayerInterface() {}
83 83
84 virtual int NextPacket(int64_t timeNow) = 0; 84 virtual int NextPacket(int64_t timeNow) = 0;
85 virtual uint32_t TimeUntilNextPacket() const = 0; 85 virtual uint32_t TimeUntilNextPacket() const = 0;
86 virtual void Print() const = 0; 86 virtual void Print() const = 0;
87 }; 87 };
88 88
89 RtpPlayerInterface* Create(const std::string& inputFilename, 89 RtpPlayerInterface* Create(const std::string& inputFilename,
90 PayloadSinkFactoryInterface* payloadSinkFactory, Clock* clock, 90 PayloadSinkFactoryInterface* payloadSinkFactory,
91 const PayloadTypes& payload_types, float lossRate, int64_t rttMs, 91 Clock* clock,
92 bool reordering); 92 const PayloadTypes& payload_types,
93 float lossRate,
94 int64_t rttMs,
95 bool reordering);
93 96
94 } // namespace rtpplayer 97 } // namespace rtpplayer
95 } // namespace webrtc 98 } // namespace webrtc
96 99
97 #endif // WEBRTC_MODULES_VIDEO_CODING_TEST_RTP_PLAYER_H_ 100 #endif // WEBRTC_MODULES_VIDEO_CODING_TEST_RTP_PLAYER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/test/receiver_tests.h ('k') | webrtc/modules/video_coding/test/rtp_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698