aboutsummaryrefslogtreecommitdiff
path: root/cast/streaming/encoded_frame.cc
diff options
context:
space:
mode:
authorYuri Wiitala <miu@chromium.org>2019-11-22 15:04:27 -0800
committerCommit Bot <commit-bot@chromium.org>2019-11-22 23:17:56 +0000
commit7d2583a9952b389760fbec7c9eed515bb2270fb4 (patch)
tree6929ab25ae7972e283eb866d04be9c0ef7583815 /cast/streaming/encoded_frame.cc
parentef98b330b71a64ef3a427b93fcfa92a76c06a597 (diff)
downloadopenscreen-7d2583a9952b389760fbec7c9eed515bb2270fb4.tar.gz
Move streaming/cast/* to cast/streaming/* and cast/standalone_receiver/*
Moves the files from streaming/cast to cast/streaming, fixes #includes and header guards, adopts the cast::streaming namespace, and patches BUILD.gn and DEPS files. Change-Id: I77d467a98823f3c55ed38f9a298967e3a42d0549 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/1927135 Commit-Queue: Yuri Wiitala <miu@chromium.org> Reviewed-by: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'cast/streaming/encoded_frame.cc')
-rw-r--r--cast/streaming/encoded_frame.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/cast/streaming/encoded_frame.cc b/cast/streaming/encoded_frame.cc
new file mode 100644
index 00000000..ebd6cc75
--- /dev/null
+++ b/cast/streaming/encoded_frame.cc
@@ -0,0 +1,26 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cast/streaming/encoded_frame.h"
+
+namespace cast {
+namespace streaming {
+
+EncodedFrame::EncodedFrame() = default;
+EncodedFrame::~EncodedFrame() = default;
+
+EncodedFrame::EncodedFrame(EncodedFrame&&) MAYBE_NOEXCEPT = default;
+EncodedFrame& EncodedFrame::operator=(EncodedFrame&&) MAYBE_NOEXCEPT = default;
+
+void EncodedFrame::CopyMetadataTo(EncodedFrame* dest) const {
+ dest->dependency = this->dependency;
+ dest->frame_id = this->frame_id;
+ dest->referenced_frame_id = this->referenced_frame_id;
+ dest->rtp_timestamp = this->rtp_timestamp;
+ dest->reference_time = this->reference_time;
+ dest->new_playout_delay = this->new_playout_delay;
+}
+
+} // namespace streaming
+} // namespace cast