OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2017 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 WEBRTC_API_VIDEO_CODECS_VIDEO_DECODER_FACTORY_H_ | |
12 #define WEBRTC_API_VIDEO_CODECS_VIDEO_DECODER_FACTORY_H_ | |
13 | |
14 #include <memory> | |
15 #include <vector> | |
16 | |
17 namespace cricket { | |
18 struct VideoCodec; | |
19 } // namespace cricket | |
stefan-webrtc
2017/09/06 12:40:42
What do you think of the fit of VideoCodec in the
magjed_webrtc
2017/09/10 15:27:49
It's unfortunate. cricket::VideoCodec represents t
kwiberg-webrtc
2017/09/10 19:00:21
Pardon the tangent, but do the two of you think th
magjed_webrtc
2017/09/12 12:08:48
It's still often a sign that we are mixing two cod
| |
20 | |
21 namespace webrtc { | |
22 | |
23 class VideoDecoder; | |
24 | |
25 // A factory that creates VideoDecoders. | |
26 // NOTE: This class is still under development and may change without notice. | |
27 class VideoDecoderFactory { | |
28 public: | |
29 // Returns a list of supported video codecs in order of preference, to use for | |
30 // signaling etc. | |
31 virtual std::vector<cricket::VideoCodec> GetSupportedCodecs() const = 0; | |
32 | |
33 // Creates a VideoDecoder for the specified codec. | |
34 virtual std::unique_ptr<VideoDecoder> CreateVideoDecoder( | |
andersc
2017/09/06 15:00:06
Do we also need a version of this method that take
magjed_webrtc
2017/09/10 15:27:49
I will investigate a bit, but hopefully we don't n
magjed_webrtc
2017/09/12 12:08:48
I looked it up and we don't need to add VideoDecod
| |
35 const cricket::VideoCodec& codec) = 0; | |
36 | |
37 virtual ~VideoDecoderFactory() {} | |
38 }; | |
39 | |
40 } // namespace webrtc | |
41 | |
42 #endif // WEBRTC_API_VIDEO_CODECS_VIDEO_DECODER_FACTORY_H_ | |
OLD | NEW |