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.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef API_VIDEO_VIDEO_STREAM_ENCODER_CREATE_H_
|
|
|
|
|
#define API_VIDEO_VIDEO_STREAM_ENCODER_CREATE_H_
|
|
|
|
|
|
2018-11-28 16:47:49 +01:00
|
|
|
#include <stdint.h>
|
2018-07-24 09:29:58 +02:00
|
|
|
#include <memory>
|
|
|
|
|
|
2019-03-01 11:50:20 +01:00
|
|
|
#include "api/task_queue/task_queue_factory.h"
|
2018-11-28 16:47:49 +01:00
|
|
|
#include "api/video/video_frame.h"
|
|
|
|
|
#include "api/video/video_sink_interface.h"
|
2018-07-24 09:29:58 +02:00
|
|
|
#include "api/video/video_stream_encoder_interface.h"
|
|
|
|
|
#include "api/video/video_stream_encoder_observer.h"
|
|
|
|
|
#include "api/video/video_stream_encoder_settings.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
2019-03-04 18:30:41 +01:00
|
|
|
// TODO(srte): Find a way to avoid this forward declaration.
|
|
|
|
|
class Clock;
|
2018-07-24 09:29:58 +02:00
|
|
|
|
2019-03-01 11:50:20 +01:00
|
|
|
std::unique_ptr<VideoStreamEncoderInterface> CreateVideoStreamEncoder(
|
2019-03-04 18:30:41 +01:00
|
|
|
Clock* clock,
|
2019-03-01 11:50:20 +01:00
|
|
|
TaskQueueFactory* task_queue_factory,
|
|
|
|
|
uint32_t number_of_cores,
|
|
|
|
|
VideoStreamEncoderObserver* encoder_stats_observer,
|
|
|
|
|
const VideoStreamEncoderSettings& settings);
|
2018-07-24 09:29:58 +02:00
|
|
|
} // namespace webrtc
|
|
|
|
|
|
|
|
|
|
#endif // API_VIDEO_VIDEO_STREAM_ENCODER_CREATE_H_
|