OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 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 #import "WebRTC/RTCVideoCodecH264.h" | 11 #import "WebRTC/RTCVideoCodecH264.h" |
12 | 12 |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #import "RTCVideoCodec+Private.h" | 15 #import "RTCVideoCodec+Private.h" |
16 #import "WebRTC/RTCVideoCodec.h" | 16 #import "WebRTC/RTCVideoCodec.h" |
17 #import "WebRTC/RTCVideoFrame.h" | 17 #import "WebRTC/RTCVideoFrame.h" |
18 #import "WebRTC/RTCVideoFrameBuffer.h" | 18 #import "WebRTC/RTCVideoFrameBuffer.h" |
19 | 19 |
20 #include "webrtc/base/timeutils.h" | 20 #include "webrtc/rtc_base/timeutils.h" |
21 #include "webrtc/sdk/objc/Framework/Classes/Video/objc_frame_buffer.h" | 21 #include "webrtc/sdk/objc/Framework/Classes/Video/objc_frame_buffer.h" |
22 #include "webrtc/sdk/objc/Framework/Classes/VideoToolbox/decoder.h" | 22 #include "webrtc/sdk/objc/Framework/Classes/VideoToolbox/decoder.h" |
23 #include "webrtc/sdk/objc/Framework/Classes/VideoToolbox/encoder.h" | 23 #include "webrtc/sdk/objc/Framework/Classes/VideoToolbox/encoder.h" |
24 #include "webrtc/system_wrappers/include/field_trial.h" | 24 #include "webrtc/system_wrappers/include/field_trial.h" |
25 | 25 |
26 const size_t kDefaultPayloadSize = 1440; | 26 const size_t kDefaultPayloadSize = 1440; |
27 | 27 |
28 const char kHighProfileExperiment[] = "WebRTC-H264HighProfile"; | 28 const char kHighProfileExperiment[] = "WebRTC-H264HighProfile"; |
29 | 29 |
30 bool IsHighProfileEnabled() { | 30 bool IsHighProfileEnabled() { |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 - (id<RTCVideoDecoder>)createDecoder:(RTCVideoCodecInfo *)info { | 254 - (id<RTCVideoDecoder>)createDecoder:(RTCVideoCodecInfo *)info { |
255 return [[RTCVideoDecoderH264 alloc] init]; | 255 return [[RTCVideoDecoderH264 alloc] init]; |
256 } | 256 } |
257 | 257 |
258 - (NSArray<RTCVideoCodecInfo *> *)supportedCodecs { | 258 - (NSArray<RTCVideoCodecInfo *> *)supportedCodecs { |
259 NSString *codecName = [NSString stringWithUTF8String:cricket::kH264CodecName]; | 259 NSString *codecName = [NSString stringWithUTF8String:cricket::kH264CodecName]; |
260 return @[ [[RTCVideoCodecInfo alloc] initWithPayload:0 name:codecName paramete
rs:@{}] ]; | 260 return @[ [[RTCVideoCodecInfo alloc] initWithPayload:0 name:codecName paramete
rs:@{}] ]; |
261 } | 261 } |
262 | 262 |
263 @end | 263 @end |
OLD | NEW |