Evan Shrubsole | f83d426 | 2021-12-15 15:05:15 +0100 | [diff] [blame^] | 1 | /* |
| 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 | |
| 19 | namespace webrtc { |
| 20 | |
| 21 | // TODO(https://bugs.webrtc.org/13589): Switch to using Timestamp and TimeDelta. |
| 22 | bool FrameHasBadRenderTiming(int64_t render_time_ms, |
| 23 | int64_t now_ms, |
| 24 | int target_video_delay); |
| 25 | |
| 26 | std::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_ |