• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #include "cast/streaming/rtp_time.h"
6 
7 #include <sstream>
8 
9 namespace openscreen {
10 namespace cast {
11 
operator <<(std::ostream & out,const RtpTimeDelta rhs)12 std::ostream& operator<<(std::ostream& out, const RtpTimeDelta rhs) {
13   if (rhs.value_ >= 0)
14     out << "RTP+";
15   else
16     out << "RTP";
17   return out << rhs.value_;
18 }
19 
operator <<(std::ostream & out,const RtpTimeTicks rhs)20 std::ostream& operator<<(std::ostream& out, const RtpTimeTicks rhs) {
21   return out << "RTP@" << rhs.value_;
22 }
23 
24 }  // namespace cast
25 }  // namespace openscreen
26