xref: /aosp_15_r20/external/openscreen/cast/streaming/encoded_frame.cc (revision 3f982cf4871df8771c9d4abe6e9a6f8d829b2736)
1 // Copyright 2014 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/encoded_frame.h"
6 
7 namespace openscreen {
8 namespace cast {
9 
10 EncodedFrame::EncodedFrame() = default;
11 EncodedFrame::~EncodedFrame() = default;
12 
13 EncodedFrame::EncodedFrame(EncodedFrame&&) noexcept = default;
14 EncodedFrame& EncodedFrame::operator=(EncodedFrame&&) = default;
15 
CopyMetadataTo(EncodedFrame * dest) const16 void EncodedFrame::CopyMetadataTo(EncodedFrame* dest) const {
17   dest->dependency = this->dependency;
18   dest->frame_id = this->frame_id;
19   dest->referenced_frame_id = this->referenced_frame_id;
20   dest->rtp_timestamp = this->rtp_timestamp;
21   dest->reference_time = this->reference_time;
22   dest->new_playout_delay = this->new_playout_delay;
23 }
24 
25 }  // namespace cast
26 }  // namespace openscreen
27