video_stream_encoder_create.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  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. #ifndef API_VIDEO_VIDEO_STREAM_ENCODER_CREATE_H_
  11. #define API_VIDEO_VIDEO_STREAM_ENCODER_CREATE_H_
  12. #include <stdint.h>
  13. #include <memory>
  14. #include "api/task_queue/task_queue_factory.h"
  15. #include "api/video/video_frame.h"
  16. #include "api/video/video_sink_interface.h"
  17. #include "api/video/video_stream_encoder_interface.h"
  18. #include "api/video/video_stream_encoder_observer.h"
  19. #include "api/video/video_stream_encoder_settings.h"
  20. namespace webrtc {
  21. // TODO(srte): Find a way to avoid this forward declaration.
  22. class Clock;
  23. std::unique_ptr<VideoStreamEncoderInterface> CreateVideoStreamEncoder(
  24. Clock* clock,
  25. TaskQueueFactory* task_queue_factory,
  26. uint32_t number_of_cores,
  27. VideoStreamEncoderObserver* encoder_stats_observer,
  28. const VideoStreamEncoderSettings& settings);
  29. } // namespace webrtc
  30. #endif // API_VIDEO_VIDEO_STREAM_ENCODER_CREATE_H_