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 <Foundation/Foundation.h> | 11 #import <Foundation/Foundation.h> |
12 | 12 |
13 #import <WebRTC/RTCMacros.h> | 13 #import <WebRTC/RTCMacros.h> |
14 #import <WebRTC/RTCVideoCodecFactory.h> | 14 #import <WebRTC/RTCVideoCodecFactory.h> |
15 | 15 |
16 /** Class for H264 specific config. */ | |
17 typedef NS_ENUM(NSUInteger, RTCH264PacketizationMode) { | |
18 NonInterleaved = 0, // Mode 1 - STAP-A, FU-A is allowed | |
19 SingleNalUnit // Mode 0 - only single NALU allowed | |
20 }; | |
21 | |
22 RTC_EXPORT | |
23 @interface RTCCodecSpecificInfoH264 : NSObject<RTCCodecSpecificInfo> | |
24 | |
25 @property(nonatomic, assign) RTCH264PacketizationMode packetizationMode; | |
26 | |
27 @end | |
28 | |
29 /** Encoder. */ | 16 /** Encoder. */ |
30 RTC_EXPORT | 17 RTC_EXPORT |
31 @interface RTCVideoEncoderH264 : NSObject<RTCVideoEncoder> | 18 @interface RTCVideoEncoderH264 : NSObject<RTCVideoEncoder> |
| 19 |
| 20 - (instancetype)initWithCodecInfo:(RTCVideoCodecInfo *)codecInfo; |
| 21 |
32 @end | 22 @end |
33 | 23 |
34 /** Decoder. */ | 24 /** Decoder. */ |
35 RTC_EXPORT | 25 RTC_EXPORT |
36 @interface RTCVideoDecoderH264 : NSObject<RTCVideoDecoder> | 26 @interface RTCVideoDecoderH264 : NSObject<RTCVideoDecoder> |
37 @end | 27 @end |
38 | 28 |
39 /** Encoder factory. */ | 29 /** Encoder factory. */ |
40 RTC_EXPORT | 30 RTC_EXPORT |
41 @interface RTCVideoEncoderFactoryH264 : NSObject<RTCVideoEncoderFactory> | 31 @interface RTCVideoEncoderFactoryH264 : NSObject<RTCVideoEncoderFactory> |
42 @end | 32 @end |
43 | 33 |
44 /** Decoder factory. */ | 34 /** Decoder factory. */ |
45 RTC_EXPORT | 35 RTC_EXPORT |
46 @interface RTCVideoDecoderFactoryH264 : NSObject<RTCVideoDecoderFactory> | 36 @interface RTCVideoDecoderFactoryH264 : NSObject<RTCVideoDecoderFactory> |
47 @end | 37 @end |
OLD | NEW |