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 bool FrameHasBadRenderTiming(Timestamp render_time, Timestamp now); 22 23 bool TargetVideoDelayIsTooLarge(TimeDelta target_video_delay); 24 25 std::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_ 31