blob: 2d8f29ab2b2c2a44703441a58b5425dd032f2adc [file] [log] [blame]
Niels Möller213618e2018-07-24 09:29:58 +02001/*
2 * Copyright (c) 2018 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 API_VIDEO_VIDEO_STREAM_ENCODER_CREATE_H_
12#define API_VIDEO_VIDEO_STREAM_ENCODER_CREATE_H_
13
Yves Gerey3e707812018-11-28 16:47:49 +010014#include <stdint.h>
Niels Möller213618e2018-07-24 09:29:58 +020015#include <memory>
Niels Möller213618e2018-07-24 09:29:58 +020016
Sebastian Jansson74682c12019-03-01 11:50:20 +010017#include "api/task_queue/task_queue_factory.h"
Yves Gerey3e707812018-11-28 16:47:49 +010018#include "api/video/video_frame.h"
19#include "api/video/video_sink_interface.h"
Niels Möller213618e2018-07-24 09:29:58 +020020#include "api/video/video_stream_encoder_interface.h"
21#include "api/video/video_stream_encoder_observer.h"
22#include "api/video/video_stream_encoder_settings.h"
23
24namespace webrtc {
Sebastian Jansson572c60f2019-03-04 18:30:41 +010025// TODO(srte): Find a way to avoid this forward declaration.
26class Clock;
Niels Möller213618e2018-07-24 09:29:58 +020027
28std::unique_ptr<VideoStreamEncoderInterface> CreateVideoStreamEncoder(
Sebastian Jansson572c60f2019-03-04 18:30:41 +010029 Clock* clock,
Sebastian Jansson74682c12019-03-01 11:50:20 +010030 TaskQueueFactory* task_queue_factory,
31 uint32_t number_of_cores,
32 VideoStreamEncoderObserver* encoder_stats_observer,
33 const VideoStreamEncoderSettings& settings);
Niels Möller213618e2018-07-24 09:29:58 +020034} // namespace webrtc
35
36#endif // API_VIDEO_VIDEO_STREAM_ENCODER_CREATE_H_