kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #import <Foundation/Foundation.h> |
| 12 | |
| 13 | #import <WebRTC/RTCMacros.h> |
| 14 | #import <WebRTC/RTCVideoCodecFactory.h> |
| 15 | |
Anders Carlsson | 7e04281 | 2017-10-05 16:55:38 +0200 | [diff] [blame^] | 16 | /** Class for H264 specific config. */ |
| 17 | typedef NS_ENUM(NSUInteger, RTCH264PacketizationMode) { |
| 18 | RTCH264PacketizationModeNonInterleaved = 0, // Mode 1 - STAP-A, FU-A is allowed |
| 19 | RTCH264PacketizationModeSingleNalUnit // 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 | |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 29 | /** Encoder. */ |
| 30 | RTC_EXPORT |
| 31 | @interface RTCVideoEncoderH264 : NSObject<RTCVideoEncoder> |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 32 | |
| 33 | - (instancetype)initWithCodecInfo:(RTCVideoCodecInfo *)codecInfo; |
| 34 | |
kthelgason | fb14312 | 2017-07-25 07:55:58 -0700 | [diff] [blame] | 35 | @end |
| 36 | |
| 37 | /** Decoder. */ |
| 38 | RTC_EXPORT |
| 39 | @interface RTCVideoDecoderH264 : NSObject<RTCVideoDecoder> |
| 40 | @end |
| 41 | |
| 42 | /** Encoder factory. */ |
| 43 | RTC_EXPORT |
| 44 | @interface RTCVideoEncoderFactoryH264 : NSObject<RTCVideoEncoderFactory> |
| 45 | @end |
| 46 | |
| 47 | /** Decoder factory. */ |
| 48 | RTC_EXPORT |
| 49 | @interface RTCVideoDecoderFactoryH264 : NSObject<RTCVideoDecoderFactory> |
| 50 | @end |