video_stream_decoder_create.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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_DECODER_CREATE_H_
  11. #define API_VIDEO_VIDEO_STREAM_DECODER_CREATE_H_
  12. #include <map>
  13. #include <memory>
  14. #include <utility>
  15. #include "api/task_queue/task_queue_factory.h"
  16. #include "api/video/video_stream_decoder.h"
  17. #include "api/video_codecs/sdp_video_format.h"
  18. namespace webrtc {
  19. // The |decoder_settings| parameter is a map between:
  20. // <payload type> --> <<video format>, <number of cores>>.
  21. // The video format is used when instantiating a decoder, and
  22. // the number of cores is used when initializing the decoder.
  23. std::unique_ptr<VideoStreamDecoderInterface> CreateVideoStreamDecoder(
  24. VideoStreamDecoderInterface::Callbacks* callbacks,
  25. VideoDecoderFactory* decoder_factory,
  26. TaskQueueFactory* task_queue_factory,
  27. std::map<int, std::pair<SdpVideoFormat, int>> decoder_settings);
  28. } // namespace webrtc
  29. #endif // API_VIDEO_VIDEO_STREAM_DECODER_CREATE_H_