OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 * | 9 * |
10 */ | 10 */ |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #endif // defined(WEBRTC_IOS) || defined(WEBRTC_MAC) | 24 #endif // defined(WEBRTC_IOS) || defined(WEBRTC_MAC) |
25 | 25 |
26 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 26 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
27 | 27 |
28 namespace webrtc { | 28 namespace webrtc { |
29 | 29 |
30 class H264Encoder : public VideoEncoder { | 30 class H264Encoder : public VideoEncoder { |
31 public: | 31 public: |
32 static H264Encoder* Create(); | 32 static H264Encoder* Create(); |
| 33 // If H.264 is supported (any implementation). |
33 static bool IsSupported(); | 34 static bool IsSupported(); |
34 | 35 |
35 ~H264Encoder() override {} | 36 ~H264Encoder() override {} |
36 }; | 37 }; |
37 | 38 |
38 class H264Decoder : public VideoDecoder { | 39 class H264Decoder : public VideoDecoder { |
39 public: | 40 public: |
40 static H264Decoder* Create(); | 41 static H264Decoder* Create(); |
41 static bool IsSupported(); | 42 static bool IsSupported(); |
42 | 43 |
43 ~H264Decoder() override {} | 44 ~H264Decoder() override {} |
44 }; | 45 }; |
45 | 46 |
46 } // namespace webrtc | 47 } // namespace webrtc |
47 | 48 |
48 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_INCLUDE_H264_H_ | 49 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_INCLUDE_H264_H_ |
OLD | NEW |