/* * Copyright (c) 2022 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.
*/
auto frame = std::make_unique<FakeEncodedFrame>();
frame->is_last_spatial_layer = last_spatial_layer_;
frame->SetEncodedData(EncodedImageBuffer::Create(size_));
if (rtp_timestamp_)
frame->SetRtpTimestamp(*rtp_timestamp_); if (frame_id_)
frame->SetId(*frame_id_); if (playout_delay_)
frame->SetPlayoutDelay(*playout_delay_);
frame->SetFrameType(references_.empty() ? VideoFrameType::kVideoFrameKey
: VideoFrameType::kVideoFrameDelta); for (int64_t ref : references_) {
frame->references[frame->num_references] = ref;
frame->num_references++;
} if (spatial_layer_)
frame->SetSpatialIndex(spatial_layer_); if (received_time_)
frame->SetReceivedTime(received_time_->ms()); if (payload_type_)
frame->SetPayloadType(*payload_type_); if (ntp_time_)
frame->ntp_time_ms_ = ntp_time_->ms(); if (rotation_)
frame->rotation_ = *rotation_; if (packet_infos_)
frame->SetPacketInfos(*packet_infos_); return frame;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.