blob: 56d199f30ff02b622663ec1048eb11a352e5cea8 [file] [log] [blame]
Niels Möllerbe682d42018-03-27 08:31:45 +02001/*
2 * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#include "api/video/encoded_frame.h"
12
Evan Shrubsoled6cdf802022-03-02 15:13:55 +010013#include "absl/types/optional.h"
14
Niels Möllerbe682d42018-03-27 08:31:45 +020015namespace webrtc {
Niels Möllerbe682d42018-03-27 08:31:45 +020016
Evan Shrubsoled6cdf802022-03-02 15:13:55 +010017absl::optional<Timestamp> EncodedFrame::RenderTimestamp() const {
18 return RenderTimeMs() >= 0
19 ? absl::make_optional(Timestamp::Millis(RenderTimeMs()))
20 : absl::nullopt;
21}
22
Yves Gerey665174f2018-06-19 15:03:05 +020023bool EncodedFrame::delayed_by_retransmission() const {
Anton Bikineev7abf45f2022-01-23 22:22:59 +010024 return false;
Yves Gerey665174f2018-06-19 15:03:05 +020025}
Niels Möllerbe682d42018-03-27 08:31:45 +020026
Niels Möllerbe682d42018-03-27 08:31:45 +020027} // namespace webrtc