blob: b6d7b0f1447598304f874c1330673cc583f72ff2 [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
Evan Shrubsoled6cdf802022-03-02 15:13:55 +010021bool FrameHasBadRenderTiming(Timestamp render_time,
22 Timestamp now,
23 TimeDelta target_video_delay);
Evan Shrubsolef83d4262021-12-15 15:05:15 +010024
25std::unique_ptr<EncodedFrame> CombineAndDeleteFrames(
26 absl::InlinedVector<std::unique_ptr<EncodedFrame>, 4> frames);
27
28} // namespace webrtc
29
30#endif // MODULES_VIDEO_CODING_FRAME_HELPERS_H_