#include "media/cast/common/openscreen_conversion_helpers.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "media/base/audio_codecs.h"
#include "media/base/video_codecs.h"
#include "media/cast/cast_config.h"
#include "third_party/openscreen/src/platform/base/span.h"
namespace media::cast {
openscreen::Clock::time_point ToOpenscreenTimePoint(
std::optional<base::TimeTicks> ticks) { … }
openscreen::Clock::time_point ToOpenscreenTimePoint(base::TimeTicks ticks) { … }
int64_t TimeDeltaToTicks(base::TimeDelta delta, int timebase) { … }
openscreen::cast::RtpTimeTicks ToRtpTimeTicks(base::TimeDelta delta,
int timebase) { … }
openscreen::cast::RtpTimeDelta ToRtpTimeDelta(base::TimeDelta delta,
int timebase) { … }
base::TimeDelta ToTimeDelta(openscreen::cast::RtpTimeDelta rtp_delta,
int timebase) { … }
base::TimeDelta ToTimeDelta(openscreen::cast::RtpTimeTicks rtp_ticks,
int timebase) { … }
base::TimeDelta ToTimeDelta(openscreen::Clock::duration tp) { … }
const openscreen::cast::EncodedFrame ToOpenscreenEncodedFrame(
const SenderEncodedFrame& encoded_frame) { … }
openscreen::cast::AudioCodec ToOpenscreenAudioCodec(media::AudioCodec codec) { … }
openscreen::cast::VideoCodec ToOpenscreenVideoCodec(media::VideoCodec codec) { … }
AudioCodec ToAudioCodec(openscreen::cast::AudioCodec codec) { … }
VideoCodec ToVideoCodec(openscreen::cast::VideoCodec codec) { … }
openscreen::IPAddress ToOpenscreenIPAddress(const net::IPAddress& address) { … }
std::array<uint8_t, kAesKeyLength> AesKeyToArray(std::string aes_key) { … }
openscreen::cast::SessionConfig ToOpenscreenSessionConfig(
const FrameSenderConfig& config,
bool is_pli_enabled) { … }
openscreen::cast::AudioCaptureConfig ToOpenscreenAudioConfig(
const FrameSenderConfig& config) { … }
openscreen::cast::VideoCaptureConfig ToOpenscreenVideoConfig(
const FrameSenderConfig& config) { … }
}