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" | |
18 #import "WebRTC/RTCVideoFrameBuffer.h" | |
19 | 17 |
20 #include "webrtc/rtc_base/timeutils.h" | 18 #include "webrtc/rtc_base/timeutils.h" |
21 #include "webrtc/sdk/objc/Framework/Classes/Video/objc_frame_buffer.h" | 19 #include "webrtc/sdk/objc/Framework/Classes/Video/objc_frame_buffer.h" |
22 #include "webrtc/system_wrappers/include/field_trial.h" | 20 #include "webrtc/system_wrappers/include/field_trial.h" |
23 | 21 |
24 const char kHighProfileExperiment[] = "WebRTC-H264HighProfile"; | 22 const char kHighProfileExperiment[] = "WebRTC-H264HighProfile"; |
25 static NSString *kLevel31ConstrainedHigh = @"640c1f"; | 23 static NSString *kLevel31ConstrainedHigh = @"640c1f"; |
26 static NSString *kLevel31ConstrainedBaseline = @"42e01f"; | 24 static NSString *kLevel31ConstrainedBaseline = @"42e01f"; |
27 | 25 |
28 bool IsHighProfileEnabled() { | 26 bool IsHighProfileEnabled() { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 - (id<RTCVideoDecoder>)createDecoder:(RTCVideoCodecInfo *)info { | 90 - (id<RTCVideoDecoder>)createDecoder:(RTCVideoCodecInfo *)info { |
93 return [[RTCVideoDecoderH264 alloc] init]; | 91 return [[RTCVideoDecoderH264 alloc] init]; |
94 } | 92 } |
95 | 93 |
96 - (NSArray<RTCVideoCodecInfo *> *)supportedCodecs { | 94 - (NSArray<RTCVideoCodecInfo *> *)supportedCodecs { |
97 NSString *codecName = [NSString stringWithUTF8String:cricket::kH264CodecName]; | 95 NSString *codecName = [NSString stringWithUTF8String:cricket::kH264CodecName]; |
98 return @[ [[RTCVideoCodecInfo alloc] initWithPayload:0 name:codecName paramete
rs:@{}] ]; | 96 return @[ [[RTCVideoCodecInfo alloc] initWithPayload:0 name:codecName paramete
rs:@{}] ]; |
99 } | 97 } |
100 | 98 |
101 @end | 99 @end |
OLD | NEW |