Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: webrtc/api/video_codecs/video_decoder_factory.h

Issue 3007073002: Add new video codec factories (Closed)
Patch Set: . Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/api/video_codecs/BUILD.gn ('k') | webrtc/api/video_codecs/video_encoder_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 webrtc {
18
19 class VideoDecoder;
20 struct SdpVideoFormat;
21
22 // A factory that creates VideoDecoders.
23 // NOTE: This class is still under development and may change without notice.
24 class VideoDecoderFactory {
25 public:
26 // Returns a list of supported video formats in order of preference, to use
27 // for signaling etc.
28 virtual std::vector<SdpVideoFormat> GetSupportedFormats() const = 0;
29
30 // Creates a VideoDecoder for the specified format.
31 virtual std::unique_ptr<VideoDecoder> CreateVideoDecoder(
32 const SdpVideoFormat& format) = 0;
33
34 virtual ~VideoDecoderFactory() {}
35 };
36
37 } // namespace webrtc
38
39 #endif // WEBRTC_API_VIDEO_CODECS_VIDEO_DECODER_FACTORY_H_
OLDNEW
« no previous file with comments | « webrtc/api/video_codecs/BUILD.gn ('k') | webrtc/api/video_codecs/video_encoder_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698