2018-07-24 09:29:58 +02:00
|
|
|
/*
|
|
|
|
|
* 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"
|
|
|
|
|
|
2018-08-08 11:39:52 +02:00
|
|
|
#include "absl/memory/memory.h"
|
2018-11-28 16:47:49 +01:00
|
|
|
#include "video/overuse_frame_detector.h"
|
2018-07-24 09:29:58 +02:00
|
|
|
#include "video/video_stream_encoder.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
std::unique_ptr<VideoStreamEncoderInterface> CreateVideoStreamEncoder(
|
|
|
|
|
uint32_t number_of_cores,
|
|
|
|
|
VideoStreamEncoderObserver* encoder_stats_observer,
|
2019-01-02 09:42:54 +01:00
|
|
|
const VideoStreamEncoderSettings& settings) {
|
2018-08-08 11:39:52 +02:00
|
|
|
return absl::make_unique<VideoStreamEncoder>(
|
2019-01-02 09:42:54 +01:00
|
|
|
number_of_cores, encoder_stats_observer, settings,
|
2018-08-08 11:39:52 +02:00
|
|
|
absl::make_unique<OveruseFrameDetector>(encoder_stats_observer));
|
2018-07-24 09:29:58 +02:00
|
|
|
}
|
|
|
|
|
} // namespace webrtc
|