tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

frame_helpers.h (1022B)


      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/units/time_delta.h"
     18 #include "api/units/timestamp.h"
     19 #include "api/video/encoded_frame.h"
     20 
     21 namespace webrtc {
     22 
     23 bool FrameHasBadRenderTiming(Timestamp render_time, Timestamp now);
     24 
     25 bool TargetVideoDelayIsTooLarge(TimeDelta target_video_delay);
     26 
     27 std::unique_ptr<EncodedFrame> CombineAndDeleteFrames(
     28    absl::InlinedVector<std::unique_ptr<EncodedFrame>, 4> frames);
     29 
     30 }  // namespace webrtc
     31 
     32 #endif  // MODULES_VIDEO_CODING_FRAME_HELPERS_H_