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 */ |
11 | 11 |
12 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_INCLUDE_H264_H_ | 12 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_INCLUDE_H264_H_ |
13 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_INCLUDE_H264_H_ | 13 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_INCLUDE_H264_H_ |
14 | 14 |
15 #if defined(WEBRTC_IOS) || defined(WEBRTC_MAC) | 15 #if defined(WEBRTC_IOS) || defined(WEBRTC_MAC) |
16 | 16 |
17 #include <Availability.h> | 17 #include <Availability.h> |
18 #if (defined(__IPHONE_8_0) && \ | 18 #if (defined(__IPHONE_8_0) && \ |
19 __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0) || \ | 19 __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0) || \ |
20 (defined(__MAC_10_8) && __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_8) | 20 (defined(__MAC_10_8) && __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_8) |
21 #define WEBRTC_VIDEO_TOOLBOX_SUPPORTED 1 | 21 #define WEBRTC_VIDEO_TOOLBOX_SUPPORTED 1 |
22 #endif | 22 #endif |
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 // Set to enable or disable the H.264 encoder/decoder implementations that are | |
31 // provided if |rtc_use_h264| build flag is true (if false, this function does | |
32 // nothing). This function should only be called before or during WebRTC | |
33 // initialization and is not thread-safe. | |
tommi
2016/02/02 16:33:13
ah, not thread safe. Good comment. Feel free to i
hbos
2016/02/02 17:08:19
Acknowledged.
| |
34 void SetRtcUseH264(bool enable); | |
35 | |
30 class H264Encoder : public VideoEncoder { | 36 class H264Encoder : public VideoEncoder { |
31 public: | 37 public: |
32 static H264Encoder* Create(); | 38 static H264Encoder* Create(); |
33 // If H.264 is supported (any implementation). | 39 // If H.264 is supported (any implementation). |
34 static bool IsSupported(); | 40 static bool IsSupported(); |
35 | 41 |
36 ~H264Encoder() override {} | 42 ~H264Encoder() override {} |
37 }; | 43 }; |
38 | 44 |
39 class H264Decoder : public VideoDecoder { | 45 class H264Decoder : public VideoDecoder { |
40 public: | 46 public: |
41 static H264Decoder* Create(); | 47 static H264Decoder* Create(); |
42 static bool IsSupported(); | 48 static bool IsSupported(); |
43 | 49 |
44 ~H264Decoder() override {} | 50 ~H264Decoder() override {} |
45 }; | 51 }; |
46 | 52 |
47 } // namespace webrtc | 53 } // namespace webrtc |
48 | 54 |
49 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_INCLUDE_H264_H_ | 55 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_INCLUDE_H264_H_ |
OLD | NEW |