mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-20 00:57:49 +01:00

We've switched to absl::make_unique and absl::WrapUnique. Bug: webrtc:9473 Change-Id: I08aef72d52b571c511c0f4adb4c68d6cc2654192 Reviewed-on: https://webrtc-review.googlesource.com/87262 Commit-Queue: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24225}
27 lines
1.1 KiB
C++
27 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "api/video/video_stream_encoder_create.h"
|
|
|
|
#include "absl/memory/memory.h"
|
|
#include "video/video_stream_encoder.h"
|
|
|
|
namespace webrtc {
|
|
std::unique_ptr<VideoStreamEncoderInterface> CreateVideoStreamEncoder(
|
|
uint32_t number_of_cores,
|
|
VideoStreamEncoderObserver* encoder_stats_observer,
|
|
const VideoStreamEncoderSettings& settings,
|
|
// Deprecated, used for tests only.
|
|
rtc::VideoSinkInterface<VideoFrame>* pre_encode_callback) {
|
|
return absl::make_unique<VideoStreamEncoder>(
|
|
number_of_cores, encoder_stats_observer, settings, pre_encode_callback,
|
|
absl::make_unique<OveruseFrameDetector>(encoder_stats_observer));
|
|
}
|
|
} // namespace webrtc
|