blob: e329d03706c7d259de0e83c8a8f058e2b983aed6 [file] [log] [blame]
Evan Shrubsolef83d4262021-12-15 15:05:15 +01001/*
2 * Copyright (c) 2021 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#ifndef MODULES_VIDEO_CODING_FRAME_HELPERS_H_
12#define MODULES_VIDEO_CODING_FRAME_HELPERS_H_
13
14#include <memory>
15
16#include "absl/container/inlined_vector.h"
17#include "api/video/encoded_frame.h"
18
19namespace webrtc {
20
21// TODO(https://bugs.webrtc.org/13589): Switch to using Timestamp and TimeDelta.
22bool FrameHasBadRenderTiming(int64_t render_time_ms,
23 int64_t now_ms,
24 int target_video_delay);
25
26std::unique_ptr<EncodedFrame> CombineAndDeleteFrames(
27 absl::InlinedVector<std::unique_ptr<EncodedFrame>, 4> frames);
28
29} // namespace webrtc
30
31#endif // MODULES_VIDEO_CODING_FRAME_HELPERS_H_