
This reverts commit d7ee72041f882c023c73e27a7436c626c4e43604. Reason for revert: Broke downstream build which was using SdpAudioFormat operator<< Original change's description: > Reland "Remove our stream << overloads from non-test build targets." > > This is a reland of c841d18d257ba8e4ed7d77d105e3c46006bb1e7e > > Original change's description: > > Remove our stream << overloads from non-test build targets. > > > > Most are removed entirely, but RtcErrorType, RtpTransceiverDirection, IPAddress and > > SocketAddress are kept behind gtest's #ifdef UNIT_TEST. > > > > Bug: webrtc:8982 > > Change-Id: I36db19891e7d25aeacb08b9a08aa2b4004765e70 > > Reviewed-on: https://webrtc-review.googlesource.com/64143 > > Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org> > > Reviewed-by: Benjamin Wright <benwright@webrtc.org> > > Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> > > Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> > > Reviewed-by: Åsa Persson <asapersson@webrtc.org> > > Cr-Commit-Position: refs/heads/master@{#22916} > > TBR=deadbeef@webrtc.org,kwiberg@webrtc.org,asapersson@webrtc.org,jonasolsson@webrtc.org,benwright@webrtc.org > > Bug: webrtc:8982 > Change-Id: Ibe08c6270e5e693eb661a6ce9e8f074b34ef8123 > Reviewed-on: https://webrtc-review.googlesource.com/71161 > Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org> > Reviewed-by: Jonas Olsson <jonasolsson@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#22949} TBR=deadbeef@webrtc.org,kwiberg@webrtc.org,asapersson@webrtc.org,jonasolsson@webrtc.org,benwright@webrtc.org Change-Id: I3c2b18ec2877d68a522ecbae7a2955c4eecf36df No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: webrtc:8982 Reviewed-on: https://webrtc-review.googlesource.com/71446 Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Commit-Queue: Taylor Brandstetter <deadbeef@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22963}
50 lines
1.8 KiB
C++
50 lines
1.8 KiB
C++
/*
|
|
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef PC_RTPMEDIAUTILS_H_
|
|
#define PC_RTPMEDIAUTILS_H_
|
|
|
|
#include "api/rtptransceiverinterface.h"
|
|
|
|
namespace webrtc {
|
|
|
|
// Returns the RtpTransceiverDirection that satisfies specified send and receive
|
|
// conditions.
|
|
RtpTransceiverDirection RtpTransceiverDirectionFromSendRecv(bool send,
|
|
bool recv);
|
|
|
|
// Returns true only if the direction will send media.
|
|
bool RtpTransceiverDirectionHasSend(RtpTransceiverDirection direction);
|
|
|
|
// Returns true only if the direction will receive media.
|
|
bool RtpTransceiverDirectionHasRecv(RtpTransceiverDirection direction);
|
|
|
|
// Returns the RtpTransceiverDirection which is the reverse of the given
|
|
// direction.
|
|
RtpTransceiverDirection RtpTransceiverDirectionReversed(
|
|
RtpTransceiverDirection direction);
|
|
|
|
// Returns the RtpTransceiverDirection with its send component set to |send|.
|
|
RtpTransceiverDirection RtpTransceiverDirectionWithSendSet(
|
|
RtpTransceiverDirection direction,
|
|
bool send = true);
|
|
|
|
// Returns the RtpTransceiverDirection with its recv component set to |recv|.
|
|
RtpTransceiverDirection RtpTransceiverDirectionWithRecvSet(
|
|
RtpTransceiverDirection direction,
|
|
bool recv = true);
|
|
|
|
// Returns an unspecified string representation of the given direction.
|
|
const char* RtpTransceiverDirectionToString(RtpTransceiverDirection direction);
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // PC_RTPMEDIAUTILS_H_
|